Adding Matomo (formerly called Piwik) isn’t super straight forward, this is why you have a guide with 3 steps here, two of which are optional, depending on your situation.
Add “Matomo” from the selection of services in the iubenda dashboard.
Add “Analytics collected directly”, but this is really optional since it repeats what the Matomo disclosure says.
There are several legislations and corresponding practices that require the Matomo opt-out link, among them are France with its CNIL, and Germany with their fragmented Data Protection authorities (you’ll find a guide on the DPA of Schleswig-Holstein). There are certainly more cases out there. But let’s use Germany as a case for viewing material.
If you want to add your opt-out link you need to link to the opt-out on another page of your site, but clearly describe the process needed to do so. It’s paramount that this process isn’t perceived as a way to circumvent or hide the opt-out link.
<iframe frameborder="no" width="600px" height="200px" src="https://example.com/index.php?module=CoreAdminHome&action=optOut&language=en"></iframe>
Your Matomo opt-out iframe can be found in your Matomo installation under
Settings > Privacy. Just in case this isn’t clear yet, get your own opt-out link, this one shows an example link.
In this step it is important to make clear what this section helps the user to accomplish. Therefore use a title similar to “How to: User opt-out of Matomo Web Analytics”. Next you’ll want to describe in the actual service/clause, what the users need to know. See an example of this below:
Have you added your corresponding opt-out link? Good. Now let’s get the final step done in which we’ll need to modify the wording displayed by the iframe if your page isn’t English.
By adding the iframe provided in the Matomo admin, you will necessarily end up with English copy. This is what the copy says:
“Opt-out complete; your visits to this website will not be recorded by the Web Analytics tool.
Note that if you clear your cookies, delete the opt-out cookie, or if you change computers or Web browsers, you will need to perform the opt-out procedure again.”
“You may choose not to have a unique web analytics cookie identification number assigned to your computer to avoid the aggregation and analysis of data collected on this website.
To make that choice, please click below to receive an opt-out cookie. ”
A translation needs to be manually added in the file “/lang/en.php” respectively “/lang/de.php” depending on the implementation.
Let us look at the German version as an example.
The following need to be adapted in the en.php (folder /lang) and copied into the de.php file, translated into German, then you’ll have your translation done.