aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/piwik/piwik.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-03-09 20:51:28 +0100
committerArthurHoaro <arthur@hoa.ro>2017-03-11 13:27:02 +0100
commitfe83d45c465bad94709ce5aacf7acad47ad75077 (patch)
treec9b1bcc7c6461f8d1846f376d2b94adadceed6e4 /plugins/piwik/piwik.html
parent844021ab4c0d3dd6c26704648a736fa53244c914 (diff)
downloadShaarli-fe83d45c465bad94709ce5aacf7acad47ad75077.tar.gz
Shaarli-fe83d45c465bad94709ce5aacf7acad47ad75077.tar.zst
Shaarli-fe83d45c465bad94709ce5aacf7acad47ad75077.zip
Fix #773: set Piwik URL protocol
Diffstat (limited to 'plugins/piwik/piwik.html')
-rw-r--r--plugins/piwik/piwik.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/piwik/piwik.html b/plugins/piwik/piwik.html
new file mode 100644
index 00000000..0881d7c8
--- /dev/null
+++ b/plugins/piwik/piwik.html
@@ -0,0 +1,15 @@
1<!-- Piwik -->
2<script type="text/javascript">
3 var _paq = _paq || [];
4 _paq.push(['trackPageView']);
5 _paq.push(['enableLinkTracking']);
6 (function() {
7 var u="%s/";
8 _paq.push(['setTrackerUrl', u+'piwik.php']);
9 _paq.push(['setSiteId', '%s']);
10 var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
11 g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
12 })();
13</script>
14<noscript><p><img src="%s/piwik.php?idsite=%s" style="border:0;" alt="" /></p></noscript>
15<!-- End Piwik Code --> \ No newline at end of file