changeset 592:63d8db5978c9

adding matomo
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Jan 2021 12:48:55 +0100
parents 2397b0e12bc8
children 0b958a2393aa
files Sphinx/source/_templates/layout.html
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/_templates/layout.html	Thu Jan 07 14:53:36 2021 +0100
+++ b/Sphinx/source/_templates/layout.html	Mon Jan 11 12:48:55 2021 +0100
@@ -35,4 +35,21 @@
   ga('create', 'UA-33455438-2', 'orthanc-server.com');
   ga('send', 'pageview');
 </script>
+
+
+<!-- Matomo -->
+<script type="text/javascript">
+  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://matomo.orthanc-server.com/";
+    _paq.push(['setTrackerUrl', u+'matomo.php']);
+    _paq.push(['setSiteId', '2']);
+    var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+    g.type='text/javascript'; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
+  })();
+</script>
+<!-- End Matomo Code -->
 {% endblock %}