Remove an event added with u.addEvent

Gold Contributor
Gold Contributor
Hi, is it possible? With SiteCatalyst, i have two utag.view() on the same page. On the first utag.view(), i've set an event with u.addEvent. Example: u.addEvent(["event10"]); On the second utag.view(), i need to remove that event (remove event10) and set another one. How can i do it? Thanks, Alessandro
2 REPLIES 2

Remove an event added with u.addEvent

Employee Emeritus
Hi Alessandro, the best practice way to do this will be to turn on the "Clear Vars" setting on the SiteCatalyst tag and then re-set all the data when you call utag.view(). Otherwise you are going to have unpredictable data being sent. Alternatively you can just set s.events="" directly, or tealium_s.events="" if you have a custom 's' object name.

Remove an event added with u.addEvent

Gold Contributor
Gold Contributor
Thanks Fiann, but s.events or tealium_s.events reset will be working inside an extension?
Public