Munchkin altIds and form posts
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