File tree 2 files changed +13
-5
lines changed
2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change
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
+ } ) ( ) ;
Original file line number Diff line number Diff line change 128
128
html_theme = 'pydata_sphinx_theme'
129
129
html_static_path = ["_static" ]
130
130
html_css_files = ["pyos.css" ]
131
+ html_js_files = ["matomo.js" ]
131
132
html_title = "pyOpenSci Package Guide"
132
133
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' ]
You can’t perform that action at this time.
0 commit comments