diff options
author | Matt <s@tuxlite.com> | 2013-03-12 17:24:22 +0000 |
---|---|---|
committer | Matt <s@tuxlite.com> | 2013-03-12 17:24:22 +0000 |
commit | d5f56689a8ac207ef57dd8bcccced8e85ad3a3ed (patch) | |
tree | 25520321f3a40a2599c7d3c6b286dbd37c92ef50 /tuxlite_zf/templates/piwik.html | |
parent | 53d6c4254aa2b4781b850419d63a40527c307d71 (diff) | |
download | pelican-themes-d5f56689a8ac207ef57dd8bcccced8e85ad3a3ed.tar.gz |
Add new TuxLite_ZF theme.
Diffstat (limited to 'tuxlite_zf/templates/piwik.html')
-rw-r--r-- | tuxlite_zf/templates/piwik.html | 16 |
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 |