aboutsummaryrefslogtreecommitdiffstats
path: root/cebong/templates/analytics.html
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2012-11-20 15:26:54 -0800
committerAlexis Metaireau <alexis@notmyidea.org>2012-11-20 15:26:54 -0800
commitf9fd2f5c414fab9a3230e69b9370918eddcf2e5b (patch)
treec452259418abcc1b367d00a3a3fa5eb3b8686077 /cebong/templates/analytics.html
parent662052faa4749d3fec2ff1149e853f71d5c2b434 (diff)
parente13a5cca9654737c9bf551a8947ef12df09a055f (diff)
downloadpelican-themes-f9fd2f5c414fab9a3230e69b9370918eddcf2e5b.tar.gz
Merge pull request #58 from kecebongsoft/cebong
New theme: cebong
Diffstat (limited to 'cebong/templates/analytics.html')
-rw-r--r--cebong/templates/analytics.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/cebong/templates/analytics.html b/cebong/templates/analytics.html
new file mode 100644
index 0000000..ba174fc
--- /dev/null
+++ b/cebong/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