0
I have a site on the air and wanted to have the information of how many people have accessed per day and week, so I created a login on google Analytics and registered my site.
Google Analytics generated a code with my ID to put in the head of my site, I put, but I checked and it appears that there is no login on my site.
This is the code:
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-114428382-1');
</script>
I put it on the front page of my website.
How long (days) have you put this code on the site? Google usually needs some time before you start tracking the data
– hugocsl
Try placing at the bottom of the page before closing the
body
, along with the other scripts. That’s the only way it works with me. If it works, I search sources for a more complete answer.– natodp
Another detail, in its first script tag, where is
GA_TRACKING_ID
should be your ID in case,UA-114428382-1
– natodp