Managing consents
Consents are tracked using Intempt's exported function ;
intempt.consent(consent)
intempt.consent()
expects consents as an object to be tracked successfully.
Example:
intempt.consents({
action: "accept", // "accept" for granting or "reject" for revoking
validUntil: 1710859460000,// "timestamp" value of the Date till the consent is valid
category: "", // category of the consent (optional)
email: "", // email used/entered by the visitor (optional)
message: "" // optional (can be left as empty string)(optional)
})
Below is an example of how the tracking can be implemented on a signup page.
Before using consent tracking methods, ensure you have created consent purposes in your organization's settings.
Here is an example of a successfully tracked consent:
{
"action": "accept",
"category": "news"
"timestamp": 1707735272863,
"validUntil": 1710859460000,
"source": "Mobile",
"sourceId": 589541138664144896,
"profileId": "07940997-185b-437e-84d8-151f479fd088",
"email": "[email protected]",
"message": "Yes, email me offers, style updates and special invites to sales and events."
}
You can also access it under individual user under the consents tab on the user details page.
Updated 12 days ago