Skip to main content
January 25, 2013
Question

Munchkin.js - Disable default clickLink and visitWebPage, and use only custom ones

  • January 25, 2013
  • 3 replies
  • 1006 views

Hello,

In my code, I have:

Munchkin.init("xxx-xxx-xxx");

This alone seems to record visitsWebPage and clickLinks events.

I also have a custom call that adds more data:

mktoMunchkinFunction('visitWebPage', { url: document.URL + ' | Tag: ' + myTag });

Unfortunately, this doesn't "take over" the standard event, so I end up with two records in the Activity list for the same event.

Is there a way to disable the default behavior, and only use my custom code, so I don't have duplicates?

Thanks!
Peppe

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

January 26, 2013
Unfortunately I don't think so, although this would be a great idea to file!
January 31, 2013
My idea was to create a custom field in the original init function as an extra parameter. I participated in the API office hours with Marketo, and the man I talked to said that we could try re-directing before the Munchkin runs, then include the parameter in the URL so only that one is recorded when the Munchkin does run.
Level 1
April 22, 2014
Any update on this?  We would really like to add additional parameters but not add a second call that will be more problematic to clean up.