Tracking Marketo Form Submit via DTM



This seems like it should be pretty straightforward.... a good portion of AEM customers must be using marketo and wanting to track form submits but I can't find any documentation.

I have marketo forms embedded on several pages of my website, and I'd like to track how many form fills have occurred on any page each week. I used a standard marketo embed code (only edited for look n feel).

Support has been telling me that I need an event based rule (what would trigger this and what should be the outcome?). Somehow, it calls a direct call rule that adds to my "form complete" event each time the form is submitted (what triggers the direct call and what is the outcome?). At this point, I'm not as worried about people who are filling out the form and submitting it while it's incomplete.... I just need more reliable numbers that match what I an see in marketo.

Can someone suggest what should be in each field of the Event Based Tag & the Direct Call Tag? I have no idea where to start....

Accepted Solutions (1)

Accepted Solutions (1)



You can leverage the marketo api to do something like this...

<script type="text/javascript">

    MktoForms2.whenReady(function (form) {

      // Add an onSubmit handler


          // set function calls here, for example to fire google analytics or adobe analytics tracking





Answers (2)

Answers (2)