Getting Marketo Form Id

Anonymous
Not applicable

Getting Marketo Form Id

Is there a way to get the Id created by submitting the form on the confirmation page.  I need to pass it into Google Analytics.
Tags (1)
2 REPLIES 2
Edward_Masson
Level 10

Re: Getting Marketo Form Id

if you view the HTML source of a Marketo page with a form and seaarch for 'formID' you should see the number
Anonymous
Not applicable

Re: Getting Marketo Form Id

As an alternative if you go to the form you are interested in via the Design Studio, then do Form Actions --> Embed Code, you will get some code that looks like the following:

 
<script src="//app-sj04.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_14"></form>
<script>MktoForms2.loadForm("//app-sj04.marketo.com", "999-XXX-999", 1234);</script> 

Whatever value you have where 1234 is located is the form id (formid). I believe this is the same thing as a vid which is also reference in the documentation.