5 Replies Latest reply on Oct 4, 2018 11:35 AM by John Reiner

    Munchkin code is not Tracking when I publish the code on azure site

    John Reiner

      Issue Description

       

      I have put below code plus munchkin asynchronous tracking code to fill out the form and track user events in my website and tested it in local host. when user logs in the marketo form is being submitted and for each following visits the munchkin code is sending the page visits and web click events for the known lead but when I published the same code to azure site it's not tracking the known lead instead when user logs in the form fill out event works fine but after then when user visit any of the pages or clicks the link its sending the event as anonymous lead. I am not sure why it's not getting the same cookie when user visits any of the page after form fill out event  from azure site but it does in local host. I tried different munchkin code (Simple, asynchronous, asynchronous jquery) but no luck.

       

      var form = MktoForms2.allForms()[0];

              MktoForms2.whenReady(function (form) {

                 form.onSuccess(function (vals, tyURL) {

                     return false;

                 });

              form.addHiddenFields({

                  //These are the values which will be submitted to Marketo

                  /**/

                  "Email": "test@gmail.com",

              /**/

          });

          form.submit();

          });