keshav65
Forum Replies Created
-
On further debugging, I’m seeing that the gtag script is never injected into the source code, for logged in or logged out users both! (I’d previously mistaken for some other script).
However, in the theme that I am currently using, there’s a text field to insert any code in the <head> or the <body> section. I’ve manually placed the google tag script and can now see the hits coming through on GA dashboard.
This is not ideal as i’d expect the google site kit plugin to handle all this. Help on resolving this would still be very much appreciated.
Thank you!
Thanks James.
- I’ve uploaded the site health and some side-by-side screenshots to show that the hits are not registering. I’ve setup a new data stream to check if there are any issues with that, but that doesn’t to be it either.
- Yup, GA used to work perfectly fine – realtime and non-realtime analytics, logged in and logged out users, the entire workflow. Somehow it has stopped working with my fresh WP install. I’ve added some screenshots along with the site health data on the Forms submission to show that data isn’t coming through.
GA Tags working – no idea why. As part of the Site Kit, i’ve just enabled Console, Pagespeed insights, Analytics, Tag manager but never actually done any further customisations.
As a logged out user, are you able to see the the Google Tag script within the <head> when you view the source of the page?
And another observation is that on Site Kit plugin, I have disabled the option – ‘Exclude Analytics’ i.e. ‘All logged-in users will be included in Analytics tracking’. However, even as a logged in user, I can’t see any real time metrics on the GA dashboard.Any troubleshooting help would be appreciated!
I’ve also tried resetting Site kit and going through the setup process again. Same issue persists i.e. the ‘Measurement ID’ is visible in the source code only for logged in users and not for logged-out users.
The weird part is, the analytics tag is visible on the ‘view source’ only as a logged in user. It doesn’t show up for non-logged in users.
* Open in-cognito tab, open site and view source – tag not visible
* Log in as a user, refresh and view source – tag now visible.
Can also confirm that any ad blockers are all disabled during these tests.