20 December 2007 ~ 0 Comments

Updated Google Analytics Tracking Code for ASP sites

I was reading on Justin Cutroni’s blog, Analytics Talk, about an update to the Google Analytics tracking code he had posted recently. It’s worth the read and basically Justin talks about how to use this Google Analytics tracking code on ASP based websites for tracking purposes. Here is a copy of the Google Analytics code posted on Justin’s blog

<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”>

var pageTracker = _gat._getTracker(“UA-xxxxx-x”);


pageTracker._initData();

pageTracker._trackPageview();

</script>

Feel free to check on Justin’s site and read his brief article on this subject. Happy Googling!

Luc

Related Articles:

Leave a Reply