- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
10-15-2015 12:48 AM
This is the code on the site : window.utag_data = o;
And the reference object which is used by tealium is "b" as a reference for utag_data.
How do i assign object "b" to "o" so that i can see the UDO variables in Tealium WebCompanion?
Solved! Go to Solution.
10-16-2015 02:19 PM
Can you elaborate more on what you are trying to accomplish?
The b-object can only be referenced within a "tag template" or any extensions scoped to either "All Tags" or any tags. You cannot reference the b-object from an extension scoped to either "DOM-Ready" or "Pre-loader".
For example, say you want to assign your UDO variable "google_product_name" with the value of "product_id" that is within your "utag_data". You can added a "Set Data Value" extension, scope it to either "All Tags" or a specific tag (i.e. Google Universal Analytics). From there you can SET: google_product_name TO: (JS CODE) b.product_id
Let me know if this makes sense. Again, if you can elaborate more, I can help give you a better answer. Hope this helps.
10-16-2015 03:12 PM
After consulting with my colleague here regarding Web Companion, the tool itself does not read in the "b-object" it reads "utag.data", which is a combination of utag_data and all the web page properties that are built into the data layer (querystring, meta, cookies, etc.)
10-22-2015 11:01 PM - last edited on 10-23-2015 11:03 AM by kathleen_jo
Thanks for your help :) The problem is solved .
Thanks again for all your help .
Copyright All Rights Reserved © 2008-2023