@mattab opened this Issue on May 14th 2018 Member

let's document the useful feature of "Creating a custom opt-out".

An example was provided in https://github.com/matomo-org/matomo/pull/12829#issuecomment-386937268

We could add this doc next to the "Asking for consent" guide here: https://developer.matomo.org/guides/tracking-javascript-guide#asking-for-consent

follows up https://github.com/matomo-org/matomo/pull/12829, related to https://github.com/matomo-org/matomo/issues/8342

@diosmosis commented on May 14th 2018 Member
@noniq commented on May 15th 2018

I just discovered this and already implemented it on one of our sites – works great!

One thing I noticed: When using the default opt-out iframe, it also handles the case of users having “Do Not Track” activated in their browser (“You are not being tracked since your browser is reporting that you do not want to. This is a setting of your browser so you won't be able to opt-in until you disable the 'Do Not Track' feature.”) Is there an (easy) way of replicating this behaviour with a custom opt-out form, too? If so, it might be useful to include this in the example.

@Findus23 commented on May 15th 2018 Member

@noniq you can use https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack for detecting it.
Just keep in mind that it is different in every browser.

@mattab commented on May 17th 2018 Member
This Issue was closed on May 17th 2018
Powered by GitHub Issue Mirror