You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 line
546B

  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 %}