What is UTM?
UTM parameters added to the URL address allow you to track the effectiveness of online campaigns and whence the user came to your landing page, for example via Google Analytics.
You can use UTM parameters in the link to your landing page – if you don’t know how to do it, check our UTM Builder.
How to collect standard UTM parameters?
All standard UTM parameters from your landing page’s URL address are automatically collected and added to your lead.
If the visitor enters your landing page with an exemplary URL: http://www.mylandingpage.com/hello/?utm_source=facebook.com&utm_medium=social&utm_campaign=winter_sale,
after submitting the form, the final lead will look like this:
email: (visitor’s mail)
How to collect non-standard UTM parameters?
- Log in to your Smartpages account and go to the editor of your landing page.
- Navigate to the Form Settings. In the Form fields tab, click Add element and add Hidden fields to it that match your custom UTM parameters – one for each parameter.
- In Field settings, click Additional options and enter a custom parameter in the Name attribute field.
If your landing page URL with custom parameters is: https://www.landpage.co/utm/?ref=website&name=Gilbert, in the Name attribute field, add ‘ref’ and ‘name’ respectively.
The target lead will look like this:
A hidden field with the ‘name’ attribute captures the name parameter, while a hidden field with the ‘ref’ attribute captures the ref parameter.
How to pass UTM parameters from one landing page to another and fill the form automatically?
You can send UTM parameters from one form on a landing page to another so that the data entered by the user on the first landing page will be auto-filled on the next one.
An example application below:
NOTE: Scripts will not work if you use the funnel function (action after form submission).
Step I – on the first landing page
Replace example.com with the URL address of your next, target landing page, where your visitor should be redirected after submitting the form.
Step II – on the target landing page
- Paste the code indicated below (for non-standard UTM parameters) in the Body bottom position on the Main page of your landing page and click Add to save the changes.
From now on, the data entered in the form on the first landing page will be forwarded to the URL address of the next landing page and will be auto-filled in the form.