Demonstration

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.

Custom Variables

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

http://MyDomain.com/?samplevar=aTestValue

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.

WordPress hooks or Javascript?

The settings page gives you the choice of using WordPress hooks or Javascript to interact with cookies and access the data that is being set for your 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.

Users who use caching plugins or in situations where the site is hosted on a managed WordPress environment that has server side caching, the plugin should be switched to use Javascript mode. We have tested the plugin with a number of caching plugins as well as leading WordPress hosting setups like WPEngine and it functions correctly when in Javascript mode.

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.

Supported Form Plugins

Currently we have built in support for these three WordPress form plugins: