AnsweredAssumed Answered

Marketo Forms 2.0 + Google Tag Manager

Question asked by 407da3a18259f8b0b5e657a065a0c52d7f028342 on May 15, 2016
Latest reply on May 15, 2016 by Sanford Whiteman

Hello everyone.


This is perhaps a question that everyone has seen or asked but I am having a hard time trying to solve this head-sctacther and would like some assistance from the Marketo Hive Mind.


We're an ad agency who happens to be responsible for a lot of campaign management for a number of clients in the realm of digital marketing. Now, being an ad agency, some clients already have digital assets already in market such as banners, websites, landing pages and forms.


Now I have re-created my client's form already on their website and added one more field (set at hidden) for data capture on our end such as "anonymous IP". The fields that I have generated my form reflects the ones that are on my client's form already on the site (First Name | Last Name | Phone Number | Email | Enquiry) and rather than gaining access to my client's CRM, we would like to see the lead on our end to determine the lead score and quality so we can demonstrate the ROI in terms of their paid media activity which they have entrusted for us to take care of.


This is the code that I have from Marketo:


<script src="//"></script>

<form id="mktoForm_1038"></form>

<script>MktoForms2.loadForm("//", "948-LFI-092", 1038);</script>


Now trying to push this via Google Tag Manager has proven to be quite a challenge and I know I have done something wrong despite no bugs being flagged. After running a few tests and reading a few articles on the same issue I am facing, the tags are definitely not firing.


Even the folks at Google's Tag Management team (whom I have spent a lot of time over the phone - bless them) are saying "hey that code, yeah we used that code and its not working" so they are just as stuck as me.


Here is what they are able to create in the interim so I can can at least TRACK if the forms are being filled:



var myVar = setInterval(function(){

var x= 0;


if(document.getElementById('enquiry').innerHTML.indexOf('Thanks for your enquiry')!=-1){









So can anyone help this clueless pleb out? Because I am all out of ideas. In the words of Princess Leia "Help me, Obi-Wan Kenobi. You're my only hope."