Skip to main content
Important: Please ensure your CMP configuration includes new Vendor ID 1469 for 1st Party data tracking. Additionally, include Vendor ID 301 if cookie sync is enabled. Learn more
For websites needing to comply with GDPR and similar regulations, integrating the Zeotap Web SDK with an IAB Transparency and Consent Framework (TCF) v2.x compliant Consent Management Platform (CMP) is the recommended approach. This method leverages the standardized TCF framework to automatically manage user consent for data processing activities performed by the SDK.

How it Works

  1. CMP Implementation: You must first implement a TCF v2.x compliant CMP (like OneTrust, TrustArc, Didomi, Sourcepoint, etc.) on your website. This CMP is responsible for displaying the consent banner/modal to users and storing their preferences.
  2. SDK Detection: When the Zeotap Web SDK initializes with the correct configuration (see below), it automatically detects the presence of the TCF __tcfapi function provided by the CMP.
  3. Consent Retrieval: The SDK uses the __tcfapi to:
    • Retrieve the user’s current consent status (encoded in the TC String).
    • Listen for changes to the consent status (e.g., if the user updates their preferences).
  4. Decision Making: Based on the retrieved TC String and the SDK’s configuration, the SDK determines whether it has consent for specific actions:
    • Purpose Consent: Checks if consent has been granted for the specific IAB TCF Purposes required for tracking (purposesForTracking) and cookie syncing (purposesForCookieSyncing).
  5. Action Execution:
    • If the necessary consents are present, the SDK will proceed with tracking events (setEventProperties, setPageProperties) and performing cookie syncs (if allowCookieSync is enabled).
    • If the necessary consents are not present, the SDK will block those specific actions.

Configuration

To enable TCF v2.x integration, configure the SDK during initialization using the window.zeotap.init method:
SDK Initialization for TCF v2.x Integration
The below table describes the keys/parameters that need to be configured while using the GDPR consent module.

Interaction with setConsent API

When the SDK is configured to use a TCF CMP (useConsent: true and checkForCMP: true), calls to the window.zeotap.setConsent() method behave differently compared to the Custom Consent mode:
  • The track and cookieSync parameters within the setConsent object are ignored.
  • However, any Brand Consents included in the setConsent call (e.g., { myBrandConsent: true }) will still be processed, stored, and sent with subsequent events under the z_p query parameter of spl requests.
  • However, any Brand Consents (custom key-value pairs other than track or cookieSync) included in the setConsent call will still be processed, stored, and sent with subsequent events under the z_p query parameter of spl requests. This allows you to manage non-TCF consents alongside TCF integration.
Last modified on June 25, 2026