diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2011-02-01 19:42:53 +0000 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2011-02-01 19:42:53 +0000 |
commit | 92808823a34cabb29b85ae2550e83ef39fc132a6 (patch) | |
tree | b8f3b21125e8279e0b279554ba4d5e0e0fc0a3c2 /waterspill/templates/analytics.html | |
parent | 9896db2d95ec58883d1adc41a2a29408260a4ed0 (diff) | |
download | pelican-themes-92808823a34cabb29b85ae2550e83ef39fc132a6.tar.gz |
Add the waterspill theme, thanks to Freeculture.
Diffstat (limited to 'waterspill/templates/analytics.html')
-rw-r--r-- | waterspill/templates/analytics.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/waterspill/templates/analytics.html b/waterspill/templates/analytics.html new file mode 100644 index 0000000..f19c7a6 --- /dev/null +++ b/waterspill/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 %} |