diff options
author | m-r-r <skami@skami-laptop.dyndns.org> | 2012-06-22 07:57:12 +0000 |
---|---|---|
committer | m-r-r <skami@skami-laptop.dyndns.org> | 2012-06-22 07:57:12 +0000 |
commit | 98f0d46f2bbddf86e8d202b533af35fa79da2d2f (patch) | |
tree | 297d677cfa76bb20d4e80803343c69b99c939e37 /bootlex/templates/analytics.html | |
parent | 2950b6abdad62fdd74682880acdec32f9b417420 (diff) | |
parent | 83892b7112e27721218556c4030cdd5c8d26f98b (diff) | |
download | pelican-themes-98f0d46f2bbddf86e8d202b533af35fa79da2d2f.tar.gz |
[dev-random] resolved conflicts
Diffstat (limited to 'bootlex/templates/analytics.html')
-rw-r--r-- | bootlex/templates/analytics.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bootlex/templates/analytics.html b/bootlex/templates/analytics.html new file mode 100644 index 0000000..2d7b5f2 --- /dev/null +++ b/bootlex/templates/analytics.html @@ -0,0 +1,15 @@ +{% if GOOGLE_ANALYTICS %} +<script type="text/javascript"> + + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '{{ GOOGLE_ANALYTICS }}']); + _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); + })(); + +</script> +{% endif %}
\ No newline at end of file |