Guys, this is proving to be really frustrating.
I put a 20 second delay between init() and munchkinFunction(), and my lead is still not associating. Certainly 20 seconds is long enough to assume that init() has completed, right? So why isn't my munckinFunction() call working?
This is my entire js block that calls munchkin:
<script type="text/javascript">
$.ajax({
url: '//munchkin.marketo.net/munchkin.js',
dataType: 'script',
cache: true,
success: function() {
Munchkin.init('xxx-xxx-xxx', {"wsInfo":"xxxxx"});
setTimeout(
function(){
Munchkin.munchkinFunction('associateLead', {email: 'grant@email.address'}, 'long_hex_string');
console.log("called munchkinFunction");
},
20000
);
}
});
</script>
What kind of animal needs to be sacrificed in order to get Munchkin's associateLead feature to work?