Munchkin across local/dev/live environments? | Community
Skip to main content
Marissa_Cookson
Level 2
January 20, 2017
Solved

Munchkin across local/dev/live environments?

  • January 20, 2017
  • 1 reply
  • 3440 views

Hi all,

My agency builds client websites and we have a setup of local, development, and live server environments. We're onboarding a couple of clients to Marketo, and I'm wondering what the best way is to integrate Munchkin code from an agency perspective.

- Munchkin is domain specific, so would it even work in our other development environments?

- If Munchkin is not on our dev server, how do we test forms that will submit to Marketo via the API?

- Can you block your in house team from becoming leads? Or would you just segment them

What is your approach to Munchkin integration and form testing?

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

- Munchkin is domain specific, so would it even work in our other development environments?

Munchkin isn't domain-specific. A single Munchkin ID can be used on any number of domains. It's the ID (and, optionally, workspace ID) that determine which Marketo database is updated.

You can also send Munchkin activities to multiple Marketo instances at the same time (each with its own Munchkin ID). This is not exactly resource-efficient, but it is supported (the Munchkin init option altIds allows this).

- If Munchkin is not on our dev server, how do we test forms that will submit to Marketo via the API?

Well, first of all, you should not use any API -- besides the client-side Forms 2.0 API, of course, which is used by native Marketo Forms -- to submit forms. To do anything else creates a Denial of Service vulnerability.

Second, Marketo Forms and Munchkin are complementary but they a re not actually interdependent. A form post works fine without Munchkin and will upsert the corresponding Marketo lead. Where Munchkin comes in (and it is an important feature, just not critical to the operation of the form itself, and actually a different testable unit) is in associating past and future web activities with the now-identified lead, as well as in related features like Progressive Profiling and Known Lead HTML (both of which imply access to the associated lead's activity history).

So if you do not run Munchkin on your dev server, but you do (as you should in a professional context) use standard Marketo Forms to submit to Marketo, you'll get leads, but not a complete activity trail.

What is your approach to Munchkin integration and form testing?

You're going to need test leads or else you won't be able to test. You can segment test leads, making sure that people use a consistent naming pattern (like plus addressing: test+099@example.com) that can be predictably found using Smart Lists.

1 reply

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
January 20, 2017

- Munchkin is domain specific, so would it even work in our other development environments?

Munchkin isn't domain-specific. A single Munchkin ID can be used on any number of domains. It's the ID (and, optionally, workspace ID) that determine which Marketo database is updated.

You can also send Munchkin activities to multiple Marketo instances at the same time (each with its own Munchkin ID). This is not exactly resource-efficient, but it is supported (the Munchkin init option altIds allows this).

- If Munchkin is not on our dev server, how do we test forms that will submit to Marketo via the API?

Well, first of all, you should not use any API -- besides the client-side Forms 2.0 API, of course, which is used by native Marketo Forms -- to submit forms. To do anything else creates a Denial of Service vulnerability.

Second, Marketo Forms and Munchkin are complementary but they a re not actually interdependent. A form post works fine without Munchkin and will upsert the corresponding Marketo lead. Where Munchkin comes in (and it is an important feature, just not critical to the operation of the form itself, and actually a different testable unit) is in associating past and future web activities with the now-identified lead, as well as in related features like Progressive Profiling and Known Lead HTML (both of which imply access to the associated lead's activity history).

So if you do not run Munchkin on your dev server, but you do (as you should in a professional context) use standard Marketo Forms to submit to Marketo, you'll get leads, but not a complete activity trail.

What is your approach to Munchkin integration and form testing?

You're going to need test leads or else you won't be able to test. You can segment test leads, making sure that people use a consistent naming pattern (like plus addressing: test+099@example.com) that can be predictably found using Smart Lists.

Marissa_Cookson
Level 2
January 20, 2017

Thanks, appreciate the quick reply!

"Munchkin isn't domain-specific" - sorry I got confused with cookies.

SanfordWhiteman
Level 10
January 20, 2017

Well, you want to use different registered domains for your local, dev, and live environments. Otherwise, unless you deliberately tell Munchkin to set its cookies at the full current domain (i.e. at .www.example.com instead of at .example.com) you will end up sharing cookies and majorly messing up your testing. You should probably read this post: http://blog.teknkl.com/munchkin-2-letter-tlds-broken/