You might already be using UTM parameters to track your marketing campaigns with Google Analytics, but are you capturing that information when a form is submitted in Easy Forms? Capturing this data is critical in order to assess the value of your marketing campaign and is a lead management best practice.
Add URL Parameters
If you’re running a Facebook ad, you can add a URL parameter to your ad’s landing page link like this:
https://easyforms.dev/?utm_source=facebook
If you’d like to track more than just the source, you can add more URL parameters by separating them with “&”:
https://easyforms.dev/?utm_source=facebook&utm_medium=social
This way, if a visitor clicks your ad and converts, the parameter will be read into the hidden field you have set up, then it will be submitted along with the form submission.
Google has a popular URL building tool for tagging your links with useful data (which also happens automatically if your Google Ads and Google Analytics accounts are linked). This will result in some paramaters being tacked onto the end of your Easy Forms page URL which might look like this:
https://easyforms.dev/?utm_source=google&utm_medium=ppc
Capture URL/UTM Parameters with Easy Forms
To capture this data in your form, just create a hidden field for each tag and give them the same alias as the tag, so for this example you’d create the following hidden fields:
- Label: UTM Source -> Alias: utm_source
- Label: UTM Medium -> Alias: utm_medium
- Label: UTM Campaign -> Alias: utm_campaign
- Label: UTM Content -> Alias: utm_content
- Label: UTM Term -> Alias: utm_term
Save the changes and publish your form.
To test it, open the page URL where you have inserted your form and append the following parameters to it:
?utm_source=source_test&utm_medium=medium_test&utm_campaign=campaign_test&utm_term=term_test&utm_content=content_test
When you submit your form on that page, you should be able to see a new form submission that contains UTM parameters.