diff options
author | Daan Debie <debie.daan@gmail.com> | 2014-01-27 23:38:37 +0100 |
---|---|---|
committer | Daan Debie <debie.daan@gmail.com> | 2014-01-27 23:39:08 +0100 |
commit | fd1a4eaba46c1def74bd6905bce15c61bb326ed5 (patch) | |
tree | a768a44479fcec3e04307f4035b30a689ae6d826 /pelican-bootstrap3/templates/includes/piwik.html | |
parent | c35cbabcaf4807b9474203a2fbd809883b08ad50 (diff) | |
download | pelican-themes-fd1a4eaba46c1def74bd6905bce15c61bb326ed5.tar.gz |
Updated pelican-bootstrap to v1.2
Diffstat (limited to 'pelican-bootstrap3/templates/includes/piwik.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/piwik.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/piwik.html b/pelican-bootstrap3/templates/includes/piwik.html new file mode 100644 index 0000000..70c45c2 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/piwik.html @@ -0,0 +1,20 @@ +{% if PIWIK_SITE_ID and PIWIK_URL %} + {% if PIWIK_SSL_URL is not defined %} + {% set PIWIK_SSL_URL = PIWIK_URL %} + {% endif %} +<!-- Piwik --> +<script type="text/javascript"> + var _paq = _paq || []; + _paq.push(["trackPageView"]); + _paq.push(["enableLinkTracking"]); + + (function() { + var u=(("https:" == document.location.protocol) ? "https://{{ PIWIK_SSL_URL }}/" : "http://{{ PIWIK_URL }}/"); + _paq.push(["setTrackerUrl", u+"piwik.php"]); + _paq.push(["setSiteId", "{{ PIWIK_SITE_ID }}"]); + var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; + g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); + })(); +</script> +<!-- End Piwik Code --> +{% endif %}
\ No newline at end of file |