Thanks, what I'm trying to achieve is associate a new lead and capturing the click event of the registration button for that lead in successive steps.
Here's the javascript code:
marketoUpdate = function (parameters, adminID, userID, key) {
var marketoParameters = {
Email: parameters.email
// rest of parameters omitted for space
};
Munchkin.munchkinFunction('associateLead', marketoParameters, key);
Munchkin.munchkinFunction('clickLink', {
href: 'sign-up-submission?type=FT',
Email: parameters.email
});
};
'associateLead' works fine on its own, but if I call 'clickLink' after it the lead doesn't even get created. However if I pause the program before clickLink and resume it manually with considerable delay everything works (the lead gets created and the click event is recorded in their activiy log).
I don't think there's a response for associateLead I can use for a callback to call clickLink? Any other suggestions are welcome!