AnsweredAssumed Answered

Munchkin is not associating anonymous activity with Leads on login

Question asked by 4ff282762e2329eff66acc6a898c76330a4ee628 on Aug 11, 2014
Latest reply on Sep 11, 2014 by 3636edcb3f0c9a753fe143da4393ed8af5763d53
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:

     <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?

Outcomes