Sharing4 Min.

How to track UTM parameters in your form

You can add UTM campaign parameters to your form URL and collect those UTM values in your form responses.

When to use

UTM parameters can be added to your form URL to measure the source of your respondents. That way you can track where your respondents came from when they opened your form, for example to see which marketing efforts have the most effect.

Tracking services, like Google Analytics, often support UTM parameters, so you can easily analyze the UTM data.

Available UTM parameters

There are 6 UTM parameters available:

  • utm_source - Identifies which site sent the traffic (required);
  • utm_medium - Identifies what type of link was used;
  • utm_campaign - Identifies a specific product promotion or strategic campaign;
  • utm_term - Identifies search terms;
  • utm_content - Identifies what specifically was clicked to bring the user to the site;
  • utm_id - Identifies which ads campaign this referral references.

You can combine those parameters in your form URL to measure what you want.

📌 Also see: Hidden field block

In the article you're reading now we describe how to collect UTM parameters in your form. We use the hidden field block for that. For global instructions about the hidden field block, please have a look at this article:

How to use

Now let's see how you can collect UTM parameters through your Tripetto form.

Generate UTM URL's

First step is to add the UTM parameters to your form URL. You can use a UTM campaign builder to easily create such URL's.

As base URL use the URL where your form is served from. If you use the direct link to your form, that's your base URL. If you have embedded your form, the URL of that page on your website is your base URL.

After that, add the desired UTM parameters with your values. Generate a unique UTM URL for each variant of your campaign(s). You can now use these URL('s) to send to your respondents.

Collect UTM parameters

In your form you can now collect the different UTM parameter values. Those will be stored with each form response you receive, so you can see where each form response came from.

To do so, you use the hidden field block in your form structure. You can store the whole query string at once, but for better analysis it's advised to store each UTM parameter in a separate hidden field block. You do that as follow:

  1. Add a hidden field block to your form structure. Give it a name to use in your form data (this will not be visible for your respondents);
  2. Set the Type of field to Query string;
  3. Enable the Parameter feature and enter the exact query string parameter you want to store in this hidden field. For UTM parameters these are the available parameter names (which we explained earlier in this article):
    • utm_source
    • utm_medium
    • utm_campaign
    • utm_term
    • utm_content
    • utm_id

Repeat this for every UTM parameter you use in your UTM URL's that you share with your audience. In case you use all 6 UTM parameters, you'll have 6 hidden field blocks: one per parameter.

Screenshot of the form builder in Tripetto
Example of a hidden field retrieving the UTM parameter utm_source.

Track UTM parameters

When sharing your form URL, make sure you always include your UTM parameters in your URL, according to each campaign.

All your form responses will now store the values of your UTM parameters. These are simply part of the form data that each respondent submits. You can now analyze that data, for example to learn which campaign is most effective to attract respondents.

In this article

    Help us improve