sc_events in a utag.link call

nalbertini
Rookie Contributor
nalbertini

I have to use a utag.link() call in a javascript extension for various reasons. I have to pass an event within the utag.link call as well but not sure how to do that given the necessity of using sc_events. If I pass it as "sc_events":"event125" then I get the usual events = "0,1,2,3,4,5,6" but there is no way to set the correct way of "sc_events":{"event125":"1"} like you are supposed to follow in a Set Data extension.

utag.link({"content.form.formStep":pageDataLayer.content.form.formStep,"content.form.formName":pageDataLayer.content.form.formName,"sc_events":{"event126":"1"}});