DNN Google Analytics

DotNetNuke 5.6.0 Bug in Google Analytics Module No Hits

The Problem We found that after updating to DNN 5.6.0 that the hits on Google Analytics dropped to 0 Page Views. We looked at the reason behind the problem with 0 hits being reported. What we found was that the code that Google states we should use on the page (and was working fine in DNN 5.5.1) is now not valid in 5.6.0. The tracking code for us looks like this:   var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-1111111-1’]); _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); })(); When… Read More »DotNetNuke 5.6.0 Bug in Google Analytics Module No Hits