Skip to content

Commit

Permalink
Add matomo to guide
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Mar 6, 2023
1 parent 46c711e commit 33ee049
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 12 additions & 0 deletions _static/matomo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Matomo analytics
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://pyopensci.matomo.cloud/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '2']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src='//cdn.matomo.cloud/pyopensci.matomo.cloud/matomo.js'; s.parentNode.insertBefore(g,s);
})();
6 changes: 1 addition & 5 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,6 @@
html_theme = 'pydata_sphinx_theme'
html_static_path = ["_static"]
html_css_files = ["pyos.css"]
html_js_files = ["matomo.js"]
html_title = "pyOpenSci Package Guide"
html_logo = "images/logo/logo.png"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

0 comments on commit 33ee049

Please sign in to comment.