diff options
author | Alexis Metaireau <alexis@notmyidea.org> | 2012-11-21 02:11:21 -0800 |
---|---|---|
committer | Alexis Metaireau <alexis@notmyidea.org> | 2012-11-21 02:11:21 -0800 |
commit | e4c896d1f5c0b093537e8f162df75484573d1d2c (patch) | |
tree | 443eaca50cf22a0ad38704056652ee09207f37bf /waterspill-en/templates/analytics.html | |
parent | 975a43dac221322aaf0c973e0042c9af334e804b (diff) | |
parent | 7a3bbd1356c0922c9fcad3800bdbae97e36ab940 (diff) | |
download | pelican-themes-e4c896d1f5c0b093537e8f162df75484573d1d2c.tar.gz |
Merge pull request #57 from thedod/master
Proposing waterspill-en
Diffstat (limited to 'waterspill-en/templates/analytics.html')
-rw-r--r-- | waterspill-en/templates/analytics.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/waterspill-en/templates/analytics.html b/waterspill-en/templates/analytics.html new file mode 100644 index 0000000..f19c7a6 --- /dev/null +++ b/waterspill-en/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 %} |