diff options
author | lxf <sng@luxagraf.net> | 2019-10-06 14:30:39 +0000 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2019-10-06 14:30:39 +0000 |
commit | bf095131fa91a58e667e7244940ec534e6206ae9 (patch) | |
tree | 27192bf8bb05f44d1b57e01c4febd9adcdec6803 /design | |
parent | 5bc22c064fbc51987007d85fbc8296a998cf6e84 (diff) |
updated matomo code to work
Diffstat (limited to 'design')
-rw-r--r-- | design/templates/base.html | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/design/templates/base.html b/design/templates/base.html index 57883c2..a95fb26 100644 --- a/design/templates/base.html +++ b/design/templates/base.html @@ -32,10 +32,10 @@ <nav> <ul> <li><a href="/jrnl/" title="Stories of life on the road.">Jrnl</a></li> - <li><a href="/guides/" title="Advice, Tools, Tips and Tricks for Full Time Van or RV Life.">Guides</a></li> + <!--<li><a href="/guides/" title="Advice, Tools, Tips and Tricks for Full Time Van or RV Life.">Guides</a></li>--> + <li><a href="/essays/" title="longer essays and posts about non-travel related things">Essays</a></li> <li><a href="/field-notes/" title="Short stories, snapshots of daily life on the road.">Notes</a></li> <li><a href="/newsletter/" title="The 'friends of a long year' newsletter">Lttr</a></li> - <!--<li><a href="/essays/" title="longer essays and posts about non-travel related things">Essays</a></li>--> <li><a href="/about" title="About Scott">About</a></li> </ul> </nav> @@ -77,33 +77,33 @@ <script> <!-- // Register our service-worker -if (navigator.serviceWorker) { - window.addEventListener('load', function() { - if (navigator.serviceWorker.controller) { - navigator.serviceWorker.controller.postMessage({'command': 'trimCaches'}); - } else { - navigator.serviceWorker.register('/serviceworker.js', { - scope: '/' - }); - } - }); -} +//if (navigator.serviceWorker) { +// window.addEventListener('load', function() { +// if (navigator.serviceWorker.controller) { +// navigator.serviceWorker.controller.postMessage({'command': 'trimCaches'}); +// } else { +// navigator.serviceWorker.register('/serviceworker.js', { +// scope: '/' +// }); +// } +// }); +//} //--> -<!-- Matomo --> -<script type="text/javascript"> -var _paq = window._paq || []; +<!-- Piwik --> +var _paq = _paq || []; +_paq.push(["disableCookies"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//stats.luxagraf.net/"; - _paq.push(['setTrackerUrl', u+'matomo.php']); - _paq.push(['setSiteId', '1']); + _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+'matomo.js'; s.parentNode.insertBefore(g,s); -})(); + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); + })(); +<!-- End Piwik Code --> </script> -<!-- End Matomo Code --> - +<noscript><p><img src="//stats.luxagraf.net/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript> </body> </html> |