Help Center

Add hidden fields to Marketo forms

Marketo (Adobe Marketo Engage) is a popular marketing automation platform, and its form builder is used by many businesses to capture leads on their websites and landing pages.

Attributer can work with Marketo forms to capture marketing attribution information on each of your leads. Here’s how to set it up.

Step 1: Create custom fields in Marketo

Before you can add Attributer’s hidden fields to your forms, you first need to create the fields in Marketo’s database. This is done through the Admin area.

To do this, go to the Admin area in Marketo and click Field Management in the left-hand menu. Next, click the New Custom Field button.

In the dialog that appears, enter the following information:

  • Object = Lead
  • Type = String
  • Name = Channel

Then click Create.

You have now created the first custom field that Attributer needs. Repeat this process to create the remaining 5 fields:

Field #2

  • Object = Lead
  • Type = String
  • Name = Channel Drilldown 1

Field #3

  • Object = Lead
  • Type = String
  • Name = Channel Drilldown 2

Field #4

  • Object = Lead
  • Type = String
  • Name = Channel Drilldown 3

Field #5

  • Object = Lead
  • Type = String
  • Name = Landing Page

Field #6

  • Object = Lead
  • Type = String
  • Name = Landing Page Group

Step 2: Add the fields to your form

Now that the custom fields have been created, you need to add them to the Marketo form you want Attributer to work with.

To do this, go to Marketing Activities, find the form you want to edit, and click Edit Form.

In the Form Editor, click the + button to add a new field. You should be able to find the custom fields you created in Step 1 in the list. Add all 6 fields to your form.

Step 3: Set the fields to Hidden

For each of the 6 fields you just added to the form, you need to change the field type to Hidden so that they are not visible to your website visitors.

To do this, click on one of the fields in the form editor, then set the Field Type to Hidden.

Repeat this for all 6 fields.

Step 4: Set the default values

Now you need to configure each hidden field with a default value that tells Attributer which data to write into it.

To do this, click on one of the hidden fields and then click Edit next to the Autofill option to open the field value settings.

In the dialog that appears, select Use Default Value for the ‘Get Value From’ option, and then enter the appropriate default value from the table below.

Attributer FieldDefault Value
Channel[channel]
Channel Drilldown 1[channeldrilldown1]
Channel Drilldown 2[channeldrilldown2]
Channel Drilldown 3[channeldrilldown3]
Landing Page[landingpage]
Landing Page Group[landingpagegroup]

Click Save after entering the default value for each field.

Step 5: Approve the form

Once you have configured all 6 hidden fields with the correct default values, click Finish and then Approve and Close to make your changes live.

That’s it! Attributer will now write the marketing attribution data for each visitor into the hidden fields when the form is submitted.

Step 6: Embed the form on your website

If you haven’t already embedded the form on your website, you can get the embed code by going to Form Actions > Embed Code in Marketo.

Copy the embed code and paste it into your website’s HTML where you want the form to appear. The embed code will look something like this:

<script src="//app-ab00.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1234"></form>
<script>MktoForms2.loadForm("//app-ab00.marketo.com", "123-ABC-456", 1234);</script>

Attributer works with both the standard embed and the lightbox embed options.

Can't find the answer you need? Contact us!

Our team are available to answer any questions you have

Support Team Pics