A fork of hyde, the static site generation. Some patches will be pushed upstream.
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.
 
 
 

14 lines
565 B

  1. {% if site.in_production_mode %}
  2. <!-- asynchronous google analytics: mathiasbynens.be/notes/async-analytics-snippet
  3. change the UA-XXXXX-X to be your site's ID -->
  4. <script>
  5. var _gaq = [['_setAccount', '{{site.meta.GAID}}'], ['_trackPageview']];
  6. (function(d, t) {
  7. var g = d.createElement(t),
  8. s = d.getElementsByTagName(t)[0];
  9. g.async = true;
  10. g.src = ('https:' == location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  11. s.parentNode.insertBefore(g, s);
  12. })(document, 'script');
  13. </script>
  14. {% endif %}