Skip to content

Commit 0f5ec0d

Browse files
committed
Revert "Remove Piwik tracking code"
This reverts commit aa12783.
1 parent 49f6bff commit 0f5ec0d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/includes/footer.pug

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
11
footer
22
p You may find the source code for this website, licensed to you under the GNU Affero GPL, <a rel="license" href="https://github.com/strugee/strugee.github.com">on GitHub</a>. English copy is additionally licensed under <a rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/">Creative Commons BY-SA 4.0</a>.
33
p &copy; Copyright 2012-2019 AJ Jordan.
4+
5+
// Piwik
6+
// Note that this Piwik instance is self-hosted and so doesn't leak metadata. Also, critically, it respects Do Not Track.
7+
script.
8+
var _paq = _paq || [];
9+
_paq.push(['trackPageView']);
10+
_paq.push(['enableLinkTracking']);
11+
(function() {
12+
var u="//piwik.strugee.net/";
13+
_paq.push(['setTrackerUrl', u+'piwik.php']);
14+
_paq.push(['setSiteId', 1]);
15+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
16+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
17+
})();
18+
noscript
19+
p
20+
img(src="//piwik.strugee.net/piwik.php?idsite=1", style="border:0;", alt="")
21+
// End Piwik Code

0 commit comments

Comments
 (0)