Skip to content

Commit

Permalink
Merge pull request #419 from NLeSC/341_matomo
Browse files Browse the repository at this point in the history
adds Matomo anonymous cookie-free tracking + privacy policy page
  • Loading branch information
egpbos authored Dec 19, 2024
2 parents 0a9e00a + f5d7384 commit 8e33f51
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions _sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
- [UX - User Experience](/technology/user_experience.md)
- [Datasets](/technology/datasets.md)
- [Contributing to this Guide](/CONTRIBUTING.md)
- [Privacy](/privacy.md)
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@
/>
<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 8e33f51

Please sign in to comment.