Munchkin altIds and form posts | Community
Skip to main content
New Participant
June 7, 2021
Question

Munchkin altIds and form posts

  • June 7, 2021
  • 1 reply
  • 2191 views

Hello, Now i have added the right code because: - i can see anonymous visitor and known visitor web page visit. When an anonymous filled out a form, the history is merged with the new known lead. This case is for production instance - on the sandbox instance, we see anonymous web page visit but not for the known leads. So the munchkin code is almost working and the syntax is correct but we do not understand the last part (not working).

 

 

<script type="text/javascript"> (function() { var didInit = false; function initMunchkin() { if(didInit === false) { didInit = true; Munchkin.init('715-ASN-XXX',{altIds: ['140-HUP-YYY'] }); } } var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src='//munchkin.marketo.net/munchkin.js'; s.onreadystatechange = function() { if (this.readyState == 'complete' || this.readyState == 'loaded') { initMunchkin(); } }; s.onload = initMunchkin; document.getElementsByTagName('head')[0].appendChild(s); })(); </script>

 

 

Can someone have the same situation ?

 

Thanks 

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

1 reply

Sylvain_Davril
New Participant
June 7, 2021

Hey guys, 

Some context and details on the above message.

 

This is a case of sending web activity to the two AFP Marketo instances.

 

Using the above code, everything works perfectly on the Marketo production environment (the first Munchkin id in the code)

> we see the visits for the anonymous and the known leads. When an anonymous fills out a form, his history is merged with the new known lead.

 

The Sandbox environment has some trouble :

- we see the anonymous visits

- but nothing for the known leads.

Marketo cannot reconcile a new known lead with his web activity as anonymous.

 

Thanks in advance for your help !

 

Sylvain

Katja_Keesom
Community Manager
June 7, 2021

Did you test a person filling out a sandbox form who also accepted the cookie? Of course it will only associate for a form that is in that instance. Just checking the basics here.

Sylvain_Davril
New Participant
June 14, 2021

Yep, I made extra sure when I tested.

I will try Sanford's suggestion

thanks

Sylvain