RFC: Improving Mautic's GDPR Compliance - Cookie Management

This is serious… I have a custom website and just want to respect my users privacy and obey the law, which means I can’t even load the giant legacy blob of untyped javascript that is mt.js (which get’s blocked by adblockers anyways and really should just be an installable npm package with types so it’s usable in a sane and reliable way).

I would greatly appreciate some kind of update on this.

Please take a look at the way facebook’s pixel api handles this:

import type { fbq } from '@types/facebook-pixel'
!(function (f, b, e, v, n, t, s) { //... etc

// GDPR compliance: https://developers.facebook.com/docs/meta-pixel/implementation/gdpr
fbq('consent', 'revoke');

// Enable limited data processing mode.
// https://developers.facebook.com/docs/meta-pixel/implementation/data-processing-options
fbq('dataProcessingOptions', ['LDU'], 0, 0);

// Now it's safe to init.
fbq('init', ID);
fbq('track', 'PageView');

// Later, after consent banner is accepted:
fpq('consent', 'grant') // Now cookies/beacons/trackers are enabled.