~hristoast/hristoast

ad7712af5acabee97638974cfdad2da806af35e1 — Hristos N. Triantafillou 1 year, 15 days ago c5aca0d
Matomo code
2 files changed, 15 insertions(+), 0 deletions(-)

A site/js/tracking.js
M templates/main.html
A site/js/tracking.js => site/js/tracking.js +13 -0
@@ 0,0 1,13 @@
/* Matomo tracking code */
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
    var u="//stats." + window.location.hostname + "/";
    _paq.push(['setTrackerUrl', u+'piwik.php']);
    _paq.push(['setSiteId', '1']);
    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
    g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();

M templates/main.html => templates/main.html +2 -0
@@ 11,6 11,8 @@
    <link rel="stylesheet" type="text/css" href="/css/prism.css" />
    <link rel="stylesheet" type="text/css" href="/asciinema/asciinema-player.css" />
    <link rel="icon" href="/img/slime.png">
    <script src="js/tracking.js" type="text/javascript"></script>
    <noscript><p><img src="//stats.hristos.co/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
  </head>
  <body>
    <header>