I've answered my own question, but thought I'd share for anyone else: My initial question I want to set shipping cost into event7 as a currency metric either in the format: s.events = "purchase,event7=5.00"; or in s.products e.g. s.products=";prod1;1;10.00,;prod2;2;12.00,;shipping;;;event7=5.00"; but am struggling to achieve this using eCommerce extension. It either ends up appending to every product like this : s.products=";prod1;1;10.00;event7=5.00,;prod2;2;12.00;event7=5.00,;shipping;;;event7=5.00"; (which inflates the shipping cost recorded) or it just sets event7 as a single success event like this: s.events = "purchase,event7"; (which doesn't record a cost value) I've tried using JS extensions to overwrite s.products, s.events, utag_data.shipping_cost or _cship but to no avail. Any ideas? Do I have to use do_Plugins to achieve this? My solution Yep. I had to use s_doPlugins in a custom Javascript extension. Just had this code in there: s.usePlugins = true; function s_doPlugins(s) { if(s.events.indexOf("purchase")>-1){ s.events+=",event7="+utag_data.shipping_cost; } s.plugins = "" } s.doPlugins = s_doPlugins; And set the scope to Pre-Loader and SiteCatalyst and ran it after the eCommerce extension.
... View more