Intempt
Data Ingestion & Tracking
Copy Page
Intempt
Installation
Basic Intempt Installation
Create source
Web Snippet
Google Tag Manager
Autocapture setup
SPA tracking
Environment Setup
Validating Installation
SDK
JS SDK
Android SDK
iOS SDK
Node.js SDK
API Reference
Track data
POST
Consent
POST
Choose API
POST
Recommendations Feed API
POST
Data Ingestion & Tracking
identify()
track()
record()
alias()
group()
consent()
intempt:html / intempt:page / intempt:session
Product Catalog Ingestion via API
Data Models & Event Schema
Event Schema Overview
Required Fields
Attribute Schema
Product Catalog Schema
Webhooks
Webhook Configuration
Server Side Experiments
Overview
Choose API endpoint
Handling Experiment Response
Data Ingestion & Tracking
Copy Page
consent()
consent()
#
The
consent
method is used to record and manage a user's consent preferences. This is essential for complying with data protection regulations and for maintaining user trust by respecting their privacy choices.
Usage example
#
In this example, the consent method logs a user's acceptance of marketing communications, including an expiry timestamp and optional metadata.
Declaration
#
Params
#
Forbidden event names for use
#
The following event titles are
reserved
and must
not
be used** as custom event names:
auto-track
view page
leave page
change on
click on
submit on
identify
consent
Using these names will cause conflicts or incorrect event classification.
Modified at
2025-12-03 11:16:30
Previous
group()
Next
intempt:html / intempt:page / intempt:session