• Resolved questions4wp

    (@questions4wordpress)


    My website had Universal Analytics running fine, and recently the number of users dropped off a cliff to absolutely 0. What’s very strange is that the impressions are actually still reporting properly (at least, they’re not 0!)

    Below is some more information on my set up, but I have blocked out some of it for privacy. I have filled out the Google Form to provide the full information.

    Within Google Analytics itself I have 2 properties under my given website, one for Universal Analytics (top) and one for GA4 (bottom). The Analytics Account starts with 198, the UA property # starts with 198 as well, and the GA4 property # starts with 363:

    Looking at the UA dashboard for the last 90 days, we can see a steep drop, which is to be expected:

    However, we can see the same drop on the GA4 chart, which is unexpected:

    Within the site’s SiteKit we can see that the total number of impressions & clicks appear to be relatively normal in the last 28 days, but the number of unique visitors is…1?!

    In the plugin settings, under Settings -> Connected Services -> Analytics, I see the following. Note that the UA property correctly starts with 198, the account starts with 198, and the GA4 property starts with 363, all as expected. I should be excluding all logged-in users. GA4 claims the snippet is inserted. From my perspective, all of these settings are correct:

    When I click on the first “Edit in Analytics” button, on the GA4 row, I am brought to the correct property within Google Analytics. However, it states clearly that data collection isn’t active for my site across the top, which is strange. It has a button for “View tag instructions” which basically says to install SiteKit and authenticate, which I’ve done already. At the very bottom-right of the screenshot, you can see that it says “No data received”.

    Any ideas why this is happening, or what I can do to fix it? Again, as soon as I post this issue, I will also be submitting my full Site Health information via the Google Form, for anyone on Google’s side to review. If there’s any more information I can provide here, please let me know.

    • This topic was modified 1 year, 2 months ago by questions4wp.
Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Thanks for reaching out @questions4wordpress. Appreciate you also sharing your Site Health information. From reviewing the details and inspecting your site, both manually and via the tagassistant.google.com service, I don’t see a valid Site Kit or non Site Kit snippet placed. This is despite your Site Health information showing that the snippet has been placed. What I suspect may be happening, is a third party plugin or host level optimization may be impacting your snippet placement. It’s also possible, that as your using what looks like a custom built theme, some hooks that Site Kit uses to place snippets, may not be active.

    So we can determine more on this, please follow the steps below:

    1. Login to your live site from a Chrome browser incognito window.
    2. Install and activate the Health Check & Troubleshooting plugin.
    3. Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
    4. From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google“.
    5. Check your sites source code and see can you identity any Site Kit placed Analytics snippet (as per this guide). If you need help with this let me know.

    After you follow the steps above, please let me know if you can see the snippet placed. We can then perform some further checks. Note that you may need to install a default theme in order for troubleshooting mode to work more efficiently. You don’t need to have this theme active, just installed.

    In relation to your UA traffic queries, we’ll be performing checks above with your GA4 property, as UA has since been sunset. It’s therefore not uncommon to encounter a drop off in UA traffic.

    With regards impressions, this is a Search Console metric. You’ll find out more on this here.

    Let me know if you have nay questions with the above.

    Ash

    (@ashbryant)

    I’m having the same issue.

    Plugin Support James Osborne

    (@jamesosborne)

    @ashbryant If you’d like to open an individual support topic we can communicate with you from there. Please include any details relevant to what you’re experiencing. This may include sharing your Site Health information and a mention of whether you can see traffic for your property from analytics.google.com.

    Ash

    (@ashbryant)

    @jamesosborne I have. Just commenting to get updates

    Plugin Support James Osborne

    (@jamesosborne)

    Understood @ashbryant, appreciate the update. I can see my colleague is assisting you with this. Best of luck!

    Thread Starter questions4wp

    (@questions4wordpress)

    Thank so much for your reply @jamesosborne – I will try to follow your instructions and put the results below.

    Regarding UA, I totally understand that it’s been deprecated, my point with it was just that SiteKit worked for me until UA was deprecated for GA4 – meaning, whatever hooks were in my custom theme triggered SiteKit correctly. I haven’t modified my theme since then, but perhaps the plugin has been updated in some way that makes it incompatible.

    Per your instructions:

    Steps 1, 2, and 3: Complete

    4. From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google“.

    Done! Now there are 2 enabled plugins in troubleshooting mode – Health Check and Site Kit by Google. In addition, I installed the Twenty Twenty-Three theme as the default theme for troubleshooting.

    5. From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google“.

    Done! Now there are 2 enabled plugins in troubleshooting mode – Health Check and Site Kit by Google. In addition, I installed the Twenty Twenty-Three theme as the default theme for troubleshooting.

    6. Check your sites source code and see can you identity any Site Kit placed Analytics snippet (as per this guide). If you need help with this let me know.

    Using the same Chrome incognito browser that I am logged in as an admin to, I do not see the following line from the guide you linked to, or any of the subsequent lines:

    <!-- Google Analytics snippet added by Site Kit -->

    Instead, I see the following lines, which seems to have some relevance to Google Analytics/Tag Manager, within <head>:

    <script type="text/javascript">
    window["ga-disable-UA-198#####-1"] = true;
    </script>
    <script type="text/javascript">
    window["ga-disable-G-0GF#######"] = true;
    </script>
    ...
    
    <link rel="dns-prefetch"  />
    ...
    <meta name="generator" content="Site Kit by Google 1.108.0" /><style type="text/css" media="print">#wpadminbar { display:none; }</style>
    <style type="text/css" media="screen">
    	html { margin-top: 32px !important; }
    	@media screen and ( max-width: 782px ) {
    		html { margin-top: 46px !important; }
    	}
    </style>

    Not really sure if that helps you to diagnose what’s happening here, but hopefully it does!

    • This reply was modified 1 year, 2 months ago by questions4wp.
    • This reply was modified 1 year, 2 months ago by questions4wp.
    Plugin Support James Osborne

    (@jamesosborne)

    Appreciate the update @questions4wordpress. Given the full Analytics snippet doesn’t appear while in troubleshooting mode, we may need to perform some additional checks. Note that the snippet you mentioned which does appear (see below) is a valid Site Kit placed snippet to output your GA4 exclusion options:

    <script type="text/javascript"> window["ga-disable-UA-198#####-1"] = true; </script> <script type="text/javascript"> window["ga-disable-G-0GF#######"] = true; </script>

    This snippet appears for logged in users only.

    To troubleshoot this further, we may need to check any Cloudflare level configurations. From the checks I performed on your site I can see it’s pointing to Cloudflare servers. Can you share whether you can see any valid Site Kit placed snippet if you temporary bypass any Cloudflare servers (Overview, choose?Advanced Actions?>?Pause Cloudflare on Site.)?

    Let me know how you get on with the above. Note also that if you wish to temporarily switch themes, please let me know once this is done and I can check your site once more.

    Thread Starter questions4wp

    (@questions4wordpress)

    Hello @jamesosborne , CloudFlare is paused and the Twenty Twenty-Three theme is active

    Thread Starter questions4wp

    (@questions4wordpress)

    I do indeed see the Site Kit snippet now! So what should I do to bring my theme in line?

    Plugin Support James Osborne

    (@jamesosborne)

    I can indeed see the snippet placed now, thanks for the update. I suspect one of your hooks may not be working as expected. Site Kit placed the snippet via wp_body_open. Can you check your theme, possibly the header.php file and ensure this exists?

    Thread Starter questions4wp

    (@questions4wordpress)

    (I have switched back to my primary, custom theme)

    My custom theme does not contain wp_body_open anywhere – although, I searched the Twenty Twenty-Three theme as well so I could use it as an example, and I don’t see a reference to it there either

    Thread Starter questions4wp

    (@questions4wordpress)

    I have added this line immediately after the opening of the <body> tag of my custom theme, which remains active:

    <body>
    <?php wp_body_open(); ?>

    CloudFlare remains paused. I do not yet see the Site Kit tag though!

    Plugin Support James Osborne

    (@jamesosborne)

    Sorry to hear that didn’t work. What you’re facing seems to be theme related. Did you build your theme yourself, or do you have a public version available anywhere that would allow me to check it?

    Thread Starter questions4wp

    (@questions4wordpress)

    I don’t have a public version available, but I’m happy to make it available to you via whatever means you’d prefer!

    Plugin Support James Osborne

    (@jamesosborne)

    Great! If you wish to share via adding a link in our Site Health information form I can certainly take a look. Note that I can only confirm whether or not this is theme related, as opposed to making ay changes to your theme. If I can determine a Site Kit related issue we can then act on this.

    Another option is to test out your theme using this disposable WordPress site via TasteWP. This is a great way of checking for a theme related issue. Install your theme after confirming that the Analytics snippet has been placed via Site Kit.

    Let me know if you have any questions with the above.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘GA4 Not Reporting, Universal Analytics Worked Fine’ is closed to new replies.