Collecting Data from UTM Tags Using Hidden Fields
Collecting data from UTM tags using Marketo forms is incredibly easy. I use them to capture lead (person) source data using the utm_medium and utm_source tags.
Example
Let’s say we are doing a promotion with a partner where they will place display ads on their site and send emails to their database, directing people to our site. Here are the links we will use:
Display Ad
Email Link
Mappings
UTM Tag | Field in Marketo |
utm_medium | Person Source |
utm_source | Lead Source Detail |
Marketo Form Builder
Create a form and add the fields you want displayed for users to fill out. You will also create two fields to capture data from the UTM tags, which will be hidden from view.
How to Add Hidden Fields
- Click the purple + button.
- Find the field you want to add (e.g., Person Source).
- In the right sidebar, set Field Type to Hidden.
- Ensure Form Pre-Fill is enabled.
- Click Edit next to Autofill.
- Select URL Parameter from the Get Value From dropdown.
- For Parameter Name, enter
utm_medium
. - Click Save to finish.
Repeat these steps for the Lead Source Detail field, changing step 7 to set the Parameter Name as utm_source
.