With the Webform marketing module you are able to fetch url parameters to the external site is referred to webform fields with the 'Webform marketing' field type. The data is stored in a cookie, so you can have a different landing page then your webform.
Installation
- Download and install the module
- D Now new field type "Webform marketing field" is available for webforms.
Dependencies
1. Webform
How to add a field
- Add a new field with 'Webform marketing field' type
- Fill standart fields like key and label.
- Fill Parameter name. This is the main property of this field type. Parameter name should correspond with the name of a variable in the get query string. If you want to get referrer URL than you should enter 'sitereferrer'.
- Check Hidden if you need to hide the field or uncheck it if you want to have a standard text input field.
Example
You have the url: http://www.mysite.com/path?param1=test1¶m2=test2
Two 'Webform marketing field' fields for the webform should be created and "Parameter name" should be set as 'param1' and 'param2'. When users come to your site from referral urls browser will save this data to cookies 'param1' and 'param2'. Javascript will fill necessary fields on the page with the webform automatically. This way you'll always have data from referrals after the form is submitted.