Capture UTM parameters in Formidable Forms hidden fields

UTM in Formidable Forms

You can use our AFL UTM Tracker plugin to populate the UTM parameters into your Formidable Forms hidden fields. With the plugin, you can know your visitors first touch & last touch UTM parameters and even the first landing page URL when they submit the form.

Table of Contents

  • How does the plugin works?
  • Setup hidden fields
  • Test the form

How does the AFL UTM Tracker plugin works?

We have built the AFL UTM Tracker plugin as a self-hosted UTM tracking solution based on first and last touch UTM parameters. Besides Formidable Forms, our plugin also integrates with many popular WordPress form builders and WooCommerce.

When a visitor lands on any pages in your WordPress site, our plugin will start tracking the visitor through cookies placed in the browser. The cookies will store the UTM parameters and remembers the UTM parameters as the visitor browses other pages on your site.

When the visitor decides to submit the form, our JavaScript tracking file will populate the UTM parameters into the Formidable Form hidden fields. That’s when you will know how the visitor arrives on your site and which marketing campaign they last interacted with.

Setup hidden fields

Here are the steps to start tracking your Formidable Forms:

  1. Purchase the AFL UTM Tracker plugin.
  2. Login to your WordPress admin dashboard.
  3. Install the AFL UTM Tracker plugin.
  4. Enable the AFL UTM Tracker > Settings > Javascript Merge Tag feature.
  5. Save setting and clear all page cache so that our Javascript tracking file is loaded.
  6. From the side menu > Formidable Forms > Forms.
  7. Select a form.

First Landing Page URL

  1. Add a “Hidden Field” to the form.
    • Field Label: First Landing Page
    • Default Value: afl_utm_js:sess_landing

First Touch UTM Parameters

  1. Add a “Hidden Field” to the form:
    • Field Label: First UTM Source
    • Default Value: afl_utm_js:utm_source_1st
  2. Add a “Hidden Field” to the form:
    • Field Label: First UTM Medium
    • Default Value: afl_utm_js:utm_medium_1st
  3. Add a “Hidden Field” to the form:
    • Field Label: First UTM Campaign
    • Default Value: afl_utm_js:utm_campaign_1st

Last Touch UTM Parameters

  1. Add a “Hidden Field” to the form.
    • Field Label: Last UTM Source
    • Default Value: afl_utm_js:utm_source
  2. Add a “Hidden Field” to the form.
    • Field Label: Last UTM Medium
    • Default Value: afl_utm_js:utm_medium
  3. Add a “Hidden Field” to the form.
    • Field Label: Last UTM Campaign
    • Default Value: afl_utm_js:utm_campaign

Want to populate more attribution data?

Refer to our Javascript Merge Tag list to populate First Touch UTM parameters, Last Touch UTM parameters, click identifiers (gclid, fbclid, msclkid) and other attribution data.

Formidable Forms > Hidden Field
Formidable Forms > Hidden Field

Test the form

Now save the form and you are ready to do some testing.

Simulate a visitor

  1. Generate your UTM tracking URL using Google Campaign URL Builder.
  2. Launch your browser in private-browsing mode to simulate a new visitor.
  3. Paste your UTM URL in the address bar and go.
  4. Navigate your site like a normal visitor.
  5. Then submit your form.

Example URL:

https://www.example.com?utm_source=google&utm_medium=cpc&utm_campaign=summer_sale

WordPress Admin

  1. Login to your WordPress admin dashboard.
  2. Go to Formidable Forms > Forms.
  3. Select your form > Entries.
  4. View the submission you have submitted and check out the UTM parameters.
Formidable Forms > Entry
Formidable Forms > Entry