aboutsummaryrefslogtreecommitdiffstats
path: root/nmnlist/templates/analytics.html
diff options
context:
space:
mode:
authorStéphane Caron <stephane.caron@ens.fr>2013-03-20 12:04:11 +0100
committerStéphane Caron <stephane.caron@ens.fr>2013-03-20 12:04:11 +0100
commitda810104cd033c1dcc25d67f8f09985a415b43b9 (patch)
tree3ab6f758a1e022e04ebd82bf09691648ecb14107 /nmnlist/templates/analytics.html
parent53d6c4254aa2b4781b850419d63a40527c307d71 (diff)
downloadpelican-themes-da810104cd033c1dcc25d67f8f09985a415b43b9.tar.gz
theme variant from mnmlist
Diffstat (limited to 'nmnlist/templates/analytics.html')
-rw-r--r--nmnlist/templates/analytics.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/nmnlist/templates/analytics.html b/nmnlist/templates/analytics.html
new file mode 100644
index 0000000..ba174fc
--- /dev/null
+++ b/nmnlist/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