Load as technically necessary and collect more visitor data after consent

In our article https://legalweb.io/news/matomo-piwik-pro-rechtskonform-einbinden/ on Piwik Pro, both variants of Piwik Pro are discussed so that more visitor data can be collected after optional consent. This article is an implementation guide for Piwik Pro to load it as technically necessary and convert anonymous tracking to extended tracking via consent

What options do you have?

Our cookie popup solution, legal web privacy cloud “Privacy Package” supports both integration variants of Piwik Pro:

  • Variant A: as technically necessary without consent
  • Variant B: via visitor consent with extended tracking

However, it is also possible to combine both variants of Piwik Pro. Variant A is loaded first and, if the visitor agrees, variant B is activated.

Configuration: convert anonymous tracking to extended tracking

The following configuration steps are necessary via https://dashboard.legalweb.io:

Add both variants as integrations.

Integrations in the cookie popup: Piwik Pro with and without consent

In the code field, load the integration that does not require consent as you would load it without a special case. Copy the complete snippet into the code field. Make sure that you also set the following commands:
window._paq.push([‘disableCookies’]);
window._paq.push([‘setUserIsAnonymous’, 1]);

Configuration Piwik Pro without consent

For the integration requiring consent, copy only the 2 commands into the code field that remove the anonymization – convert anonymous tracking to extended tracking:
window._paq.push([‘enableCookies’]);
window._paq.push([‘deanonymizeUser’]);

Configuration Piwik Pro with consent: collect more visitor data as technically necessary after consent

This allows them to achieve initially anonymous tracking, which is converted to extended tracking via the user’s consent and enables features such as the creation of a visitor profile.

Similar posts

Quickstart

Quickstart/quick guide To log in, you will need the email address and password you entered when you purchased one of ... Weiterlesen ...

JavaScript Events

JavaScript Events Various events are provided for interaction with other functionalities of the website.This offers the possibility to control the ... Weiterlesen ...

JavaScript methods

JavaScript methods Various methods are provided for interaction with other functionalities of the website.This offers the possibility to control the ... Weiterlesen ...

Measuring consent rates with Matomo

Measuring consent rates with Matomo To be able to measure the consent rate using Matomo, only 1 line of JavaScript ... Weiterlesen ...
Privacy
The controller (legal web GmbH, Austria) would like to use the following services in order to process your personal data. Technologies such as cookies, localStorage, etc. can be used for personalization. This is not necessary for the use of the website, but allows us to interact with you more closely. If you wish, you can adjust or revoke your consent at any time via our privacy policy.