Solved! Go to Solution.
07-30-2014 10:42 PM - last edited on 10-05-2016 04:21 PM by kathleen_jo
Ok, I think I see what's going on here but let me ask a question first. If the visitor_id value is already part of utag_data (as shown in your function) then why is it necessary to set it in a cookie before passing it to GUA? You ought to be able to map visitor_id directly to your GUA custom dimension without setting a cookie first. That being said, in your function above the cookie namespace is set to utag_main but I think you may have defined a data source of visitor_id (type cookie value) and mapped visitor_id to the desired location in GUA. If that's the case then you are mapping a data source that has no defined value to GUA so even though it looks like an error it's actually working correctly. If the above is indeed the case, then you need to make sure the data source being mapped is utag_main_visitor_id because visitor_id is being stored as a parameter in the utag_main cookie. However, if your data source IS utag_main_visitor_id already then it's possible that the cookie is getting set AFTER mapping for GUA runs and therefore the value of the data source is not set. Reference: https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/Tealium-Cookies/ta-p/138