Forum Moderators: DixonJones

Message Too Old, No Replies

Google Analytics Tracking Code Confusion

         

Tashi

4:03 pm on May 16, 2011 (gmt 0)

10+ Year Member



I want to install the asynchronous tracking code because of the load time metric.

The code I have now:

<script type="text/javascript">
window.google_analytics_uacct = "UA#*$!#*$!X";
</script>

and

<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("U#*$!#*$!#*$!");
pageTracker._trackPageview();
} catch(err) {}</script>


My question: do I remove both snippets and replace it with the asynchronous code or should I leave one of them?

coopster

4:48 pm on May 16, 2011 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Replace both with the asynch code, which should have a spot for you to set the proper account code.