src/hdalab/templates/google_analytics/analytics_template.html
changeset 266 825ff4d6a8ac
parent 170 cb3e869ab252
child 627 3fd558fa38b1
equal deleted inserted replaced
203:00fc169cc6a9 266:825ff4d6a8ac
       
     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>