fbpx

Dynamically Populating UTM Parameters in Gravity Forms Hidden Fields

WooCommerce UTM Tracker Tutorial

With version 1.2.5 of our WooCommerce UTM Tracker plugin, you’ll be able to dynamically populate the UTM parameters in your Gravity Form Fields.

This is only required if you plan to push the UTM parameters to third-party API service like Zapier, Active Campaign or Mailchimp. Otherwise you do not need to create these extra fields since we collect the UTM parameters automatically for each submitted entries and display them in a metabox.

Starting version 2.0.2, you no longer need to dynamically populate hidden fields to send UTM parameter values to Zapier or other Gravity Forms third-party add-ons.

How to dynamically populate UTM parameters?

This is an example for creating a UTM Source field.

  1. Start by adding a Hidden Field to your Gravity Form.
  2. Set the Field label to UTM Source.
  3. In the “Advanced” tab, check the “Allow field to be populated dynamically”.
  4. Underneath it, set the Parameter Name as afl_wc_utm:utm_source.
  5. Repeat by creating Hidden Fields for other UTM parameters.
Gravity Forms Hidden Field

List of available parameter names

Copy and paste only the parameter names which you are interested into your Hidden Field. Give an appropriate text label for each of the Hidden Field.

== SESSION ==

Conversion Type:
afl_wc_utm:conversion_type

Conversion Lag:
afl_wc_utm:conversion_lag_human

Conversion Lag (seconds):
afl_wc_utm:conversion_lag

Conversion Date:
afl_wc_utm:conversion_date_local
afl_wc_utm:conversion_date_utc
afl_wc_utm:conversion_ts

Visit Date:
afl_wc_utm:sess_visit_date_local
afl_wc_utm:sess_visit_date_utc
afl_wc_utm:sess_visit

Landing Page:
afl_wc_utm:sess_landing
afl_wc_utm:sess_landing_clean

Website Referer:
afl_wc_utm:sess_referer
afl_wc_utm:sess_referer_clean

Google Analytics Client ID:
afl_wc_utm:sess_ga

== UTM CAMPAIGN (FIRST TOUCH) ==

UTM URL:
afl_wc_utm:utm_1st_url
afl_wc_utm:utm_1st_url_clean

Visit Date:
afl_wc_utm:utm_1st_visit_date_local
afl_wc_utm:utm_1st_visit_date_utc
afl_wc_utm:utm_1st_visit

UTM Source: afl_wc_utm:utm_source_1st
UTM Medium: afl_wc_utm:utm_medium_1st
UTM Campaign: afl_wc_utm:utm_campaign_1st
UTM Term: afl_wc_utm:utm_term_1st
UTM Content: afl_wc_utm:utm_content_1st

== UTM CAMPAIGN (LAST TOUCH) ==

UTM URL:
afl_wc_utm:utm_url
afl_wc_utm:utm_url_clean

Visit Date:
afl_wc_utm:utm_visit_date_local
afl_wc_utm:utm_visit_date_utc
afl_wc_utm:utm_visit

UTM Source: afl_wc_utm:utm_source
UTM Medium: afl_wc_utm:utm_medium
UTM Campaign: afl_wc_utm:utm_campaign
UTM Term: afl_wc_utm:utm_term
UTM Content: afl_wc_utm:utm_content

== Google Click Identifier (gclid) ==

URL:
afl_wc_utm:gclid_url
afl_wc_utm:gclid_url_clean

Visit Date:
afl_wc_utm:gclid_visit_date_local
afl_wc_utm:gclid_visit_date_utc
afl_wc_utm:gclid_visit

gclid Value:

afl_wc_utm:gclid_value

== Facebook Click Identifier (fbclid) ==

URL:
afl_wc_utm:fbclid_url
afl_wc_utm:fbclid_url_clean

Visit Date:
afl_wc_utm:fbclid_visit_date_local
afl_wc_utm:fbclid_visit_date_utc
afl_wc_utm:fbclid_visit

fbclid Value:

afl_wc_utm:fbclid_value

== Microsoft / Bing Click Identifier (msclkid) ==

URL:
afl_wc_utm:msclkid_url
afl_wc_utm:msclkid_url_clean

Visit Date:
afl_wc_utm:msclkid_visit_date_local
afl_wc_utm:msclkid_visit_date_utc
afl_wc_utm:msclkid_visit

fbclid Value:

afl_wc_utm:msclkid_value

Warning: Do not send a Gravity Forms Notification to your cusomters with the {all_fields} merge tags because hidden field are also included.

Install our conversion attribution plugin and learn which marketing campaign lead to your sales. .

Comments