Skip to content

Support for the Tag Manager for analytics services

Page analysis with Matomo and Piwik PRO now also supports the use of the respective provider's tag manager.

In addition to classic web statistics, Matomo and Piwik PRO now offer a more modern and advanced analysis option via the Tag Manager. In older Matomo versions, the Tag Manager must first be installed as a plugin, while in newer Matomo versions and in Piwik PRO, the Tag Manager is available by default.

Once Tag Manager is set up, you will receive a Container ID. In Matomo, this is a string of numbers, lowercase and uppercase letters, e.g. “M9AeoyHz”; in Piwik PRO, the container ID has the form of a UUID, e.g. “04868047-4d3d-4ef5-86ef-342005a73086e”.

This container ID is required for configuration in OpenCms:

  • Enter the keyword “container” followed by an underscore ‘_’ and the container ID as the value for the matomo.id (or piwik.id) property, e.g. “container_M9AeoyHz”.
  • If not already present, enter the server URL you are using by setting the URL as the value of the matomo.url (or piwik.url) property.

The keyword “container_” preceding the ID addresses the Tag Manager endpoint of the configured provider.

When switching from conventional tracking to tracking with Tag Manager, the server URL remains the same—only the value of the matomo.id (or piwik.id) property needs to be changed.

Note: With the Matomo or Piwik PRO Tag Manager, other functions (“tags”) such as social media buttons can be integrated in addition to web user statistics. Ultimately, the Tag Manager can insert any HTML and JavaScript into a Mercury website. If functions are integrated that go beyond pure web user statistics, this is not covered by the Mercury cookie banner in terms of data protection law.

Further information on Matomo Tag Manager can be found in the provider's documentation.

Further information about Piwik PRO Tag Manager can be found on the provider's website.