Skip to content

Documentation / @expofp/schema / ConsentSchema

Variable: ConsentSchema

ts
const ConsentSchema: ZodEnum<Consent>;

The cookie-consent decision for analytics. 'granted' / 'denied' apply a pre-made decision — no consent prompt, analytics on/off accordingly. 'ask' (the default) leaves the decision to the visitor: GDPR visitors get the consent prompt, everyone else falls back to the regional gtag defaults.