Reputation: 151
I'm making a webpage for the users to open directly from their local drives with Internet Explorer. I want to use Google Analytics on these pages.
I added the Google Analytics tracking code to the page, but it doesn't seem to be working.
Is it possible to use Google Analytics for local pages? If so, how?
Upvotes: 4
Views: 3285
Reputation: 111
I have tested some settings according to this post and it seems to work fine.
Shortly, you need to setup few things.
DomainName whether is set or not should be none.
_gaq.push(['_setDomainName', 'none']);
Additionally change google js url from ga.js to: u/ga_debug.js
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/u/ga_debug.js';
What may be interesting that at first glance google analytics seems to be not working on this site (my local site). After half or maybe an hour it starts recording actions.
Good luck!
Upvotes: 5
Reputation: 1163
there is one way you can do it, just configure you webpage/site to iis, then you can track that site/page for "localhost / 127.0.0.1"
in short, you can create GA for localhost also.you should surf on it
Upvotes: 0
Reputation: 1526
It is not possible to use Google Analytics Tool for local Pages. Because, if you insert the tracking Code in your page, Google Analytics is trying to connect and check the tracking code on your domain and this don´t work.
Upvotes: 2