Skip to content
Permalink
Browse files
Remove plausible add Matomo
  • Loading branch information
hansva committed May 4, 2022
1 parent 893cb4f commit b85cd7eab858190ea7675bc8daf9600617a69476
Showing 2 changed files with 34 additions and 2 deletions.
@@ -27,4 +27,20 @@ search.on('autocomplete:closed', function () { search.autocomplete.setVal() })
function focusSearchInput () { document.querySelector('#search-input').focus() }
if (document.querySelector('.home-link.is-current')) window.addEventListener('load', focusSearchInput)
</script>
<script defer data-domain="hop.apache.org" src="https://plausible.io/js/plausible.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* We explicitly disable cookie tracking to avoid privacy issues */
_paq.push(['disableCookies']);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '11']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
@@ -56,7 +56,23 @@
function focusSearchInput () { document.querySelector('#search-input').focus() }
if (document.querySelector('.home-link.is-current')) window.addEventListener('load', focusSearchInput)
</script>
<script defer data-domain="hop.apache.org" src="https://plausible.io/js/plausible.js"></script>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* We explicitly disable cookie tracking to avoid privacy issues */
_paq.push(['disableCookies']);
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '11']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
{{ partial "seo/main" . }}

</body>

0 comments on commit b85cd7e

Please sign in to comment.