Solved
Munchkin is not associating anonymous activity with Leads on login
As I understand it, I'm supposed to be able to make Munchkin associate anonymous lead activity with an existing Lead when they log in. That's not working for me.
On my post-login page, I'm calling this:
On my post-login page, I'm calling this:
<script type="text/javascript">
$.ajax({
url: '//munchkin.marketo.net/munchkin.js',
dataType: 'script',
cache: true,
success: function() {
Munchkin.init('xxx-xxx-xxx', {"wsInfo":"xxxxxxxxxxxxx"});
Munchkin.munchkinFunction('associateLead',
{ email: 'some@email' }, 'long_sha1_hex');
}
});
</script>
The long_sha1_hex is computed in Ruby via:
Digest::SHA1.hexdigest( encrypt_key + email_address )
I'm not getting any error mesages in my js console, and no feedback that anytying is wrong. But that munchkinFunction appears to be having zero effect.
Can anyone help me out?
The long_sha1_hex is computed in Ruby via:
Digest::SHA1.hexdigest( encrypt_key + email_address )
I'm not getting any error mesages in my js console, and no feedback that anytying is wrong. But that munchkinFunction appears to be having zero effect.
Can anyone help me out?