Highlighted

How to setup SiteCatalyst currency events?

Not applicable
How to assign revenue to the currency events in the SiteCatalyst tag
6 REPLIES 6
Highlighted

How to setup SiteCatalyst currency events?

Employee Emeritus

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.

Highlighted

How to setup SiteCatalyst currency events?

Not applicable
Hi Jared Thanks for getting back to me, would this be compatible with AppMeasurement.js?
Highlighted

How to setup SiteCatalyst currency events?

Employee Emeritus

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.

Highlighted

How to setup SiteCatalyst currency events?

Rookie Contributor

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']

Highlighted

How to setup SiteCatalyst currency events?

Employee Emeritus

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']

Highlighted

How to setup SiteCatalyst currency events?

Rookie Contributor
Thanks it worked.