Mtm_consent_removed Cookie-Value

Hi,

I’ve got a quick Question: The Cookie set by matomo, when a user opts out, mtm_consent_removed, has got a value. For me it’s a 13-digit number. Could somebody tell me, what this number represents. Is it a kind of id, and if so, for what.

Thanks

Sebastian

Hello, im not involved in the knowledge of this, but a 13-digits number is in the most cases a timestamp in milliseconds like from Date.now().

:confounded: I really should’ve got that by myself … Anyway, thanks for clearing that up!

Sebastian

Hello,

Thank you for clarifying this.

I would like to create this cookie server-side.

From what I see in the documentation, it is fine to send the HTTP-Headers to the browser to define the following cookie:

  • 30 years expiry
  • name: mtm_consent_removed
  • value: Timestamp in milliseconds (13 digit as of today).

Is that correct?

Or am I forced to do this with matomo’s js interface? From a stability point of view, it may be more stable to use Matomo’s built-in JS functions.

The reason I thought of doing this server-side is that I want to set other parameters in the same go server side, and all these actions need to happen at the same time. I might also simply return the JS that’s needed to effect this on the client side.

Kind regards,
Urs