Skip to content

Commit d883419

Browse files
authored
Add matomo (INRIA#607)
1 parent 0ddd6cd commit d883419

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

jupyter-book/_static/matomo.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var _paq = window._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://piwik.inria.fr/";
7+
_paq.push(['setTrackerUrl', u + 'piwik.php']);
8+
_paq.push(['setSiteId', '127']);
9+
var d = document,
10+
g = d.createElement('script'),
11+
s = d.getElementsByTagName('script')[0];
12+
g.async = true;
13+
g.src = u + 'piwik.js';
14+
s.parentNode.insertBefore(g, s);
15+
})();

0 commit comments

Comments
 (0)