You can leverage the marketo api to do something like this...<script type="text/javascript"> MktoForms2.whenReady(function (form) { // Add an onSubmit handler form.onSubmit(function(){ // set function calls here, for example to fire google analytics or adobe analytics tracking ...