July 22 2009

Time To Update Your Google Analytics

It may be time to update your Google Analytics. As always Google is upgrading their products and services.  Google analytics has gone through a couple upgrades.  Below is an example of some older code along with the newest version that should be on your websites. 

The main reason to upgrade is that the new Google Analytics more accurately reports referring traffic when the proper campaign tags are assigned to the URL.

Here is the old Urchin code on the many sites now:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
                _uacct = "UA-193XXXX-1";
                urchinTracker();
</script>
 
Here is the new code that should be on your site:

<script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www." <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-193XXXX-1");
        pageTracker._trackPageview();
    } catch (err) { }</script>


As reported on the Google Analytics blog:

"We are also rolling out the new ga.js page tag which we recommend you use for all new accounts and new profiles for new domains. Although your existing urchin.js page tags will continue to work, you may wish to update them to ga.js anyway. This will allow you to take advantage of the most up-to-date tracking functionality as it is added to Google Analytics."

Read about the upgraded GA tools here.

Sincerely,

Jim Adams - CEO
New Homes Directory.com

Comments

Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview
Loading



Search


Subscribe

Feed ic_myyahoo.gif

ABOUT THIS BLOG

The New Homes Directory.com Corporate blog began in 2008, due to the increasing difficulty of keeping both our company personnel as well as our client base up to date with both site and product enhancements. Read more...

Comment Policy

We encourage comments and look forward to hearing from you. Please note that New Homes Directory.com may, in our sole discretion, remove comments if they are off topic, or inappropriate. Copyright © 2021 Fat Cat Inc. All rights reserved.