Problems with Google Analytics Tracking

3 replies
  • SEO
  • |

I'm having some trouble tracking my data via Google Analytics on my WordPress site.

Now i've installed the tracking code in the header of the page as i always do, it's been working fine and tracking the traffic, but suddenly since last week it stopped working for some unknown reason, when i access the site and i try to see "Active users now" to see if i'm being detected i don't get any.

Here is my code, did i miss anything ? Does anyone have any idea why ? Also i'm having some new errors in my console.

Any help on this matter would be much appreciated. Thanks !

<!-- Global site tag (gtag.js) - Google Analytics -->

<script async src=""></script>


window.dataLayer = window.dataLayer || [];

function gtag(){dataLayer.push(arguments);}

gtag('js', new Date());

gtag('config', 'UX-XXXXXXX-1');

#analytics #google #problems #tracking
Avatar of Unregistered
  • Profile picture of the author Viki Fran
    What changes on the site preceded this problem?
    {{ DiscussionBoard.errors[11574956].message }}
    • Profile picture of the author kurosaki4d
      Thank you for your reply!

      The only thing i did is a added a few functions in the file "functions.php" and i unloaded a few plugins with a caching plugin.

      I even tried adding the tracking code through a theme feature, and it didn't work either.

      Will it help if i showed the console error messages?
      {{ DiscussionBoard.errors[11575662].message }}
      • Profile picture of the author Viki Fran
        Show console error messages, I will try to help you.
        {{ DiscussionBoard.errors[11577078].message }}
Avatar of Unregistered

Trending Topics