Openli
IntroductionGetting StartedTechnical DocumentationGet help
  • Getting started
    • Introduction
    • Dictionary
    • FAQ
      • IAB TCF v2.0
  • Privacy hub
    • How to create your privacy profile
    • How can I get an Openli Privacy Badge?
    • Vendor owners
    • Why are custom properties on vendors super valuable?
    • Setting up custom properties
  • Tasks
  • Cookie Consent Management
    • Quickstart
    • Checklist: Cookies
    • Cookie widget
      • Create a cookie policy
      • Create a cookie widget
      • Install the widget
      • Manually add any cookies
      • Customise your widget
      • How to get color codes
      • Set the widget language
      • Use custom link/button instead of Cookie Shield
      • Add company name to cookie pop-up
    • Categorise your cookies
    • Adding information to cookies
    • Adding information to your cookie providers
    • Blocking Cookies with Openli
    • Cookie expiration dates and lifespan
      • Changing expiration on Google Analytics cookies
  • Policy and agreement management
    • Generate your privacy policy
    • Changing an old cookie policy to a new on autopilot
    • Embed your policies and legal agreements
      • Embedding agreements without displaying a widget
    • Install the Privacy Badge
  • General Openli guides
    • Setting up SSO (Single Sign-On)
      • SSO with Azure AD (Microsoft)
      • SSO with Google
      • SSO with Okta
      • How to log in with SSO
    • Add a website to your Openli account
    • Using projects to handle multiple languages
    • Collect consents without storing IP addresses or user-agents
  • Technical documentation
    • Widget
      • Collect cookie consent
        • Blocking cookies
        • Blocking embedded media
        • Cookie-widget options
        • Consent state API
    • API
      • Services
        • Personal data
        • Subprocessors
    • Cookies set by Openli
  • System Specific Integration Guides
    • Cloudflare
  • Legacy integrations
    • Google Consent Mode
    • Google Tag Manager
      • Block cookies with GTM
      • Install Openli with GTM
      • Prevent triggers from firing in GTM
    • HubSpot
    • Pardot
    • Shopify
      • Install cookie widget
      • Integrate consent with checkout
    • Square Online
    • Squarespace
    • Webflow
    • Wix
Powered by GitBook
On this page
  • In this guide...
  • What is Google Tag Manager?
  • Google Tag Manager and Openli
  1. Legacy integrations

Google Tag Manager

PreviousGoogle Consent ModeNextBlock cookies with GTM

Last updated 8 months ago

This courtesy guide is no longer actively tested by Openli, although it might still work.

Our cookie-consent widget intentionally uses a highly-compatible, highly-generic approach to integration. In most cases, it will be possible for your developers to adapt this guide's steps to any changes that might have been made to the target platform, in combination with their own general documentation. Our might be useful for this.

In this guide...

  • You can read a brief overview of what is and how you can use it with Openli.

  • If you already know Google Tag Manager is, you can skip the first part and jump directly to

What is Google Tag Manager?

Google Tag Manager (GTM) is a tool that organises all the third-party tags on your website (like Google Analytics or Facebook pixels), and also controls when these are triggered and set.

Tags can be statistical scripts or marketing tags that are meant for advertisement. Such tags and scripts set cookies, which collect data from your users. You must therefore collect consent before such cookies are set on your website.

The advantage of Google Tag Manager is that you can administre your tags/cookies without editing your source code or get help from a developer.

Google Tag Manager and Openli

Openli, if installed correctly, blocks all cookies and trackers until a user has given their consent. If you use Google Tag Manager, Openli can specify which tags are set based on your user's consent settings in our cookie consent widget.

For example, if a user has not given consent to marketing cookies, Openli prevents any tag categorised as marketing in Google Tag Manager to be set. By using Openli, you can ensure that cookies set on your website through Google Tag Manager are compliant with data protection laws governing the use of cookies.

You can watch this video from Google that shows you how to use Google Tag Manager:

Google Tag Manager
the integration guide.
consent-state events