AnsweredAssumed Answered

How to insert Google Analytic Event tracking code in a Guided Marketo Landing Page?

Question asked by 14771092ce2bd67dbb14b9b797871a469cb39d45 on Sep 28, 2016
Latest reply on Sep 30, 2016 by sanford.whiteman

Hello,

I came across in difficulties for inserting ga event tracking code in a marketo landing page. I have 3 different form & I want to track their activity.

I was trying something like below which seems not working.

 

<!-- EVENT TRACKING Download --> 

<script src="//app-ab06.marketo.com/js/forms2/js/forms2.min.js"></script>
  <form id="mktoForm_2745"></form>

<script>MktoForms2.loadForm("//app-ab06.marketo.com", "290-DNL-975", 2745, function(form) {
    form.onSuccess(function(values, followUpUrl) {
      ga('send', 'event', 'lead', 'trial', 'window.location.href');
      });
  });
  </script>
  <!-- EVENT TRACKING Download-->

 

May you kindly provide me the steps to do this.

 

Thanks

Gyan

Outcomes