Bub
Forum Replies Created
-
TNX solved my problem too
Forum: Plugins
In reply to: [AMP] Google Analytics not populating Event Category and Event ActionThanks for your help. I will go with your suggestions above.
Forum: Plugins
In reply to: [AMP] Google Analytics not populating Event Category and Event ActionI just disconnected GTM from Site Kit and manually inserted GTM-AMP snippets as shown below. (I currently am using https://github.com/woocommerce/theme-customisations to insert these into functions.php within the storefront/boutique themes.)
/** Add AMP code for Google Tag Manager after header*/ add_action ('wp_head', 'add_google_tag_manager_for_AMP_after_header'); function add_google_tag_manager_for_AMP_after_header() { ?> <!-- AMP Analytics --><script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script> <?php } /** Add AMP code for Google Analytics Tag after opening body tag */ add_action( 'wp_body_open', 'add_google_tag_manager_for_AMP_after_body_tag' ); function add_google_tag_manager_for_AMP_after_body_tag() { ?> <amp-analytics config="https://www.googletagmanager.com/amp.json?id=GTM-xxxxxxx>m.url=SOURCE_URL" data-credentials="include"></amp-analytics> <?php }
I am using the previously mentioned gtag tag code used within the plugin analytics tab and am seeing in Google Analytics:
Event Category: ButtonClick with Event Action: clicking on button{ "vars": { "gtag_id": "UA-XXXXXXXXX-X", "config": { "UA- XXXXXXXXX-X ": { "groups": "default" } } }, "triggers": { "button": { "selector": "#the-button", "on": "click", "vars": { "event_category": "ButtonClick", "event_name": "clicking on button", "event_label": "my button", "method": "Google" } } } }
NEXT:
I remove the gtag code snippet above from the AMP plugin Analytics and again run the following from Google Tag Manager:
Tag Configuration
Tag Type: Google Analytics: Universal Analytics Google Marketing Platform
Tracking ID: UA- XXXXXXXXX-X
Track Type: Event
Event Tracking Parameters
Category: ButtonClick
Action: click
Label: button left
Value: 1
Non-Interaction Hit: TrueTrigger Configuration
Trigger Type: Click
CSS Selector (specific elements this click applies to): #the-button
This trigger fires on: All PagesAfter clicking on the button Google Analytics Realtime Events shows:
An Event Spike but indicates no Active User along with no Event Action or Active Users data
After activating a standard All Pages tag and clicking the button I get an Active User and an event spike but still no Event Action or Active Users data.Forum: Plugins
In reply to: [AMP] Google Analytics not populating Event Category and Event ActionI have experimented with
- Google Site Kit with GTM. Tag Fires no Event Cat. or Event Act..
- Google Site Kit without GTM enabled and inserted the AMP and GTM snippets. Tag Fires no Event Cat. or Event Act..
- Google Site Kit without GTM enabled and inserted tag code into the Analytics block within the plugin tab Tag Fires and loads Event Cat. and Event Act..
{ "vars": { "gtag_id": "UA-109333845-9", "config": { "UA-109333845-9": { "groups": "default" } } }, "triggers": { "button": { "selector": "#the-button", "on": "click", "vars": { "event_category": "ButtonClick", "event_name": "clicking on button", "event_label": "my button", "method": "Google" } } } }
This is what the not populating tag looks like in GTM
Tag Configuration
Tag TypeGoogle Analytics: Universal Analytics
Google Marketing Platform
Tracking ID
UA-xxxxxxxxx-x
Track TypeEvent
Event Tracking Parameters
Category
ButtonClick
Action
click
Label
button left
Value
1
Non-Interaction HitTrue
____________
Trigger Configuration
Trigger Type
Click
CSS Selector (specific elements this click applies to)
#the-button
This trigger fires on
All PagesForum: Plugins
In reply to: [AMP] How to make google analytics tag work. (Really)I had thought I tried that and several other code combinations but trying this now using the screen shot example it works as expected. I had been doing a lot of hacking and must have done something not quite correctly. Thanks as now I don’t need to add the code to functions.php anymore.
NEXT: Can you give me instructions/example and a screen shot for what to do for Google TAG MANAGER too?
I have been trying what was recommended but Tag Assistant won’t connect. The code shows up in the page source so I must assume I either have some forgotten code artifacts from my previous hacking attempts or I am just using the wrong code. HELP!! and Thanks!!- This reply was modified 3 years, 5 months ago by Bub.
Forum: Reviews
In reply to: [Payment Gateway Plugin for PayPal WooCommerce] Works great – one gripeWorks using Chaps Theme Child – Thanks.
- This reply was modified 3 years, 6 months ago by Bub.
Forum: Plugins
In reply to: [AMP] AMP plugin breaks my menu on mobilebreaks menu using woocommerce boutique
Forum: Plugins
In reply to: [WPS Hide Login] Not blocking loginTry my test site: https://zingreview.com them https://zingreview.com/wp-login/ and then https://zingreview.com/login/ finally https://zingreview.com/login-to-zing/ Is this the expected behavior? Again, the plugin works perfectly for what I need if I insert a redirect in my .htaccess file which is currently remove to allow you to see what I describe above. Thanks for your efforts. Also https://www.plateformewpdigital.fr does not seem to work. You can contact me directly at https://denningsoftware.com
Forum: Plugins
In reply to: [WPS Hide Login] Not blocking loginI did using a redirect in .htaccess (Redirect 301 /login/ /404/) but was hoping there was a way to do this in your plugin. Otherwise – 5 stars!
Forum: Plugins
In reply to: [Yoast SEO] HealthCheck wpseo-reindex-links fails to runThanks and sorry for the time lag…. Yes, when the free Yoast SEO plugin is disabled, Health Check is happy. When I re-enable Yoast all is still OK but since this was a cron error I would expect that until wpseo-reindex-links is scheduled again, I won’t see this error.
- This reply was modified 6 years, 6 months ago by Bub.
Version 3.1.2 – Still fails!!! Will have to create my own solution as we can’t have a “Health Check” fail in WP_Cron! “The loopback request to your site failed, this may prevent WP_Cron from working, along with theme and plugin editors. Error encountered: (0) cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received.” Your credibility is at risk here!!!
Forum: Plugins
In reply to: [Code Snippets] Whoa! What the hell happened there?KaBoom!!!!! Temporary repair. FTP old version (which I had a copy of) over the top of the new in wp-content/plugins and then wait for author to repair. If you straight up delete the broken one you will loose your snippets.
Still waiting… This prevents WP_Cron from working as well as it blocks funtion.php editor.
Forum: Plugins
In reply to: [List category posts] Posts not showingIt was a pagination issue for version 0.75 in list-category-posts.php lcp-paginator.php lcp-widget.php primarily in for the widget.
Forum: Plugins
In reply to: [List category posts] Update 0.75 Does not WorkSo I was correct. It was a pagination issue in list-category-posts.php lcp-paginator.php lcp-widget.php primarily in for the widget. Thanks for the quick repair.