How to pass first party cookie data layer value in UDO.

Gold Contributor
Gold Contributor

How to pass first party cookie data layer value in UDO.

 

eg: UDO name - "user_id"

 

Cookie - _ptmz  (added from web campaingin tool).

 

Now i want to pass "_ptmz" value into user_id udo as this mapped with GUA UID varibale. should i change scope of user_id from UDO to Cookie in Tealium?

 

 

 

 

3 REPLIES 3

How to pass first party cookie data layer value in UDO.

Tealium Employee

Hello @ani2012. To make sure I'm understanding correctly:

 

1) You have user_id mapped into GUA's UID variable

2) You want to also have the value from the cookie "_ptmz" mapped into the UID variable.

 

If that's correct, then you shouldn't need to alter the user_id at all. The beauty about mappings is that you can map multiple variables to a tag and it will accept the last one populated with a value. So, assuming user_id is a udo variable and _ptmz is a cooke variable (and both created in the data layer tab) then you could do a mapping like so in the GUA tag:

 

img.png

 

Then, if one or the other variable is populated, then the uid will get populated. If both variables are populated, then the _ptmz would take priority since it is lower on the list.

How to pass first party cookie data layer value in UDO.

Gold Contributor
Gold Contributor
Thanks Stuart.

Can we aslo pass _ptmz value into user_id

How to pass first party cookie data layer value in UDO.

Tealium Employee

Yup! You can do this pretty easily using a set data values extension. You would just set user_id to the existing _ptmz variable. Your condition might also say "_ptmz is defined" for the extension rule.

Public