Welcome to WebmasterWorld Guest from

Forum Moderators: DixonJones & mademetop

Message Too Old, No Replies

Google Analytics Tracking Code Confusion

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

Junior Member

10+ Year Member

joined:Mar 31, 2009
posts: 42
votes: 0

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 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 type="text/javascript">
try {
var pageTracker = _gat._getTracker("U#*$!#*$!#*$!");
} catch(err) {}</script>

My question: do I remove both snippets and replace it with the asynchronous code or should I leave one of them?
4:48 pm on May 16, 2011 (gmt 0)


WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
votes: 3

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