How to change the name for CONSENTMGR

Bronze Contributor
Bronze Contributor

I need to change the cookie name for "CONSENTMGR" to a different name. Can you send me the steps to follow.


How to change the name for CONSENTMGR

Tealium Employee

Hi @Chathurana 

So this can only be done if you are using v2 of the Consent Manager.

If you make sure you are using the latest version of the cmGeneral template (v2.1.0) and make sure you see this line.

cookieNS: window.utag_cfg_ovrd && window.utag_cfg_ovrd.cmcookiens || "CONSENTMGR",

You can then either change the name of the cookie here, or in a pre-loader extension.

window.utag_cfg_ovrd = window.utag_cfg_ovrd || {};
window.utag_cfg_ovrd.cmcookiens = "<insert name here>";


Ask me anything Tealium related or TypeScript/JavaScript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.