AFL UTM Tracker Documentation

  1. Home
  2. Docs
  3. AFL UTM Tracker Documentation
  4. Gravity Forms Integration
  5. Extract Custom Parameters from URLs in Gravity Forms

Extract Custom Parameters from URLs in Gravity Forms

With our AFL UTM Tracker plugin, you can automatically extract custom parameters from the First Touch and Last Touch UTM URLs and capture custom Click Identifiers.

The custom parameters will be automatically saved into the database, displayed in reports and made available in the Gravity Forms Addons like Webhook and Zapier.

Recommended Method

  1. Go to the AFL UTM Tracker > Settings page.
  2. Please set up the custom parameters under the Attribution Settings.
  3. Look for the:
    • “Save Extra Parameters from UTM URL into the database” setting field.
    • “Click Identifiers Tracking” setting field.
  4. Save settings.
  5. Clear all page cache.

Alternative Method: Populate Custom Parameter into a Hidden Field

If you need to populate the custom parameters into a form hidden field, then follow the steps below.

  1. Go to your Gravity Forms > Form > Edit mode.
  2. Add a Hidden Field to the form.
  3. Under the Field Settings > Advanced > Click on Allow field to be populated dynamically.
  4. Type in the Parameter Name as listed below.
Screenshot of Gravity Forms - Form Builder
Screenshot of Gravity Forms – Form Builder

List of Tracking URLs

First you need to know from which tracking URL you want to extract the parameter.

First Landing Page
afl_wc_utm:sess_landing

First Website Referrer
afl_wc_utm:sess_referer

First Touch UTM URL
afl_wc_utm:utm_1st_url

Last Touch UTM URL
afl_wc_utm:utm_url

Last Touch gclid URL
afl_wc_utm:gclid_url

Last Touch fbclid URL
afl_wc_utm:fbclid_url

Last Touch msclkid URL
afl_wc_utm:msclkid_url

Examples

Extract the matchtype parameter from the Last Touch UTM URL:

afl_wc_utm:utm_url--extract_param:matchtype

Extract affiliate_id parameter from the First Landing Page URL:

afl_wc_utm:sess_landing--extract_param:affiliate_id

Extract the ad_id from the First Touch UTM URL:

afl_wc_utm:utm_1st_url--extract_param:ad_id

Extract the ad_id but from the Last Touch UTM URL:

afl_wc_utm:utm_url--extract_param:ad_id