Skip to content

Commit 713980c

Browse files
committed
Adds matomo analytics to docs
This uses the recommended way to extend the template that furo uses.
1 parent 57f7104 commit 713980c

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

docs/_templates/page.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{% extends "!page.html" %}
2+
3+
{% block extrahead %}
4+
{{ super() }}
5+
<!-- Matomo -->
6+
<script>
7+
var _paq = window._paq = window._paq || [];
8+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
9+
_paq.push(["setDoNotTrack", true]);
10+
_paq.push(["disableCookies"]);
11+
_paq.push(['trackPageView']);
12+
_paq.push(['enableLinkTracking']);
13+
(function() {
14+
var u="https://analytics.apache.org/";
15+
_paq.push(['setTrackerUrl', u+'matomo.php']);
16+
_paq.push(['setSiteId', '87']);
17+
var d=document, g=d.createElement('script'),
18+
s=d.getElementsByTagName('script')[0];
19+
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
20+
})();
21+
</script>
22+
<!-- End Matomo Code -->
23+
{% endblock %}

0 commit comments

Comments
 (0)