Skip to content

Commit

Permalink
adds Matomo anonymous cookie-free tracking + privacy policy page
Browse files Browse the repository at this point in the history
Cannot get the Matomo opt-out to work, though, the message doesn't show (at least on my laptop). I left in the commented out code necessary to get the opt-out on the Privacy page.
  • Loading branch information
egpbos committed Dec 18, 2024
1 parent 8306ca2 commit fcc54c3
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions _sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@
* [UX - User Experience](/technology/user_experience.md)
* [Datasets](/technology/datasets.md)
* [Contributing to this Guide](/CONTRIBUTING.md)
* [Privacy](/privacy.md)
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify/themes/vue.css">
<link rel="stylesheet" href="/styles.css">
<link rel="icon" type="image/png" href="images/favicon.png">
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
_paq.push(['disableCookies']); // Call disableCookies before calling trackPageView
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.research.software/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '5']);
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 -->
</head>

<body>
Expand Down
9 changes: 9 additions & 0 deletions privacy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Privacy policy

We collect anonymised user data that helps us to monitor the effectiveness of our website.
No personally identifiable information is recorded and no cookies containing such information are set in your browser session.

<!-- The commented out section below doesn't seem to work in Docsify... -->
<!-- ## Analytics opt-out
<div id="matomo-opt-out"></div>
<script src="https://matomo.research.software/index.php?module=CoreAdminHome&action=optOutJS&divId=matomo-opt-out&language=auto&showIntro=1"></script> -->

0 comments on commit fcc54c3

Please sign in to comment.