analytics.html 546 B

123456789101112
  1. {% if GOOGLE_ANALYTICS %}
  2. <script type="text/javascript">
  3. var _gaq = _gaq || [];
  4. _gaq.push(['_setAccount', '{{GOOGLE_ANALYTICS}}']);
  5. _gaq.push(['_trackPageview']);
  6. (function() {
  7. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  8. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  9. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  10. })();
  11. </script>
  12. {% endif %}