• Resolved seto76

    (@seto76)


    Hi everyone,

    I have a technical question and would like to know if something like this is/would be possible.

    It’s about the following:
    I am using the Cookiebot on my WordPress site, which has detected the Matomo Plugin without problems and will switch it off if you don’t agree. Now I have read that you can use Matomo without cookies, but it seems that this is not as reliable as with cookies (which is understandable).

    Therefore I would have been interested if something like “Cookies on Demand” would be possible. That means: If you click on “Allow Cookies” in the cookiebot, they will be set and if you click on “Deny”, Matomo will continue to run anyway, but without cookies (which seems to be legal). Is it possible to implement such an automatism?

    Thank you very much in advance

    Kind regards
    seto

    • This topic was modified 5 years, 10 months ago by seto76.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Thomas

    (@tsteur)

    @seto76 some users do this indeed so far already and we’ve started working on making this easier and better.

    AFAIK some users basically call window._paq.push(['disableCookies']);, and as soon as they have consent on the next page view they no longer call this method. This works already but currently creates an extra visit once. Just a few days ago we prepared a fix for this extra visit which I expect to be included in the next release see https://github.com/matomo-org/matomo/pull/16101

    And we also just started adding a new tracker method which can be called right away to enable cookies as soon as you got consent. We’re working on this new method here: https://github.com/matomo-org/matomo/pull/16113

    Whether this “enable cookies” will be included in the next release I can’t promise just yet but I expect so. Basically, the idea is to trigger a call window._paq.push(['enableCookies']); as soon as you get the consent.

    I don’t know how these things are configured in different consent managers but hope this helps?

    • This reply was modified 5 years, 10 months ago by Thomas.
    Plugin Author Thomas

    (@tsteur)

    Hi @seto76
    sorry for getting back to you so late on this. We have now released a new version which includes this feature and we have this documented here: https://matomo.org/faq/new-to-piwik/how-can-i-still-track-a-visitor-without-cookies-even-if-they-decline-the-cookie-consent/

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Cookies on Demand’ is closed to new replies.