Integrating Web Analytics

Cadenza can be integrated with web analytics tools such as Matomo and rybbit. To enable tracking, you need to insert a JavaScript tracking code snippet into the following files:

  • appIcon_de.html

  • appIcon_en.html

These files are located in the themes/default/templates directory.

Make sure that the environment variable CADENZA_THEME_PATH is set to the correct path.

Cadenza Web Analytics API

The Cadenza Web Analytics API allows you to track user actions by listening to analytics events dispatched by Cadenza. More details and example code can be found in the developer documentation.

Example: Matomo Integration

The easiest way to obtain the tracking code is through the Matomo user interface. Once generated, follow these steps:

  1. Copy the tracking code provided by Matomo.

  2. Paste it into both appIcon_de.html and appIcon_en.html at the appropriate location.

The default tracking code may require customization to suit your needs. Common adjustments include:

  • Excluding irrelevant URL parameters

  • Modifying cookie settings

  • Enabling or disabling specific tracking features

Be sure to review and tailor the script to align with your privacy policies and analytics goals.