1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2024-11-22 11:19:02 +00:00
pelican-red/templates/google_analytics.html
Andrew Senetar 22037d5fa5 Initial Templates
Adds Initial base template and article templates along with the
analytics templates and Disqus comments template. Additional template
files created with just extends base to act as reminders to finish.
2013-05-27 22:15:01 -04:00

15 lines
677 B
HTML

<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{ GA_CODE }}']); //account #
_gaq.push(['_setDomainName', '{{ GA_DOMAIN }}']); //subdomains of rangertbc.net
{% if GA_LINKER == True %}
_gaq.push(['_setAllowLinker', true]); // multiple top-level domains true
{% endif %}
_gaq.push(['_trackPageview']);
(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);
})();