oveleon/contao-cookiebar

Meta consent mode

Closed this issue · 1 comments

Prerequisites

  • I checked for duplicate feature requests (open and closed)
  • I am willing to help and contribute (financially, work or other measures) to have this feature implemented

Proposal

Meta introduced a consent mode to its Pixel. Not sure when and what the outcomes are, but to make sure everything works in the future I would recommend to include it into the Cookiebar.

Documentation: https://developers.facebook.com/docs/meta-pixel/implementation/gdpr/?locale=de_DE

What to do:
Similar to the Google consent mode there must be a fbq('consent', 'revoke'); on every page which can be updated with fbq('consent', 'grant'); after the user allowed tracking.

Maybe this would need a "global configuration" like the Google consent mode does?

Context

Data connections to Meta could be revoked if the consent mode is not implemented.

Since this is something that none of our clients use - nor do we know how to properly test it, feel free to create a pr for that.