Heuzef - Les notes excentriques d'un bidouilleur.
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.

analytics.html 1.6 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {% if GOOGLE_ANALYTICS %}
  2. <script>
  3. (function(i, s, o, g, r, a, m) {
  4. i['GoogleAnalyticsObject'] = r;
  5. i[r] = i[r] || function() {
  6. (i[r].q = i[r].q || []).push(arguments)
  7. }, i[r].l = 1 * new Date();
  8. a = s.createElement(o);
  9. a.async = 1;
  10. a.src = g;
  11. m = s.getElementsByTagName(o)[0];
  12. m.parentNode.insertBefore(a, m)
  13. })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
  14. ga('create', '{{ GOOGLE_ANALYTICS }}', 'auto');
  15. ga('send', 'pageview');
  16. </script>
  17. {% endif %}
  18. {% if GAUGES %}
  19. <script>
  20. var _gauges = _gauges || [];
  21. (function() {
  22. var t = document.createElement('script');
  23. t.type = 'text/javascript';
  24. t.async = true;
  25. t.id = 'gauges-tracker';
  26. t.setAttribute('data-site-id', '{{ GAUGES }}');
  27. t.src = 'https://secure.gaug.es/track.js';
  28. var s = document.getElementsByTagName('script')[0];
  29. s.parentNode.insertBefore(t, s);
  30. })();
  31. </script>
  32. {% endif %}
  33. {% if PIWIK_URL and PIWIK_SITE_ID %}
  34. <script>
  35. var _paq = _paq || [];
  36. _paq.push(['trackPageView']);
  37. _paq.push(['enableLinkTracking']);
  38. (function() {
  39. var u = '{{ PIWIK_URL }}/';
  40. _paq.push(['setTrackerUrl', u + 'piwik.php']);
  41. _paq.push(['setSiteId', '{{ PIWIK_SITE_ID }}']);
  42. var g = document.createElement('script');
  43. g.type = 'text/javascript';
  44. g.async = true;
  45. g.defer = true;
  46. g.src = u + 'piwik.js';
  47. var s = document.getElementsByTagName('script')[0];
  48. s.parentNode.insertBefore(g, s);
  49. })();
  50. </script>
  51. {% endif %}