How do I pass a variable value to a SiteCatalyst event. Example UDO variable material_Count=4, I need to pass the value 4 to event5 how do I do it in Tealium. How do I map the variable to event value.

Silver Contributor
Silver Contributor
 
5 REPLIES 5

How do I pass a variable value to a SiteCatalyst event. Example UDO variable material_Count=4, I need to pass the value 4 to event5 how do I do it in Tealium. How do I map the variable to event value.

Employee Emeritus
Hey Madhan, Currently this isn't an option to map. However, you can use the u.addEvent method of accomplishing this. If you are using the H25 or later version of the SC template you can do this: u.addEvent('event5',b.material_Count) You would use this in a Set Data Values Extension like so: Set: sc_events To: JS Code --> u.addEvent('event5',b.material_Count) If you are using the H24 version of the SC Template you will need to use: u.addEvent('event5='+b.material_Count) And setup your Set Data Values Extension like: Set: sc_events To: JS Code --> u.addEvent('event5='+b.material_Count) See the "Setting s.events in Extensions" section of this post for more information about using the u.addEvent Method: https://community.tealiumiq.com/posts/548398 The u.addEvent function is not supported in versions prior to H24. If you are using an older version of the SiteCatalyst template I would recommend reaching out to your Account Manager to get some help setting this up.

How do I pass a variable value to a SiteCatalyst event. Example UDO variable material_Count=4, I need to pass the value 4 to event5 how do I do it in Tealium. How do I map the variable to event value.

Silver Contributor
Silver Contributor
Thanks for your quick response Jared Need one small clarification, I am using 'SiteCatalyst AppMeasurement for JavaScript' will the H25 version of the code (u.addEvent('event5',b.material_Count)) will work in this? IF not can you please help me with that code.

How do I pass a variable value to a SiteCatalyst event. Example UDO variable material_Count=4, I need to pass the value 4 to event5 how do I do it in Tealium. How do I map the variable to event value.

Employee Emeritus
You will need to use the H24 Method with the AppMeasurement Tag, but it will work just the same: Set: sc_events To: JS Code --> u.addEvent('event5='+b.material_Count)

How do I pass a variable value to a SiteCatalyst event. Example UDO variable material_Count=4, I need to pass the value 4 to event5 how do I do it in Tealium. How do I map the variable to event value.

Gold Contributor
Gold Contributor
Hi, when we value an event, should we use equal or colons? In the current thread you use equal, but in others I saw colon, so I'm confused.

How do I pass a variable value to a SiteCatalyst event. Example UDO variable material_Count=4, I need to pass the value 4 to event5 how do I do it in Tealium. How do I map the variable to event value.

Employee Emeritus
Jarno, In SC events colons and equal signs are used for two different purposes. Colons are used to serialize events, while equals is used to assign a value to an event.
Public