Web container
Community home
  • User manual
    • Getting Started
    • Data layer and data types
      • External variables
      • Internal variables
      • Event variables
      • Data storage
    • Container elements
      • Container
      • Tags
      • Events
      • Rules
        • Basic actions
        • Triggers
        • Perimeters & constraints
      • Advanced
    • Deduplication
      • Setup guide
      • Setup example
      • Deduplication reports
    • TagPerformance
      • Setup guide
      • Report analysis
      • Troubleshooting
    • Phoenix
    • APIs
    • Setup Guides
      • AMP
      • Android
      • Angular
      • AngularJS
      • Consent Management
      • IOT & TV Apps
      • iOS
      • React Native
      • React
      • Serverside
      • SPA implementation guide
      • VueJS
      • Websites
  • Tips & tricks
    • Best Practices
      • FAQ
      • Common Container Strategies
      • Common Data Layer Properties
      • Common Trigger Strategies
      • Performance Optimization
      • tC.* attributes and methods
    • Widgets and extensions
      • Bookmarklet
      • Elements duplication
      • Chrome extension
      • Connected users visualization
Powered by GitBook
On this page
  • 1. TrustCommander : Commanders Act CMP
  • 2. Other CMP
  • a. Manage Tags
  • b. Manage custom code and internal variables
  • c. Manage core code
  1. User manual
  2. Setup Guides

Consent Management

How to condition tags to user consent

PreviousAngularJSNextIOT & TV Apps

Last updated 2 years ago

1. TrustCommander : Commanders Act CMP

Commanders Act provides a Consent Management Platform (CMP) to easily manage the consent

2. Other CMP

If you already use your own CMP, you can of course manage the way your tags will be triggered through your own CMP setup.

a. Manage Tags

The recommended way is to attached a custom trigger to each of your tags and to manage this trigger inside your CMP to launch or not launch tags depending of the user's consent.

Warning : some part of TagCommander code is not inside tags, see below how to manage consent on custom code or core code

b. Manage custom code and internal variables

If you have written custom javascript code and/or internal variables that create cookies or send data, you'll have to link this code to your CMP. Of course it will depend of your CMP method, but the recommended way is to wrap your custom code with a conditional instruction (if) that will manage your CMP API or to embed it in a trigger that will be triggered by your CMP.

c. Manage core code

TagCommander contains also core code that is not accessible through the interface. There is one core feature that could put cookies and needs to be manage in your CMP through the management of one global variable : window.tc_disable_cookiesync

Usage : set this variable to true if the user doesn't give his consent

window.tc_disable_cookiesync = true;

You have to set this variable to false or not set the variable when the user gives his consent

https://www.commandersact.com/en/solutions/trustcommander/
https://community.commandersact.com/trustcommander/