Google Analytics doesn't show even real time data - google-analytics

Is there a delay between when you open a Google Analytics account and when it starts reporting?
For some reason, my Google Analytics doesn't report anything even though in the browser console everything seems fine.
Did anyone experience a similar issue?
(function(i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o) [0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-61199413-1', 'none');
ga('send', 'pageview');
Please see that everything looks fine in the browser console.

Related

“Destination URLs are not tagged properly” error in Google Analytics

I am getting the below error in Google Analytics, suggesting I do not have the correct tracking code on my site, though I do. I'm using cookies-eu-banner, and have the below code on my site.
What could be causing this? If I visit the page this is logged in Google Analytics in the real time view, so it seems to be working but the error suggests something is awry.
Code
new CookiesEuBanner(function () {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'MYTRACKINGCODE', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['subscriptions.thestage.co.uk']);
ga('require', 'displayfeatures');
ga('require', 'linkid', 'linkid.js');
ga('send', 'pageview');
…other tracking code…
}, true);
Error
The Ad Destination URL https://www.MYSITE from the AdWords account MYACCOUNT has accrued a significant number of clicks but a lower-than-expected number of sessions because the page is not tagged with a supported version of the Google Analytics tracking code.
If your pages do not include a supported version of the Analytics tracking code, then Analytics cannot collect data for those pages.
To find the right tracking code for your property, on the Analytics Admin page in the Property column, click Tracking info, then click Tracking Code.
Google Tag Assistant Recordings can help you ensure that your tracking code is sending hits as expected.

Google Analytics not Tracking FB Instant Articles Page Views.

Instant Articles are configured a couple of months back. We have close to 300+ articles. Everything is working fine as long as Instant Articles is concerned.
I was not aware of the fact that GA doesn't track the page views from Instant Articles. I followed this https://stackoverflow.com/a/38112027/2657566 and added Global Site Tag.
This is my code. After saving it from Wordpress Instant Article Plugin's interface, when I open the Instant Article from my mobile, I dont see any active users.
Can you please let me know if am missing anything. Thanks in advance.
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXXXXXXX-X', 'auto');
ga('set', 'campaignSource', 'Facebook');
ga('set', 'campaignMedium', 'Facebook Instant Articles');
ga('set', 'referrer', ia_document.referrer);
ga('send', 'pageview');
</script>
Remove https:// and make sure the url is like this(if you’d ridge is not serving https requests) //www.google-analytics.com/analytics.js.

why i can't see any visiting data in Reporting tab?

i had set up a google analytics account 3 days ago and i followed the instructions given from google analytics website. all goes well, but when i go to my google analytics account i can't see any visiting data. to be sur there is visitors i accessed my website from different places.
is it a matter of time or did i miss something ?
this is the Tracking Code
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-68467341-1', 'auto');
ga('send', 'pageview');
</script>
a preview from my account
THANK YOU.

Google Analytics won't identify tracking

I'm breaking my nuts over this all day long.
I have a wordpress site i am trying to attach a GA account to.
I followed the instructions and pasted the code before
yet my status is still "Status: Tracking Not Installed"
and my real time dashboard shows nothing.
this is my code
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-21580912-7', 'auto');
ga('send', 'pageview');
</script>
this is my site www.nter.com
any help is good. ty.
Your tag looks fine after checking with Google Tag Assistant; I can see pageview hits going through. Are you making sure you are not filtering out your own visits? Also, the tracking code usually takes at least 24 hours to register, so if you just installed it then you would need to wait at least that long before seeing data show up in your standard reports (and also for the status to stop showing that tracking is not installed). In the Real-time reports, are you checking your own simultaneous visits, meaning you would need to visit your site, and then check right away in the RT reports? You also have an error on your page on line 169, which may or may not be breaking your analytics:
Uncaught SyntaxError: Unexpected token ;

Google analytics for localhost site

I've deployed website that is running on server on local network and I would like to track traffic with Google analytics.
Following code, that was generated by google analytics, is placed in pages that I would like to track
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXXX-Y', { 'cookieDomain': 'none'});
ga('send', 'pageview');
</script>
This line of code was modified according to this topic.
ga('create', 'UA-XXXX-Y', { 'cookieDomain': 'none'});
When I visit my admin page on Google analytics site it says under Status that Tracking is not installed.
Page was visited from several computers but it seems that page view info is not getting to Google servers.
Am I missing something?
Another way around would be to add a FQDN to your local /etc/hosts file, e.g.
127.0.0.1 localhost.dev
Point your browser to http://localhost.dev/ instead.
At the end it seemed that inserted code was enough. It just required some time for google servers to get and process the information.

Resources