Securiti leads GigaOm's DSPM Vendor Evaluation with top ratings across technical capabilities & business value.

View
Cookie Consent Integrations | Plugins & Setup Guides

Integrating Securiti with Google Tag Manager

You can use the Google Tag Management system to honor cookie preferences submitted through the Securiti cookie consent management features. If your website uses Google Tag Manager to deploy third party libraries, it can prevent them from triggering until website visitors have given their consent to the use of cookies. You can connect your Google Tag Management System to our Cookie Consent Manager to control the blocking or firing of tags.

Download: Consent Report Q2 2024

Follow the procedures in the sections below.

Scan Your Website and Classify Cookies

First, scan your website for cookies. Then review the automatic cookie categorization from the scan results.

Build a Website Banner

Build a website banner and embed its code on your website.

Create a Cookie Accepted Variable

1

Start Google Tag Manager.

2

Near the left edge of the page, click Variables.

3

In the User-Defined Variables area, click New.

4

Near the upper left corner of the Variable Configuration box, edit the variable name so it reads cookieAccepted.

Google Tag Manager CookieAccepted
5

Near the upper right corner of the Variable Configuration box, click Edit (pencil icon).

6

Click Data Layer Variable.

7

In the Data Layer Variable Name box, type the name cookieAccepted.

8

Near the upper right corner of the page, click Save.

9

On the Variables page, confirm that there is a new data layer variable called "cookieAccepted."

Google Tag Manager Variables Settings

Create a Watcher Tag and Trigger

1

Near the left edge of the page, click Tags.

2

Near the upper right corner of the Tags box, click New.

3

Near the upper left corner of the Tag Configuration area edit the variable name so it reads Watcher.

4

Near the upper right corner of the Tag Configuration area, click Edit (pencil icon).

GTM Tag Configuration
5

On the Choose tag type panel, scroill down to the Custom area and choose Custom HTML.

6

In the HTML area, paste the following code snippet:

<script>
window.addEventListener('message', function (ev) {
if (ev.data.message==='consent_given') {
console.log(ev.data.consentStatuses);
ev.data.consentStatuses&&Object.keys(ev.data.consentStatuses).forEach(function (category) {
if (ev.data.consentStatuses[category]) {
dataLayer.push({
'event': 'userPrefUpdate',
'cookieAccepted': category
})
}
})
}
})
</script>
7

Near the upper right corner of the Triggering area, click Edit (pencil icon).

8

Near the upper right corner of the Choose a Trigger panel, click +.

9

Near the upper left corner of the panel, edit the trigger name so it reads Watcher Trigger.

GTM Watcher Trigger
10

Near the upper right corner of the Trigger Configuration area, click Edit (pencil icon).

11

On the Choose trigger type panel, choose DOM Ready.

Google Tag Manager DOM Ready
12

Near the upper right corner of the trigger panel, click Save.

13

Near the upper right corner of the tag panel, click Save.

Create Cookie Category Triggers

For each of the following cookie categories, you create a trigger:

  • Essential
  • Performance & Functionality
  • Analytics & Customization
  • Advertising
  • Social Networking
1

In Google Tag Manager, near the left edge of the page choose Triggers.

2

Near the upper right corner of the Triggers list, click New.

3

Near the upper left corner of the trigger panel, edit the trigger name so it reads <cookie category name> Trigger, for example "Advertising Trigger."

4

Near the upper right corner of the Trigger Configuration area, click Edit (pencil icon).

GTM Trigger Configuration area
5

On the Choose trigger type panel, scroll down to the Other area and click Custom Event.

6

In the Event Name box, type userPrefUpdate.

7

Mark the checkbox for Use regex matching.

8

Mark the radio button for Some Custom Events.

9
Near the bottom of the panel, configure the event so that it is:
cookieAccepted matches RegEx (ignore case) <cookie_category>
Where <cookie_category> matches one of the available categories verbatim.
GTM Advertising Cookie Trigger
10

Near the upper right corner of the trigger configuration panel, click Save.

11

Repeat the procedure for each of the remaining cookie categories.

GTM Cookie Categories

Add Category Triggers to your Existing Cookie Tags

For each of the existing tags that control your cookies, add the category triggers so that they drop cookies only when the watcher receives the userPrefUpdate object from Securiti:

1

In Google Tag Manager, near the left edge of the page choose Tags.

2

From the tags list, choose a tag that manages a category of cookies, for example Advertising.

3

On the panel for the tag, near the upper right corner of the Triggering area click Edit.

4

On the Choose a Trigger panel, choose the corresponding tag you created in the procedure Create cookie category triggers.

GTM Cookie Category Triggers
5

On the tab panel, click Save.

6

Repeat the procedure for the remaining cookie categories.

Schedule Your
Personal Demo

Learn how you can leverage Securiti’s Data Command Center to address data security, privacy, governance, and compliance.

See a demo
Schedule your demo today

Check our Cookie Integrations

Videos
View More
Mitigating OWASP Top 10 for LLM Applications 2025
Generative AI (GenAI) has transformed how enterprises operate, scale, and grow. There’s an AI application for every purpose, from increasing employee productivity to streamlining...
View More
Top 6 DSPM Use Cases
With the advent of Generative AI (GenAI), data has become more dynamic. New data is generated faster than ever, transmitted to various systems, applications,...
View More
Colorado Privacy Act (CPA)
What is the Colorado Privacy Act? The CPA is a comprehensive privacy law signed on July 7, 2021. It established new standards for personal...
View More
Securiti for Copilot in SaaS
Accelerate Copilot Adoption Securely & Confidently Organizations are eager to adopt Microsoft 365 Copilot for increased productivity and efficiency. However, security concerns like data...
View More
Top 10 Considerations for Safely Using Unstructured Data with GenAI
A staggering 90% of an organization's data is unstructured. This data is rapidly being used to fuel GenAI applications like chatbots and AI search....
View More
Gencore AI: Building Safe, Enterprise-grade AI Systems in Minutes
As enterprises adopt generative AI, data and AI teams face numerous hurdles: securely connecting unstructured and structured data sources, maintaining proper controls and governance,...
View More
Navigating CPRA: Key Insights for Businesses
What is CPRA? The California Privacy Rights Act (CPRA) is California's state legislation aimed at protecting residents' digital privacy. It became effective on January...
View More
Navigating the Shift: Transitioning to PCI DSS v4.0
What is PCI DSS? PCI DSS (Payment Card Industry Data Security Standard) is a set of security standards to ensure safe processing, storage, and...
View More
Securing Data+AI : Playbook for Trust, Risk, and Security Management (TRiSM)
AI's growing security risks have 48% of global CISOs alarmed. Join this keynote to learn about a practical playbook for enabling AI Trust, Risk,...
AWS Startup Showcase Cybersecurity Governance With Generative AI View More
AWS Startup Showcase Cybersecurity Governance With Generative AI
Balancing Innovation and Governance with Generative AI Generative AI has the potential to disrupt all aspects of business, with powerful new capabilities. However, with...

Spotlight Talks

Spotlight 11:29
Not Hype — Dye & Durham’s Analytics Head Shows What AI at Work Really Looks Like
Not Hype — Dye & Durham’s Analytics Head Shows What AI at Work Really Looks Like
Watch Now View
Spotlight 11:18
Rewiring Real Estate Finance — How Walker & Dunlop Is Giving Its $135B Portfolio a Data-First Refresh
Watch Now View
Spotlight 13:38
Accelerating Miracles — How Sanofi is Embedding AI to Significantly Reduce Drug Development Timelines
Sanofi Thumbnail
Watch Now View
Spotlight 10:35
There’s Been a Material Shift in the Data Center of Gravity
Watch Now View
Spotlight 14:21
AI Governance Is Much More than Technology Risk Mitigation
AI Governance Is Much More than Technology Risk Mitigation
Watch Now View
Spotlight 12:!3
You Can’t Build Pipelines, Warehouses, or AI Platforms Without Business Knowledge
Watch Now View
Spotlight 47:42
Cybersecurity – Where Leaders are Buying, Building, and Partnering
Rehan Jalil
Watch Now View
Spotlight 27:29
Building Safe AI with Databricks and Gencore
Rehan Jalil
Watch Now View
Spotlight 46:02
Building Safe Enterprise AI: A Practical Roadmap
Watch Now View
Spotlight 13:32
Ensuring Solid Governance Is Like Squeezing Jello
Watch Now View
Latest
View More
Databricks AI Summit (DAIS) 2025 Wrap Up
5 New Developments in Databricks and How Securiti Customers Benefit Concerns over the risk of leaking sensitive data are currently the number one blocker...
Inside Echoleak View More
Inside Echoleak
How Indirect Prompt Injections Exploit the AI Layer and How to Secure Your Data What is Echoleak? Echoleak (CVE-2025-32711) is a vulnerability discovered in...
What Is Data Risk Assessment and How to Perform it? View More
What Is Data Risk Assessment and How to Perform it?
Get insights into what is a data risk assessment, its importance and how organizations can conduct data risk assessments.
What is AI Security Posture Management (AI-SPM)? View More
What is AI Security Posture Management (AI-SPM)?
AI SPM stands for AI Security Posture Management. It represents a comprehensive approach to ensure the security and integrity of AI systems throughout the...
Beyond DLP: Guide to Modern Data Protection with DSPM View More
Beyond DLP: Guide to Modern Data Protection with DSPM
Learn why traditional data security tools fall short in the cloud and AI era. Learn how DSPM helps secure sensitive data and ensure compliance.
Mastering Cookie Consent: Global Compliance & Customer Trust View More
Mastering Cookie Consent: Global Compliance & Customer Trust
Discover how to master cookie consent with strategies for global compliance and building customer trust while aligning with key data privacy regulations.
View More
Key Amendments to Saudi Arabia PDPL Implementing Regulations
Download the infographic to gain insights into the key amendments to the Saudi Arabia PDPL Implementing Regulations. Learn about proposed changes and key takeaways...
Understanding Data Regulations in Australia’s Telecom Sector View More
Understanding Data Regulations in Australia’s Telecom Sector
Gain insights into the key data regulations in Australia’s telecommunication sector. Learn how Securiti helps ensure swift compliance.
Gencore AI and Amazon Bedrock View More
Building Enterprise-Grade AI with Gencore AI and Amazon Bedrock
Learn how to build secure enterprise AI copilots with Amazon Bedrock models, protect AI interactions with LLM Firewalls, and apply OWASP Top 10 LLM...
DSPM Vendor Due Diligence View More
DSPM Vendor Due Diligence
DSPM’s Buyer Guide ebook is designed to help CISOs and their teams ask the right questions and consider the right capabilities when looking for...
What's
New