Skip to content
Permalink
Browse files
Merge pull request #14 from apache/add-matomo
Add Matomo snippet to each webpage
  • Loading branch information
rlenferink committed Apr 13, 2022
2 parents f5f8166 + 8fb0742 commit a028f33b9330cc80c2fb908ede21db9375b2776c
Showing 5 changed files with 25 additions and 0 deletions.
@@ -32,6 +32,8 @@

<!-- Custom style -->
<link href="/assets/css/style.css" rel="stylesheet">

{{ partial "matomo.html" . }}
</head>
<body class="light-grey">

@@ -32,6 +32,8 @@

<!-- Custom style -->
<link href="/assets/css/style.css" rel="stylesheet">

{{ partial "matomo.html" . }}
</head>
<body class="light-grey">

@@ -32,6 +32,8 @@

<!-- Custom style -->
<link href="/assets/css/style.css" rel="stylesheet">

{{ partial "matomo.html" . }}
</head>
<body class="light-grey">

@@ -35,6 +35,8 @@

<!-- Font awesome icon set -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">

{{ partial "matomo.html" . }}
</head>
<body>

@@ -0,0 +1,17 @@
<!-- 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', '9']);
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 -->

0 comments on commit a028f33

Please sign in to comment.