Updated Google Analytics Tracking Code for ASP sites

December 20, 2007

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:

Comments

Got something to say?





*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation