- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
11-03-2015 08:46 AM
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?
11-03-2015 12:56 PM - last edited on 11-03-2015 01:13 PM by kathleen_jo
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:
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.
11-03-2015 06:29 PM
11-04-2015 09:51 AM
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.
Copyright All Rights Reserved © 2008-2023