CookieBot - Another GDPR / Consent Question


(Camnomis) #1

A little different but here goes, we use CookieBot to control consent across a series of websites, I know Matomo has a feature built in for this, but for consistency we want to use one tool.

As such I need to add some code to the header of my self hosted instance of Matomo, but am struggling to find an appropriate matomo file to add the header information.

Can someone help me with this task?


(Lukas Winkler) #2

Hi,

The Matomo consent feature allows you to use your own consent tool, which needs to tell Matomo the status on page load and Matomo will act accordingly.

You can find the docs here:

https://developer.matomo.org/guides/tracking-javascript-guide#asking-for-consent


(Camnomis) #3

Thanks for the reply, that is not quite what I am looking for, perhaps I can explain better.

The matomo tracking code needs to be installed on a website, somewhere in the header, where would I insert similar code into the matomo code, so the third party consent popup appears when a user browses my self hosted instance of matomo.


(Lukas Winkler) #4

Hi,

So you want to make your Matomo backend public and add your consent popup into it?


(Camnomis) #5

Yes, we have several customers who use the site, and I would like a way to gather their consent using the same tool across the rest of my domains


(Lukas Winkler) #6

In this case you either want to edit this file:

(which will only work until the next update)

or write a small Matomo plugin to modify the template:

https://developer.matomo.org/develop