If you're integrating with Salesforce or Zoho CRM, this article may not apply because you're most likely using GA Connector API-based integration.

Add Google Analytics data to Gravity Forms with GA Connector’s Gravity Forms integration.

GA Connector has a WordPress plugin, which allows to skip several steps and integrate Gravity Forms without writing a single line of code.

Here is how to install and configure this plugin:

1. Download the plugin here.

2. Go to your WordPress admin panel – Plugins – Add New.

Add new plugin

3. Click “Upload Plugin”

Gravity forms plugin

4. Choose file ga-connector-wordpress-plugin.zip (downloaded during step #1) and click “Install now”.

GA Connector plugin

5. Click “Activate Plugin”.

Gravity forms Activate plugin

6. Click Forms – Forms in your WordPress admin panel menu.

Gravity form forms 1

7. Find and click on the form that you want to start tracking.

Gravity form forms

8. Now we need to add hidden fields that will store the tracking information about your leads.

To add a hidden field, click “Hidden” on the top right:

9. Now we need to add hidden fields that will store the tracking information about your leads. Refer to the table below. You can add only what you need.

LabelInput IDLabelInput ID
All Traffic Sources gaconnector_all_traffic_sourcesLast Click Campaigngaconnector_lc_campaign
Browsergaconnector_browserLast Click Channelgaconnector_lc_channel
City (from IP address)gaconnector_cityLast Click Contentgaconnector_lc_content
Country (from IP address)gaconnector_countryLast Click Landing Pagegaconnector_lc_landing
First Click Campaigngaconnector_fc_campaignLast Click Mediumgaconnector_lc_medium
First Click Channelgaconnector_fc_channelLast Click Referrergaconnector_lc_referrer
First Click Contentgaconnector_fc_contentLast Click Sourcegaconnector_lc_source
First Click Landing Pagegaconnector_fc_landingLast Click Termgaconnector_lc_term
First Click Medium gaconnector_fc_mediumLast Click Timestampgaconnector_lc_timestamp
First Click Referrergaconnector_fc_referrerLongitudegaconnector_longitude
First Click Sourcegaconnector_fc_sourceLatitudegaconnector_latitude
First Click Termgaconnector_fc_termNumber of Website Visitsgaconnector_page_visits
First Click Timestampgaconnector_fc_timestampOperating Systemgaconnector_OS
Google Analytics CIDgaconnector_GA_Client_IDDevicegaconnector_device
Google Analytics Measurement IDgaconnector_GA_Measurement_IDRegiongaconnector_region
Google Analytics Session IDgaconnector_GA_Session_IDPages Visited gaconnector_pages_visited_list
Google Click Identifiergaconnector_gclidTime Spent on Website gaconnector_time_passed
IP Addressgaconnector_ip_addressTime Zone gaconnector_time_zone

GA Connector is able to add UTM information, geolocation, referral information to your Gravity Forms submissions.

10. Set the hidden field’s Label to the GA Connector Label and the Default Value to the appropriate GA Connector ID

11. Update your form after adding all the hidden field you need.

Viola! Now your form is being tracked! Your Gravity Forms entries should contain the tracking information about your visitors inside the fields you just created:

Gravity forms hidden fields

Here is how you can use these fields:

  • Send them to your CRM as a part of the form submission (see this instruction for Zoho CRM)
  • Send them to your email marketing software.
  • Add them to the email that is being sent after each form submission.