Debug Cookie Type Variable in Tealium

Bronze Contributor
Bronze Contributor

Hi Team,

I have created cookie type variable in tealium, how can I debug in console whether it is value is right or not?

Source: utag_main_LILO

Type: First Party Cookie

Thanks!!

Bindu Kumari

3 REPLIES 3

Debug Cookie Type Variable in Tealium

Gold Contributor
Gold Contributor

Hi @bindu_kumari 

If you are trying to look for a cookie variable that you are setting in Tealium using an extension and then looking in the browser then you can type document.cookie in your browser console it will retrieve all the cookies set on this domain.

Or if you want to see it in a different way then you can use Tealium Web Companian and select the data>cookie, it will show all the cookies.Screenshot 2022-11-01 122946.png

 

There are other ways also, please let me know if this is not what you are looking for.

Senior CDP Specialist @ Digitas Dubai

Debug Cookie Type Variable in Tealium

Community Manager
Community Manager

@bindu_kumari The utag cookies can be difficult to read in Web Companion because they aren't separated into individual variables. I would use the UTAG Debugger. Just click the Cookies checkbox at the top and all cookies, even the utag_main ones, will be listed separately.

Tealium_UTAG_Debugger-cookies.png

Remember to "Accept as Solution" when your question has been answered and to give kudos to helpful replies.

Debug Cookie Type Variable in Tealium

Community Manager
Community Manager

@bindu_kumari To see the value in the console: utag.data['cp.utag_main_LILO']

If you set a breakpoint in a utag function and are in the context of an extension or tag, then use the b object: b['cp.utag_main_LILO']

Data layer object (b)

Remember to "Accept as Solution" when your question has been answered and to give kudos to helpful replies.
Public