This page should only be applied if the script assisted migration asks you to pass the manual migration skin.20240715.INTRANET.MatomoStats
From version 1.17.0 of Skin Intranet, it is possible to display Matomo statistics on the number of visits to each page.
The display of statistics must be activated in the site parameters, and theurl and Matomo server key must be entered in the application configuration parameters.
Statistics on the number of visits are displayed on the front office only.
Statistics on the number of visits are displayed on all inner pages with Page or Full page templates.
If you have overloaded the template XSL <xsl:template name="head"> (file stylesheets/head.xsl)You need to add a call to the "matomo" template to activate the calculation of visit statistics.
<xsl:template name="head"> <head> <xsl:call-template name="head-meta-top"/> <title><xsl:call-template name="get-title"/></title> [...] <xsl:call-template name="matomo"/> </head> </xsl:template>
A call to the "head-js-matomo" template is required from the "common-script" template. If you have overloaded the "common-script" template, add it.
<xsl:template name="common-script"> [...] <xsl:call-template name="head-js-matomo"/> <xsl:call-template name="custom-script"/> </xsl:template>
Visit statistics are displayed in the page header, at the same level as the Print and Share actions, by calling the "matomo-stats" template.
If you've overloaded the"actions" template in the page template, you'll need to add the call to this template.
<xsl:template name="actions"> <div class="actions-print"> <xsl:call-template name="matomo-stats"/> <a href="javascript:window.print();" title="skin.{$skin}:SKIN_PAGE_PRINT" i18n:attr="title"> <xsl:call-template name="action-print-icon"/> </a> <xsl:call-template name="delimiter-actions"/> <xsl:call-template name="sendByMailForm"> <xsl:with-param name="link-content"><xsl:call-template name="action-contact-icon"/></xsl:with-param> </xsl:call-template> </div> </xsl:template>