trackkit / consent/types / EventClassification
Interface: EventClassification
Defined in: consent/types.ts:149
Classification metadata for individual events.
Used by the consent gate to decide whether an event:
- requires consent,
- is essential,
- or can be emitted regardless of consent status.
Properties
category?
optionalcategory:string
Defined in: consent/types.ts:156
Event category label (defaults to 'analytics' when omitted).
This is a free-form label but often maps to a ConsentCategory in your policy.
requiresConsent?
optionalrequiresConsent:boolean
Defined in: consent/types.ts:165
Whether this event requires consent to be emitted.
When true, the event is blocked unless consent has been granted for the relevant category. When false, it can be sent regardless of consent state.