Fork me on GitHub

Reflow skins supports two analytics system:

  • Matomo
  • Google Analytics

Matomo (e.g. Apache Analytics)

Users can optionally enable Matomo. How to configure it for Apache Analytics, the options element will contain some configuration (here some privacy setup):

<project name="xxx">
  ...
  <custom>
    ...
    <matomo>
      <siteId>xxx</siteId>
      <url>https://analytics.apache.org</url>
      <options>
        <disableCookies/>
        <trackPageView/>
        <enableLinkTracking/>
        <!-- optional extra key/value to add to _paq.push-->
        <foo>Bar</foo>
      </options>
    </matomo>
    ...
  </custom>
  ...
</project>

Google Analytics

To use this with Reflow Maven skin, use the following configuration in the site.xml site descriptor file:

<project>
  ...
  <googleAnalyticsAccountId>your id</googleAnalyticsAccountId>
  <custom>
    <reflowSkin>
      ...
      <googleAnalytics>
        <useGtag>true</useGtag>
        <anonymizeIp>true</anonymizeIp>
        <forceSSL>true</forceSSL>
      </googleAnalytics>
      ...
    </reflowSkin>
  </custom>
</project>

<useGtag>true</useGtag> will force using Global site tag (gtag.js)

Back to top

Version: 2.0.1-SNAPSHOT. Last Published: 2022-04-25.

Reflow Maven skin maintained by Olivier Lamy.