How to prevent triggers from firing, if consent has not been given on certain or all cookie categories.
We have developed an API, which returns the current cookie consent state. This API can be used in a GTM Custom JavaScript variable to decide whether or not a trigger should fire.
Creating a variable
First step is to create a new variable, and select variable type Custom Javascript.