Skip to content

Commit 33ee049

Browse files
committed
Add matomo to guide
1 parent 46c711e commit 33ee049

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

_static/matomo.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Matomo analytics
2+
var _paq = window._paq = window._paq || [];
3+
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
4+
_paq.push(['trackPageView']);
5+
_paq.push(['enableLinkTracking']);
6+
(function() {
7+
var u="https://pyopensci.matomo.cloud/";
8+
_paq.push(['setTrackerUrl', u+'matomo.php']);
9+
_paq.push(['setSiteId', '2']);
10+
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
11+
g.async=true; g.src='//cdn.matomo.cloud/pyopensci.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
12+
})();

conf.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@
128128
html_theme = 'pydata_sphinx_theme'
129129
html_static_path = ["_static"]
130130
html_css_files = ["pyos.css"]
131+
html_js_files = ["matomo.js"]
131132
html_title = "pyOpenSci Package Guide"
132133
html_logo = "images/logo/logo.png"
133-
134-
# Add any paths that contain custom static files (such as style sheets) here,
135-
# relative to this directory. They are copied after the builtin static files,
136-
# so a file named "default.css" will overwrite the builtin "default.css".
137-
html_static_path = ['_static']

0 commit comments

Comments
 (0)