<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-xxxxx-1");
pageTracker._setLocalRemoteServerMode();
pageTracker._trackPageview();
} catch(err) {}
</script>
4 comments:
Hi Beno,
Nice information, but the data will store in our local server log files while adding the following line to the code
pageTracker._setLocalRemoteServerMode();
If i'm wrong please correct me.
Great to hear from you Muthu. Nice question and you are partially right.
Well how it works is, when you add this single line of code it sends your data to Google Analytics collection servers and at the same time adds this data into your local web server log files. So the information is collected in 2 places. Hope this answers your question.
Hm..Good one. I did not realize that. Thanks for sharing.
@Avinash - welcome.
Post a Comment