UTM parameters are useful for tracking and identifying the original source of your website visitors. However, these parameters are not collected in any of HubSpot’s default properties.
As a workaround, similar to auto-populating form fields with query strings, we can use the UTM parameter to auto-populate a hidden form field. When the form is submitted, the UTM parameters will be passed through to corresponding HubSpot properties.
Step 1: Create corresponding HubSpot properties
- In your HubSpot account, click the settings icon in the main navigation bar.
- In the left sidebar menu, navigate to ‘Properties’.
- Click Create Property to create a custom property for each UTM parameter.
- In the Create a new property sidebar:
- For the Group, you can select any existing property group, or create a new property group.
- For the Label, enter the UTM parameter:
- Check that the internal name of the parameter matches the UTM parameter exactly. The internal name will usually correspond to the label for the property.
- For the Field type, click the dropdown and select Single-line text.
- Confirm that the Show in forms checkbox is selected.
- Click Create to create the property.
- Repeat for each of the UTM parameters that you’d like to collect.
- utm_source
- utm_medium
- utm_campaign
- utm_term
- utm_content
Step 2: Add the corresponding properties to your HubSpot form
- In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
- From the forms tool, select an existing form, or create a new form.
- Add each of the newly created properties to the form.
- Click the form field and set each of the properties as a hidden form field.
- Click Publish or Update in the top-right corner of your page to publish your changes.
Moving forward, when a visitor is directed to your form page using a tracking URL appended with UTM parameters, these hidden fields should automatically populate. When the form is submitted, the contact’s new UTM property values will be updated.
Hope this helps!


