• Resolved weerz

    (@weerz)


    Hi,

    So let me start that i’m postive the problem is me and i’m doing something wrong ??

    But i can’t get any traffic from the website. Using the gtag.js version.
    Used the complete ID from analytics UA-xxxxxx-x
    When i do a pagespeed from google it also show that i have a gtag.js script and it show the correct ID.

    Live traffic testing is giving no traffic.

    Any idears?

    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeff Starr

    (@specialk)

    I checked the page you mention and do not find any gtag tracking code. I do notice however that you are using some sort of cache plugin. Chances are that you need to empty/reset the cache before the tracking code will be included on the page.

    Thread Starter weerz

    (@weerz)

    Hi Jeff,

    Thanks and correct in the cache, but that’s already flushed. Many times ??
    Why you don’t see the gtag i don’t know.

    My tests:
    When i check at google pagespeed or GT Metrix i can see the javascript is loaded with the gtag. When i look up the page an view the source, i can see the id in the code. All in private windows so it needs to get all from the server.

    Plugin Author Jeff Starr

    (@specialk)

    Searching the source code of your web page, I do find the external GA script is loading:

    https://www.googletagmanager.com/gtag/js...

    But the other *inline* script is missing:

    <script>
    	window.dataLayer = window.dataLayer || [];
    	function gtag(){dataLayer.push(arguments);}
    	gtag('js', new Date());
    	gtag('config', 'US-1234567890');
    </script>

    So something is removing that second inline code, which is required for tracking to work. My guess would be a cache plugin is doing it, or maybe some other plugin interfering.

    Note: the US-1234567890 in the code above is just an example. The GA plugin will add the correct tracking for you based on the settings.

    • This reply was modified 4 years, 1 month ago by Jeff Starr. Reason: adds infos
    Plugin Author Jeff Starr

    (@specialk)

    Hi @weerz, just wanted to follow up with this. It’s been awhile with no reply, so I hope the issue is resolved? Or if there is anything I can do to help, please let me know. Thank you.

    Thread Starter weerz

    (@weerz)

    Hi Jeff,

    Sorry, i should have updated!
    But the problem is solved. A server issue witch was blocking google itself in getting the information. So we are having the analytics again!

    Cheers,
    Weerz

    Plugin Author Jeff Starr

    (@specialk)

    That’s great news. Thanks for following up, Weerz ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not showing traffic’ is closed to new replies.