10 Replies Latest reply on May 8, 2018 11:34 AM by Sanford Whiteman

    Has anyone successfully tracked Google Ananlytics goal conversions with Marketo form submissions without a thank you destination URL?

    Angela Ruggeri

      I am currently trying to track goal conversions using events. I would like an event to fire off after a successful form submit. we do not have thank you pages rather a "thank you modal" that appears and takes the place of the form. We can't get the Event to fire and trigger a conversion.

       

      Page URL: http://www.inxpo.com

      Function:

                <script>

                     MktoForms2.loadForm("//app-sj04.marketo.com", "924-COQ-679", 1295, function(form)

                {

                  //Add an onSuccess handler

                  form.onSuccess(function(form){

        ga('send', 'event', {

         eventCategory: 'form',

         eventAction: 'submit',

         eventLabel: 'contact'           

                    //return false to prevent the submission handler from taking the lead to the follow up url.

        });

        });

        return false;

         });

              </script> 

      What we want to show on successful form submission:

      <div class="reveal-modal large" data-reveal="" id="thank-you-modal">

            <a class="close-reveal-modal">×</a>

      <h2 id="ModalTitle">Thank you for contacting us! A solutions expert will be with you momentarily.</h2>

          </div>

       

       

      Any ideas on how to get it to trigger the event and conversion?