I have recently downgraded from DNN 6.2.9 Professional to Community Edition.
Since then, my Google Analytics is not working. This is what I am seeing in the Web pages that are generated:
<script type="text/javascript">
var _gaq = _gaq || ;
_gaq.push('_setAccount', '[TRACKING_ID]');
[CUSTOM_SCRIPT]
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_setAllowHash', false]);
_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>
As you can see, my tracking ID is not being substituted, the token '[TRACKING_ID]' is what appears.
When I displayed the Admin Features, all I saw was "Google Analytics Pro". When I clicked on GA Pro, I did not see a panel that allowed me to enter my Google Analytics Tracking ID.
I went through the process of re-adding the Google Analytics module to my Dev (sandbox) site: Admin, Modules, Category: Admin, Module: Google Analytics, Add Module. I was able to specify my Tracking ID.
However, the Javascript that DNN generates still says '[TRACKING_ID]'.
I edited SiteAnalytics.config and hard-coded the Tracking ID, but this is not a good solution because all my Portals now have the same Tracking ID.
Any suggestions as to how I cna get this working?
I would prefer not to install another thrid-party module, this becomes just one more compatibility headache when upgrading DNN.
Thanks.