diff options
author | maxlambertini <m.lambertini@gmail.com> | 2015-10-26 15:24:34 +0100 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2015-10-27 13:10:27 -0700 |
commit | 9c87d63f70970aee390ad0c8b2623b27b4d94f15 (patch) | |
tree | 2c43a8817de6c7765b3fdb61d437cb29abc17791 /bricks/templates/analytics.html | |
parent | 10f51d8bb763fc6edd2ecd32c695d3529b01c93e (diff) | |
download | pelican-themes-9c87d63f70970aee390ad0c8b2623b27b4d94f15.tar.gz |
Add Bricks theme
Diffstat (limited to 'bricks/templates/analytics.html')
-rw-r--r-- | bricks/templates/analytics.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bricks/templates/analytics.html b/bricks/templates/analytics.html new file mode 100644 index 0000000..b96f455 --- /dev/null +++ b/bricks/templates/analytics.html @@ -0,0 +1,11 @@ +{% if GOOGLE_ANALYTICS %} +<script type="text/javascript"> +var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); +document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); +</script> +<script type="text/javascript"> +try { + var pageTracker = _gat._getTracker("{{GOOGLE_ANALYTICS}}"); +pageTracker._trackPageview(); +} catch(err) {}</script> +{% endif %}
\ No newline at end of file |