alxo
asked on
Tracking Web Stats in Urchin 7 (local) and Google Analytics Simultaneously
My web server currently has Urchin 7 installed, and I am currently able to track stats both locally in Urchin and in my Google Analytics account using the following script just fine.
I want to leverage the new functionality in Google's new ga.js Tracking Script (custom variables and event tracking). Following Google's instructions, it suggested converting it to the following asynchronous script and adding it to the header just before the closing </head> tag of all my pages.
The the new script, Google Analytics is reporting the traffic just fine, but Urchin is not. All content areas in Urchin are reporting zero visitors and hits. IIS is logging all of the traffic, it just appears that Urchin is not reading the logs right or there's something missing. I've debugged ga.js on my page using Google's debugging tool in Chrome, and there are no errors. I've looked everywhere for a solution, and all recommendations I've tried do not work.
The general consensus is that I should not use both the urchin.js tracking script at the same time as the ga.js tracking script. That's the only thing I have not tried because just about everyone says that they will conflict and cause reporting issues on both sides.
What am I missing here? Any help would be highly appreciated.
<script src="/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_userv=2;
_uacct="UA-XXXXXXXX-X";
urchinTracker();
</script>
I want to leverage the new functionality in Google's new ga.js Tracking Script (custom variables and event tracking). Following Google's instructions, it suggested converting it to the following asynchronous script and adding it to the header just before the closing </head> tag of all my pages.
<script type='text/javascript'>
var _gaq = _gaq || [];
_gaq.push(
['_setAccount', 'UA-XXXXXXXX-X'],
['_setLocalGifPath', '/__utm.gif'],
['_setLocalRemoteServerMode'],
['_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>
The the new script, Google Analytics is reporting the traffic just fine, but Urchin is not. All content areas in Urchin are reporting zero visitors and hits. IIS is logging all of the traffic, it just appears that Urchin is not reading the logs right or there's something missing. I've debugged ga.js on my page using Google's debugging tool in Chrome, and there are no errors. I've looked everywhere for a solution, and all recommendations I've tried do not work.
The general consensus is that I should not use both the urchin.js tracking script at the same time as the ga.js tracking script. That's the only thing I have not tried because just about everyone says that they will conflict and cause reporting issues on both sides.
What am I missing here? Any help would be highly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was finally able to resolve the problem myself.
ASKER