17 Replies Latest reply on Sep 11, 2014 12:29 PM by 3636edcb3f0c9a753fe143da4393ed8af5763d53

    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:

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