Highlighted

Hi all! I'm trying to create a new data layer element, a First Part Cookie, that will push trough Tealium the value from an existing cookie that I have. The thing is my cookies has special chars in its name and Tealium does not allow me to use that name.

Rookie Contributor
In order to push that cookie value to any vendor I need to configure my data layer element with the same name the existing cookie has? Is there any other workaround I can use to push that value from my cookie? Thanks!!
3 REPLIES 3
Highlighted

Hi all! I'm trying to create a new data layer element, a First Part Cookie, that will push trough Tealium the value from an existing cookie that I have. The thing is my cookies has special chars in its name and Tealium does not allow me to use that name.

Employee Emeritus
Hi Ivan, There are probably a few ways of doing this but one suggestion would be to write a 'pre-loader' scoped javascript extension (https://community.tealiumiq.com/posts/537843) with some code to add it into utag_data? For example: http://jsfiddle.net/ApM6G/ This way you can set the value of the cookie in your data layer as either a 'UDO variable' or a 'cookie value' - you can then map the variable to the tag of your choice. Does this help? Cheers, Roshan
Highlighted

Hi all! I'm trying to create a new data layer element, a First Part Cookie, that will push trough Tealium the value from an existing cookie that I have. The thing is my cookies has special chars in its name and Tealium does not allow me to use that name.

Rookie Contributor
Thanks! I have tried that approach from the JS or even the backend and works fine. But I was thinking if that was a known issue within Tealium that can be solved directly there instead of adding extra coding.
Highlighted

Hi all! I'm trying to create a new data layer element, a First Part Cookie, that will push trough Tealium the value from an existing cookie that I have. The thing is my cookies has special chars in its name and Tealium does not allow me to use that name.

Employee Emeritus
Hi Ivan, Apologies for the delay - I've asked for a bit of feedback from engineering to see if they have a more optimal solution. Cheers, Roshan