Skip to content

Commit 7f5c2a8

Browse files
authored
Docs: Add analytics for polaris.apache.org (#2676)
1 parent 925c00b commit 7f5c2a8

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

site/layouts/partials/head.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,24 @@
7878
{{ end -}}
7979

8080
{{ end -}}
81+
82+
<!-- Matomo -->
83+
<script>
84+
/* Analytics for https://polaris.apache.org/ */
85+
var _paq = window._paq = window._paq || [];
86+
/* tracker methods like "setCustomDimension" should be called before
87+
"trackPageView" */
88+
_paq.push(["setDoNotTrack", true]);
89+
_paq.push(["disableCookies"]);
90+
_paq.push(['trackPageView']);
91+
_paq.push(['enableLinkTracking']);
92+
(function() {
93+
var u="https://analytics.apache.org/";
94+
_paq.push(['setTrackerUrl', u+'matomo.php']);
95+
_paq.push(['setSiteId', '81']);
96+
var d=document, g=d.createElement('script'),
97+
s=d.getElementsByTagName('script')[0];
98+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
99+
})();
100+
</script>
101+
<!-- End Matomo Code -->

0 commit comments

Comments
 (0)