view Sphinx/source/_templates/layout.html @ 592:63d8db5978c9

adding matomo
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 Jan 2021 12:48:55 +0100
parents ffdbe8f64e76
children 0b958a2393aa
line wrap: on
line source

{# Import the theme's layout. #}
{% extends "!layout.html" %}

{# Custom CSS overrides #}
{% set bootswatch_css_custom = ['_static/orthanc.css'] %}


{% block footer %}
<footer class="footer">
  <div class="container">
    <p class="pull-right">
      <a href="#">Back to top</a>
      {% if theme_source_link_position == "footer" %}
      <br/>
      {% include "sourcelink.html" %}
      {% endif %}
    </p>
    <p>

      &copy; Copyright 2015-2021, University Hospital of Liège and Osimis S.A., Belgium, and the Orthanc community<br/>
      The Orthanc Book is licensed under
      <a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Creative 
        Commons CC-BY-SA 4.0</a>.<br/>
      {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}<br/>
    </p>
  </div>
</footer>

<!-- Google Analytics -->
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  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 %}