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