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="https://www.googletagmanager.com/gtag/js?id=UX-XXXXXXX-1"></script> |
window.dataLayer = window.dataLayer || ;
gtag('js', new Date());