Page is a not externally linkable
- WebmasterWorld
-- Website Analytics - Tracking and Logging
---- Correct bounce rate in Google Analytics


jetteroheller - 7:11 am on Jan 2, 2010 (gmt 0)


that is strange- can you post the code you used on both the test.example.com and www.example.com? with your tracking code annonymised of course.

On www.example.com

<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-NNNNNN-1");
pageTracker._trackPageview();
} catch(err) {}</script>

On test.example.com

<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-NNNNNN-24");
pageTracker._setDomainName(".example.com");
pageTracker._trackPageview();
} catch(err) {}</script>

All watched on MWIE 7, set for show all javascript errors, but no javascript error shown.


Thread source:: http://www.webmasterworld.com/analytics/4051001.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com