- Install and activate the plugin
- Ensure you have one of the supported form plugin also activated
- Add hidden fields to your form(s) to capture the values
- Use Campaign URLs for your online campaigns
- Enjoy the campaign data coming through with each entry in your form!
In this first video, watch a walkthrough of the basic setup of the plugin
In this next video watch a demonstration of the plugin’s built in URL builder.
Adding hidden fields to your forms
To store each value that you would like to track you will need to create a hidden field in your web form. All of the supported plugins provide a simple way to add these hidden fields.
The screenshot below shows you a set of hidden fields added in Gravity Forms. Specific instructions for Contact Form 7 are below.
You can label the fields anything you like but it probably helps to call them something that makes sense to you when the entries come through the forms.
Below is a similar setup in Formidable. Showing a set of hidden fields.
Adding a hidden field in the form plugins is easy.
The screenshot here shows the field tool for Gravity Forms. Click Hidden will get you a hidden field that you can then use with Campaign Tracker.
Ninja Forms and Formidable work in much the same way.
Mapping your campaign data to form fields
Under the settings menu in your WordPress dashboard you will find an option for Campaign Tracker
Visiting this page will allow you to set up some the mapping for your forms.
Depending on the form plugin that you use you will see an option here that matches the active form plugin.
In the example here we’re using Gravity Forms.
Choose the form that you would like to work with.
Then you can choose which campaign values you would like to send via the form. In the list on the left you will see that the standard Google Campaign values like source and medium etc.. You also have the option of collecting the GCLID value if you’re using Google Adwords.
Custom variables also appear in this list. You can see one there setup as sampler. In the drop down menus are the selected field out of the form. In this example we have chosen names that mirror the value that we are wanting to collect.
Campaign Tracker also supports up to six custom variables. Use these to capture any other variables that you might be using in your URLs.
For example if you have a URL like
You can setup samplevar to be collected by the plugin and passed through your form.
The screenshot here shows the setup for this example.
View the data in form entries
Each of the supported plugins allow you to send an eMail notification each time an entry comes through your form. If you have the notification set to show all fields (i.e. including hidden fields) you will see these values in the eMail notifications.
The form plugins also store the entries in your WordPress database. So again the campaign tracking values will also be available directly in your WordPress dashboard. The screenshot below shows an example with Gravity Forms.
All of the supported Form plugins have hooks that allow the plugin to set the values in the form fields. This mode also relies on WordPress’ cookie implementation. This setup works well for stand alone WordPress installs where there is not a caching plugin installed.
Creating campaign tracking URLs
Version 1.5 brings the ability to create tracking URLs from within the WordPress editor. When on the post (or page) editor there is a new meta box that is available. Choose from your default values or enter a new value right inside this tool.
Click Generate URL and it’s created for you instantly.
From within the plugin settings you can setup and store all of your regularly used values, the screenshot below shows this new interface.
Contact Form 7 specific instructions
In version 1.6 we’ve added support for the popular from plugin Contact Form 7. The setup with this form plugin is a little different, in this section we cover how to configure things.
Firstly, Contact Form 7 does not support hidden fields. There is a free plugin Contact Form 7 Modules that adds hidden field functionality. Start by installing this plugin into your WordPress site.
When you visit the Contact Form 7 form editor now, you’ll see a new field type hidden. See the screen shot below.
Create hidden fields for each of the fields that you would like to track. For example you might want to add fields for:
- Campaign name
It’s import that each field that you add, you give it an ID. This is required for our plugin to be able to target that specific field when adding the tracking data. See the screen shot below, here we just add IDs that are the same as the field name.
As you build the form you will see the shortcodes added to the form.
Now, visit the plugin’s settings page, under the Settings menu in your WordPress dashboard choose Campaign Tracker. You will see there is tab specifically for Contact Form 7 (see below). The rest of the setup is the same as outlined above for all form plugins. Choose the form that you would like to start tracking and map the form fields to the various tracking data fields.
Auto and manual tagging in Google Adwords
To capture the values coming along with a visitor the plugin needs to have access to UTM variables (Google’s source, medium, campaign name etc…).
If you are using auto-tagging in your Google adwords account you will need to adjust the URL that the URL for the ad includes the utm variables that you’d like to collect.
Alternatively you can choose to change to manual tagging inside your Adwords campaign and configure the tags this way for your ad.
Supported Form Plugins
Currently we have built in support for these three WordPress form plugins:
- Gravity Forms
- Ninja Forms
- Contact Form 7