How do I add a website to Google Analytics that has urchin code tracking?
Today I was making some changes for a client to an outdated website that I created for them back in 2003. Actually this one was likely a 2005 incarnation considering all the Flash that was involved in it and the design style I used to have. I came across some good, old fashioned Google Analytics Urchin code.
You know the old school stuff when they first acquired Urchin Tracker. Here’s the code snippet:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">// < ![CDATA[
_uacct = "UA-XXXXX-2";
urchinTracker();
// ]]></script>
Where the XXXXX is actually my account number. Now here’s the problem. I still use that account number for a number of sites, but the domain in question isn’t showing in my list of sites. I’d be happy to upgrade the outdated urchin.js code to the new Google Analytics code.
<script type="text/javascript">// < ![CDATA[
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
// ]]></script>
My concern though is that I would like to have access to the historical data. I’m sure that it’s still recording it somewhere. When I decide to add the site it creates a new id for the site (i.e. instead of -2 it’s -45).
So my question I guess is this:
How do I add a website to Google Analytics that has urchin code tracking?
Hopefully some geniuses that are attending PubCon this week in Las Vegas will be able to help me out with an answer.