matomo-org / tag-manager

Free Open Source Matomo Tag Manager - A simple way to manage and maintain all of your (third-party) tags on your website.
https://matomo.org
GNU General Public License v3.0
174 stars 58 forks source link

Is it possible to implement and manage cookies and privacy status with the tag manager? #19

Closed mannp closed 6 years ago

mannp commented 6 years ago

Thanks for the tag manager it looks like a great addition, but I am not fully sure what I will use it for as yet, but I am sure that will become clear with time.

I wondered -> Is it possible to implement and manage cookies and privacy status with the tag manager?

Thanks in advance

tsteur commented 6 years ago

I'm not 100% sure what you refer to. If you mean by "privacy status" something like a "Consent Manager" or "Opt Out/In Manager" or a "Showing a privacy notice" then yes absolutely this could be done.

I hope this answers your question?

mannp commented 6 years ago

Thanks @tsteur thats exactly what I meant, all of the above.

Is there a working snippet within the tag manager so I could understand how to show a privacy notice as a start and i could then try and incorporate the js code already published from matomo to enable opt in and out at all?

tsteur commented 6 years ago

There is actually an example here: https://developer.matomo.org/guides/tagmanager/custom-tag as part of the custom tag guide :) And also here: https://developer.matomo.org/guides/tracking-javascript-guide#asking-for-consent and / or here: https://developer.matomo.org/guides/tracking-javascript-guide#optional-creating-a-custom-opt-out-form

mannp commented 6 years ago

Thanks, I have seen all of those links and none of them give an example for the tag manager, but instead snippets of disperate code.

I will eventually understand them and how to put them together into a workable solution.