Adding Web analytics

You should have already done these steps:

  1. Check Hardware provisioning
  2. Check pre-requisites
  3. Install

Configurins web analytics (Piwik, Matomo…)

You may add the analytics code in the file /var/lib/tomcat8/webapps/asqatasun/WEB-INF/view/template/tracker.jsp

Example of tracker.jsp with Matomo

<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<!-- Matomo -->
<script type="text/javascript">
    var _paq = window._paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    (function() {
        var u="//";
        _paq.push(['setTrackerUrl', u+'matomo.php']);
        _paq.push(['setSiteId', '1']);
        var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
        g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
<noscript><p><img src="//;rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->