Browse Source

add self-hosted matomo pageview tracking

master
Jeffrey Paul 2 years ago
parent
commit
4b745db52e
  1. 1
      view/base.html
  2. 14
      view/matomo.html

1
view/base.html

@ -16,6 +16,7 @@
{% include "style.css" %}
</style>
{% include "matomo.html" %}
</head>
<body>

14
view/matomo.html

@ -0,0 +1,14 @@
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://t.sneak.cloud/";
_paq.push(['setTrackerUrl', u+'js/']);
_paq.push(['setSiteId', '2']);
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+'js/'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="https://t.sneak.cloud/js/?idsite=2&amp;rec=1" style="border:0;" alt="" /></p></noscript>
Loading…
Cancel
Save