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 of ours where they are going to place display ads on their site as well as send an email to their database, directing people to our site. Here are the links we are going to use
Display Ad
https://example.com/abc-page?utm_medium=display-ad&utm_source=partner-name&utm_campaign=product-abc&utm_content=image
Email Link
https://example.com/abc-page?utm_medium=email&utm_source=partner-name&utm_campaign=product-abc&utm_content=image
Mappings
UTM Tag | Field in Marketo |
utm_medium | Person Source |
utm_source | Lead Source Detail |
Marketo Form Builder
You can create a form and add in the fields that you want displayed for people to fill out. You will also create two fields that we are going to hide from view but will be used to capture the data from above.
How to add hidden fields
- Click the purple + button
- Look for the field you want to add (in this case Person Source)
- In the right sidebar, change Field Type to Hidden
- Leave Form Pre-Fill Enabled
- Click the Edit link by Autofill
- Click the Get Value From dropdown and change it to URL Parameter
- For Parameter Name type in utm_medium
- Click Save and you’re done
You can do the same thing for Lead Source Detail field, but make sure you change step 7 (Parameter Name) to be utm_source.