To add a hidden field to your form:
1. Click "Website" on the left menu to navigate to the Forms overview page.
4. Click the "Add a custom field" button.
Now that you have added a hidden field to your form, you may be wondering how exactly that field will collect information about your contacts. There are a few different ways to go about this:
Adding a query string to your form's URL will add a fixed value to your hidden field.
For example, let's say I have a hidden field called “Hidden Field” in my form and the personalization tag for that field is %HIDDEN_FIELD%.
When a contact submits my form, I want that hidden field to display the value of “Test” on that contact's profile page.
To do that, I would need to fetch the personalization tag for that field (go to Contacts > Fields) and remove the percent (%) signs.
Then I would grab my form's URL: https://atestaccount.dewy.io/f/15 and append it with this: ?hidden_field=Test so that the form URL now looks like this: https://atestaccount.dewy.io/f/15?hidden_field=Test.
This is how the form looks in an account. Note the hidden field:
To make this process easier, we recommend using this UTM builder: https://ga-dev-tools.google/campaign-url-builder/.
After adding your hidden field to your form, copy and paste the full embed code for the form to your site. Then, insert your fixed value for that hidden field into your form's HTML code.
Here is an example showing you where to add that fixed value:
You can add custom code to your site to dynamically “post” information to your hidden field when a form is submitted. This option will require custom coding on your end.
While UTMs are extremely capable of measuring your channel and overall performance, UTMs are easy to get wrong and far less accurate when done incorrectly and inconsistently.
In the case of UTMs, even just using parameters that are different can cause a mess. Both “paid-social” and “social-cpc” could be correct, but if a part of your team uses the former and the rest of your team the latter, your data will be splintered.
Thankfully, improper UTM code usage won’t affect your site or customer experience, but the consequences can be significant to your analytics and optimization. Moreover, UTM mistakes are permanent. You can’t alter Google Analytics parameters after the fact, nor can you do so on other analytics tools.
The three best ways to prevent this common mistake are: