1
Fork 0

Use more private version of matomo script

This commit is contained in:
Jake Howard 2018-11-17 17:38:34 +00:00
parent 71fae40bff
commit f1600436b7
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 17 additions and 1 deletions

View file

@ -30,5 +30,6 @@
{{ partial "script.html" "js/app.js" }} {{ partial "script.html" "js/app.js" }}
{{ partial "matomo.html" . }} {{ partial "matomo.html" . }}
</body> </body>
</html> </html>

View file

@ -1,3 +1,18 @@
<!-- Matomo --> <!-- Matomo -->
<p><img src="//matomo.theorangeone.net/piwik.php?idsite=1&amp;rec=1" style="border:0;" alt="" /></p> <script type="text/javascript">
var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.theorangeone.net/";
_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);
})();
</script>
<noscript><p><img src="//matomo.theorangeone.net/piwik.php?idsite=1&amp;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code --> <!-- End Matomo Code -->