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 ;
Related
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.
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.
I have a series of html pages that form a site that is installed locally on a customers machine. I would like to track their use of our site with analytics (googles or otherwise) to get a sense of where they are navigating, what they are looking at, etc.
I'm new to the concept of analytics on a webpage and want to know if there is a way to run these analytics on a local machine. Specifically, can this tracking information be accumulated locally on a customers machine and then uploaded with a separate application, i.e. it cannot be a requirement that these webpages have access to the internet. It would be ideal to create a dump or copy of the information accumulated that could then be sent off via another tool.
Thank you for all your help,
Dirk7589
NOTE:- Customer's machine must have internetconnectivity
You need to include analytics.js script in all html pages before closing of head tag, or while using framework like rails put it in your main template so it loads every time a user opens a new page.Also remember you need to send page view separately for ajax call.
USE THIS LINK FOR REFRENCE
Below code is analytics.js:-
<!-- Google Analytics -->
<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', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
Then go to your google analytics ACCOUNT AND TRACK FLOW IN LEFT HAND SIDE
BEHAVIOR > BEHAVIOR FLOW
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.
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.