Secure Privacy

How to Integrate Secure Privacy Cookie Consent with Tealium iQ Tag Management

Learn how to add the Secure Privacy GDPR-compliant cookie consent banner to your website using Tealium iQ Tag Management — with step-by-step instructions and screenshots.

SPT
Secure Privacy Team
2 min read ()

Who is this for? This guide is for web developers, tag managers, and marketing teams who use Tealium iQ Tag Management and need to implement a GDPR-compliant cookie consent banner via Secure Privacy.

This guide explains how to integrate the Secure Privacy cookie consent banner script with Tealium iQ Tag Management, enabling centralized cookie management and GDPR-compliant consent control across your website.

Before you begin: You will need your unique Secure Privacy installation script. Log in to your Secure Privacy account at secureprivacy.ai and copy the script from the Domains → Installation page.

Follow these steps to deploy the Secure Privacy cookie consent banner as an Advanced JavaScript Code extension in Tealium iQ Tag Management:

  1. In the Tealium iQ Tag Management menu, select "Extensions."

    Tealium iQ Tag Management menu with the Extensions option highlighted in the left navigation
  2. Click "Add Extension."

    Tealium iQ Extensions page showing the Add Extension button to create a new JavaScript extension
  3. Select the "Advanced" tab and choose "Advanced JavaScript Code" as the extension type.

    Tealium iQ Add Extension dialog showing the Advanced tab with Advanced JavaScript Code selected as the extension type
  4. Configure the extension with the following settings:

    • Title: Enter "Secure Privacy" as the extension name.
    • Scope: Select "Pre Loader" to ensure the Secure Privacy cookie consent script fires before any other tags or cookies load — essential for GDPR compliance.
    • Configuration: Paste your Secure Privacy installation script into the JavaScript code field.
    Tealium iQ Advanced JavaScript Code extension configuration showing the title set to Secure Privacy, scope set to Pre Loader, and the Secure Privacy script pasted in the code field
  5. Once the script is configured, click "Approve for Publish."

    Tealium iQ extension editor showing the Approve for Publish button after the Secure Privacy cookie consent script has been configured
  6. Select all environments to which the script should be deployed (e.g., dev, QA, production).

    Tealium iQ publish dialog showing environment selection for deploying the Secure Privacy cookie consent extension to dev, QA, and production
  7. Click "Publish" to deploy the Secure Privacy cookie consent script across all selected environments.

    Tealium iQ publish confirmation screen showing the Secure Privacy extension being published to all selected environments

The Secure Privacy cookie consent script is now live on your website via Tealium iQ Tag Management.

Once the Tealium iQ integration is complete, run a new scan in your Secure Privacy account to detect all cookies on your updated website. Navigate to Report → Scan Reports in the left sidebar and click "Rescan" to keep your Cookie Declaration accurate and your site fully GDPR-compliant.

Frequently Asked Questions

Why must the Secure Privacy script be set to "Pre Loader" scope in Tealium iQ?

Setting the scope to Pre Loader ensures the cookie consent banner loads before any other tags or tracking scripts fire. This is a core requirement for GDPR compliance — users must be able to give or withhold consent before any cookies are set.

Does this integration work across all Tealium iQ environments (dev, QA, production)?

Yes. During the publish step, you can select individual or all environments. It is recommended to deploy to all environments so cookie consent behaviour is consistent and compliant at every stage of your development workflow.

Need more help?

Our privacy experts are here to guide you through complex regulations and find the right solution.

Contact Support

Related Articles

View all