Question
How to trigger a conversion goal using javascript ?
HI,
I want to trigger a javascript code when someone fills out a form.
This JS code will trigger a goal for an AB testing website.
I am already using this code but it seems not working :
<script> |
MktoForms2.whenReady(function (form){ |
|
var vals = form.vals(); |
|
_vis_opt_goal_conversion(200); |
alert("Submitted values: " + JSON.stringify(vals)); |
}); |
}); |
}); |
</script> |
thanks for your help