I have a Website (MOSS 2007) that has multiple URLS which is tracked by Google Analytics using the following code:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11111111-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_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>
This has been added to the Master Pages. We now want to break down the reporting so instead of just reporting for the entire site we can see information for different subsites. I could define a separate Analytics ID and have completely separate data, but is there a better way to somehow "tag" the analytics hits so we view either the entire site's information or just SubSite1, SubSite2, etc? The sites we want to do this for have their own master pages, so applying unique code to just the subsites is not a problem.