src/hdalab/templates/google_analytics/analytics_template.html
changeset 271 8f77cf71ab02
parent 170 cb3e869ab252
child 627 3fd558fa38b1
equal deleted inserted replaced
265:73f19fa4f997 271:8f77cf71ab02
       
     1 <script type="text/javascript">
       
     2 var _gaq = _gaq || [];
       
     3 _gaq.push(['_setAccount', '{{ analytics_code }}']);
       
     4 _gaq.push(['_trackPageview']);
       
     5 (function() {
       
     6 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       
     7 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       
     8 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       
     9 })();
       
    10 </script>