aboutsummaryrefslogtreecommitdiffstats
path: root/tuxlite_zf/templates/piwik.html
diff options
context:
space:
mode:
authorMatt <s@tuxlite.com>2013-03-12 17:24:22 +0000
committerMatt <s@tuxlite.com>2013-03-12 17:24:22 +0000
commitd5f56689a8ac207ef57dd8bcccced8e85ad3a3ed (patch)
tree25520321f3a40a2599c7d3c6b286dbd37c92ef50 /tuxlite_zf/templates/piwik.html
parent53d6c4254aa2b4781b850419d63a40527c307d71 (diff)
downloadpelican-themes-d5f56689a8ac207ef57dd8bcccced8e85ad3a3ed.tar.gz
Add new TuxLite_ZF theme.
Diffstat (limited to 'tuxlite_zf/templates/piwik.html')
-rw-r--r--tuxlite_zf/templates/piwik.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/tuxlite_zf/templates/piwik.html b/tuxlite_zf/templates/piwik.html
new file mode 100644
index 0000000..ff459af
--- /dev/null
+++ b/tuxlite_zf/templates/piwik.html
@@ -0,0 +1,16 @@
+{% if PIWIK_URL and PIWIK_SITE_ID %}
+ <script type="text/javascript">
+ {% if PIWIK_SSL_URL %}
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/");
+ {% else %}
+ var pkBaseURL = (("https:" == document.location.protocol) ? "https://{{ PIWIK_URL }}/" : "http://{{ PIWIK_URL }}/");
+ {% endif %}
+ document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
+ </script><script type="text/javascript">
+ try {
+ var piwikTracker = Piwik.getTracker(pkBaseURL + "piwik.php", {{ PIWIK_SITE_ID }});
+ piwikTracker.trackPageView();
+ piwikTracker.enableLinkTracking();
+ } catch( err ) {}
+ </script><noscript><p><img src="http://{{ PIWIK_URL }}/piwik.php?idsite={{ PIWIK_SITE_ID }}" style="border:0" alt="" /></p></noscript>
+{% endif %} \ No newline at end of file