Skip to content

Commit 23f7846

Browse files
committed
Add Matomo script to website
1 parent 4686b2b commit 23f7846

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

antora-playbook.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ ui:
7272

7373
- path: partials/footer-scripts.hbs
7474
contents: |
75+
<!-- Matomo -->
76+
<script>
77+
var _paq = window._paq = window._paq || [];
78+
_paq.push(["disableCookies"]);
79+
_paq.push(['trackPageView']);
80+
_paq.push(['enableLinkTracking']);
81+
(function() {
82+
var u="https://analytics.apache.org/";
83+
_paq.push(['setTrackerUrl', u+'matomo.php']);
84+
_paq.push(['setSiteId', '42']);
85+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
86+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
87+
})();
88+
</script>
89+
<noscript><p><img src="https://analytics.apache.org/matomo.php?idsite=42&amp;rec=1" style="border:0;" alt="" /></p></noscript>
90+
<!-- End Matomo Code -->
7591
<script id="site-script" src="{{{uiRootPath}}}/js/site.js" data-ui-root-path="{{{uiRootPath}}}"></script>
7692
<script async src="{{{uiRootPath}}}/js/vendor/highlight.js"></script>
7793
<!-- `@asciidoctor/tabs` extension scripts -->

0 commit comments

Comments
 (0)