Switching the environment by placing an environment cookie, not working anymore ?

Silver Contributor
Silver Contributor

Hello everyone,

 

I'm trying to use the document cookie to switch from tealium 'prod' to tealium 'dev' environnment on Firefox but this is no longer working.

document.cookie = "utag_env_ACCOUNT_PROFILE=//tags.tiqcdn.com/utag/ ACCOUNT/PROFILE/ENV/utag.js; path=/; domain=YOURSITE.com";

 Did i miss something ?

Thanks Sébastien

6 REPLIES 6

Switching the environment by placing an environment cookie, not working anymore ?

Bronze Contributor
Bronze Contributor

There was a change to Web Companion which removed the utag_env cookie to work by default. You can re-establish this capability by turning On the "Web Companion" Publish Configuration option under the Publish Settings and then publishing to the prod environment.

image.png

 

Switching the environment by placing an environment cookie, not working anymore ?

Silver Contributor
Silver Contributor

@tkumar605 

 

Hello 

 

I tested your suggestion but this is still not working on firefox

 

document.cookie = "utag_env_orange_obscare=//tags.tiqcdn.com/utag/orange/obscare/dev/utag.js; path=/; domain=https://www.orange-business.com"

bug with document cookie tealium switcher.png

 

Do you have any other suggestion please ?

Thks in advance Sébastien

Switching the environment by placing an environment cookie, not working anymore ?

Silver Contributor
Silver Contributor
@adrian_browning Do you have any suggestion on this topic please ?
Thks Sébastien

Switching the environment by placing an environment cookie, not working anymore ?

Silver Contributor
Silver Contributor
I've foudn my issue it was the domain only without the https paramater

Here's my solution
document.cookie = "utag_env_orange_obscare=//tags.tiqcdn.com/utag/orange/obscare/dev/utag.js; path=/; domain=orange-business.com"

Thanks anyway for your help
Kind regads,
Sébastien

Switching the environment by placing an environment cookie, not working anymore ?

Tealium Employee

@sebpujade1 Glad you got it working!

Sorry I wasn't quick enough to respond.

Adrian

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

Switching the environment by placing an environment cookie, not working anymore ?

Silver Contributor
Silver Contributor

Hi @adrian_browning , Thanks for your reply . I hope that others users won't face the same issue & in that case they wil  able to find the solution.

 

Have a lovely day,

Sébastien

Public