GDPR : Anonymise data until consent

Hi,

Is it possible to configure matomo to track a user anonymously only until this user give his consent ?

The idea :

  • if visitor say “no” for tracking or just say nothing -> track him anonymously
  • If visitor say “yes” for tracking -> save personnal data for current session and next sessions.

Is it possible to do that ?

thank’s

Maybe cookie less tracking is fine for GDPR?
https://matomo.org/faq/general/faq_157/

My idea is:

  • when visitor say “no” or nothing -> tracking cookieless
  • when visitor say “yes” -> default tracking