findcommonground.uk/_includes/analytics.html

16 lines
568 B
HTML
Raw Permalink Normal View History

{% if site.google_analytics %}
<!-- Google Analytics -->
<script type="text/javascript">
2014-02-07 00:18:00 +00:00
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ site.google_analytics }}']);
_gaq.push(['_trackPageview']);
2014-02-07 00:18:00 +00:00
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
2014-02-07 00:18:00 +00:00
</script>
{% endif %}