Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 781 Bytes

File metadata and controls

26 lines (15 loc) · 781 Bytes

Home > @snowplow/node-tracker > buildConsentGranted

buildConsentGranted() function

Build a Consent Granted Event Used for tracking when a user grants their consent

Signature:

declare function buildConsentGranted(event: ConsentGrantedEvent): EventPayloadAndContext;

Parameters

Parameter Type Description
event ConsentGrantedEvent Contains the properties for the Consent Granted event

Returns:

EventPayloadAndContext

An object containing the PayloadBuilder to be sent to and a 'consent_document' context