Skip to content

Commit 193b588

Browse files
cburgdorfpipermerriam
authored andcommitted
Add matomo tracking to docs site (#1892)
1 parent 10df2a6 commit 193b588

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

docs/_static/js/matomo.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var _paq = window._paq || [];
2+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
3+
_paq.push(['trackPageView']);
4+
_paq.push(['enableLinkTracking']);
5+
(function() {
6+
var u="https://matomo.ethereum.org/piwik/";
7+
_paq.push(['setTrackerUrl', u+'matomo.php']);
8+
_paq.push(['setSiteId', '17']);
9+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
10+
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
11+
})();

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120

121121
def setup(app):
122122
app.add_stylesheet("css/custom.css")
123+
app.add_javascript("js/matomo.js")
123124

124125
# Allows the mod index to function more helpfully (not everything under 'e')
125126
modindex_common_prefix = ['eth.']

newsfragments/1892.doc.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Add Matomo Tracking to Docs site.
2+
3+
Matomo is an Open Source web analytics platform that allows us
4+
to get better insights and optimize for our audience without
5+
the negative consequences of other compareable platforms.
6+
7+
Read more: https://matomo.org/why-matomo/

0 commit comments

Comments
 (0)