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
Why I Joined Securiti View More
Why I Joined Securiti
I’m beyond excited to join Securiti.ai as a sales leader at this pivotal moment in their journey. The decision was clear, driven by three...
Navigating the Data Minefield: Essential Executive Recommendations for M&A and Divestitures View More
Navigating the Data Minefield: Essential Executive Recommendations for M&A and Divestitures
The U.S. M&A landscape is back in full swing. May witnessed a significant rebound in deal activity, especially for transactions exceeding $100 million, signaling...
FTC's 2025 COPPA Final Rule Amendments View More
FTC’s 2025 COPPA Final Rule Amendments: What You Need to Know
Gain insights into FTC's 2025 COPPA Final Rule Amendments. Discover key definitions, notices, consent choices, methods, exceptions, requirements, etc.
New York Child Data Protection Act View More
An Overview of New York Child Data Protection Act
Gain insights into the New York Child Data Protection Act (NYCDPA). Discover key definitions, consent requirements, sale and sharing of personal data to third...
View More
Is Your Business Ready for the EU AI Act August 2025 Deadline?
Download the whitepaper to learn where your business is ready for the EU AI Act. Discover who is impacted, prepare for compliance, and learn...
View More
Getting Ready for the EU AI Act: What You Should Know For Effective Compliance
Securiti's whitepaper provides a detailed overview of the three-phased approach to AI Act compliance, making it essential reading for businesses operating with AI.
Navigating the Minnesota Consumer Data Privacy Act (MCDPA) View More
Navigating the Minnesota Consumer Data Privacy Act (MCDPA): Key Details
Download the infographic to learn about the Minnesota Consumer Data Privacy Act (MCDPA) applicability, obligations, key features, definitions, exemptions, and penalties.
EU AI Act Mapping: A Step-by-Step Compliance Roadmap View More
EU AI Act Mapping: A Step-by-Step Compliance Roadmap
Explore the EU AI Act Mapping infographic—a step-by-step compliance roadmap to help organizations understand key requirements, assess risk, and align AI systems with EU...
The DSPM Architect’s Handbook View More
The DSPM Architect’s Handbook: Building an Enterprise-Ready Data+AI Security Program
Get certified in DSPM. Learn to architect a DSPM solution, operationalize data and AI security, apply enterprise best practices, and enable secure AI adoption...
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...
What's
New