Google Analytics

Before:

<script type="text/javascript">
   // <![CDATA[
   var _gaq = _gaq || [];
   _gaq.push(['_setAccount', 'UA-00000000-1']);
   _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>

Last edited Jun 4, 2013 at 7:42 PM by gmbarlow, version 1

Comments

lpasone May 28, 2015 at 4:46 PM 
Hello,
in dnn there is a module Analitycs to set google analitycs for website. There is the id-track input only... So, if user doesn't accept cookie for analitycs I have to disable tracking...
Have I to change script with this in page? But, in Dnn if i use google analitycs module i can't see script and i can't change script.

Any idea?