Hello
How can I remove munchkin tracking from a form, please? The landing pages are built in WordPress, not in Marketo.
Thank you
Solved! Go to Solution.
You could clear the mkt_trk on the form submit, so you don’t associate the current Munchkin web session with the email address on the form (or more precisely, with the person posted using the form). What's your end goal/requirement here? Just making sure that clearing out the Munchkin from the form post would be the right way (and also enough) to achieve that.
<script>
//add a callback to the first ready form on the page
MktoForms2.whenReady( function(form){
//add the tracking field to be submitted
form.addHiddenFields({"_mkt_trk":""});
//clear the value during the onSubmit event to prevent tracking association
form.onSubmit( function(form){
form.vals({"_mkt_trk":""});
})
})
</script>
Check out the developer documentation here.
Thank you so much for this! The goal of it is related to our attribution model and referral program. We don't want the channel from where the lead came and filled out the form to get attribution credit.