The cookie control SDK is enabled via the UDO variable in Tealium - Tag Manager. The categories selected by the users are stored in the UDO data layer (utag_data). You then have to option of placing a LOAD RULE to check against these categories, so the tag does not fire until the user agrees to the selected category.
For easy set-up follow these steps:
Configure the variable
Inside Tealium Tag Manager - navigate to the section: DATA LAYER. Then click the button: + Add Variable
Fill out the fields as shown by the image below. The most important one being the Source-field. This is the same name provided in the UDO data-layer pushed from our backend.
Type: UDO Variable
By default, there are 3 basic cookie types, which your users can consent to:
Creating a simple "Load Rule"
Navigate to the section: LOAD RULES. Then click the button: + Add Load Rule
In the first dropdown box, choose our added UDO variable (Cookie Information Categories). Set the condition to CONTAINS and put in one of the category strings mentioned above. I.e. cookie_cat_statistic.
Remember! You can combine this with other categories, checking for multiple categories in the same load rule, by combining more than one condition with an AND statement.
Using the load rule on a Tag
In this example, we have added a Google Analytics tag and checked our new Load rule to use on this tag.
This tag will now ONLY get injected onto the website if the user gives consent to the cookie category: Statistic.
Turning off Tealium library
If you for some reason need to turn off the part of our library that contains the Tealium SDK, you can do so by placing the data-attribute: data-tealium-enabled="false" on the pop-up script (uc.js).