SOLVED

How can I remove a Munchkin tracking from a form?

Go to solution
Maha89
Level 2

How can I remove a Munchkin tracking from a form?

Hello 

How can I remove munchkin tracking from a form, please? The landing pages are built in WordPress, not in Marketo.  

 Thank you

 

Here to learn
Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: How can I remove a Munchkin tracking from a form?

3 REPLIES 3
Darshil_Shah1
Level 10 - Community Advisor

Re: How can I remove a Munchkin tracking from a form?

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.

 

Maha89
Level 2

Re: How can I remove a Munchkin tracking from a form?

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.

Here to learn
SanfordWhiteman
Level 10 - Community Moderator

Re: How can I remove a Munchkin tracking from a form?