- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
05-20-2014 02:32 AM
Solved! Go to Solution.
05-20-2014 07:38 AM - last edited on 09-17-2016 07:25 PM by kathleen_jo
Hey Arjun,
Check out the section titled, "Setting s.events in Extensions" in this post:
https://community.tealiumiq.com/t5/Tags/Adobe-Analytics-SiteCatalyst-Tag/ta-p/664
However, we're going to take a little different approach. Using version H25 or H26 of the SiteCatalyst template allows us to use the same u.addEvent function to set currency events.
You would configure the Set Data Value Extension just like in the above post. However, you will use this syntax for u.addEvent.
u.addEvent("event##",b.variable_name)
So lets say you want to populate event10 with order tax, with is populated in order_tax within the Universal Data Object. The syntax would be:
u.addEvent("event10",b.order_tax);
That's it!
Hope that helps.
05-20-2014 07:53 AM
05-20-2014 08:17 AM - last edited on 04-14-2016 09:51 AM by kathleen_jo
With the AppMeasurement for JavaScript version you will need to use:
u.addEvent("event10="+b.order_tax)
The u.addEvent function in the AppMeasurement currently does not support two arguments which is why you need to use the plus sign. Functionality wise it works the same and will do what you need.
06-02-2014 04:42 PM - last edited on 04-14-2016 09:53 AM by kathleen_jo
if in the data layer I have followng variable: universal_variable.transaction.shipping_cost
how do i define it?
b.universal_variable.transaction.shipping_cost
or
b['universal_variable.transaction.shipping_cost']
or
utag_data['universal_variable.transaction.shipping_cost']
06-03-2014 09:22 AM - last edited on 04-14-2016 09:54 AM by kathleen_jo
Tomas,
If you are using the value in an extension scoped to All Tags or a specific tag you would reference it as:
b['js_page.universal_variable.transaction.shipping_cost']
If you are using the value in an Extension Scoped to DOM Ready:
utag.data['js_page.universal_variable.transaction.shipping_cost']
If you are using the value in an Extension Scoped to PreLoader:
utag_data['js_page.universal_variable.transaction.shipping_cost']
Copyright All Rights Reserved © 2008-2023