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 Ninja Forms with GA Connector’s Ninja Forms integration.


This guide assumes that you’ve already installed the latest version of our WordPress Plugin (at least version 2.4).

Setting up Ninja Forms

1. Edit the form you want to use with GA Connector.

2. Add a hidden field for each GA Connector Field you want to track (e.g. Last Click Channel, Last Click Source, Last Click Medium and Google Analytics CID)

Ninja Forms in WordPress

3. Edit the fields to match the GA Connector Fields that you opt to track. In the Label setting, put the name of the GA Connector Field and in the Default Value put the value that the GA Connector plugin will recognize. (Ex. Label: All Traffic Sources, Default Value: all_traffic_sources)

Please use the Labels and Default Values from the list below:

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_mediumLatitudegaconnector_latitude
First Click Referrergaconnector_fc_referrerLongitudegaconnector_longitude
First Click Sourcegaconnector_fc_sourceNumber of Website Visitsgaconnector_page_visits
First Click Termgaconnector_fc_termOperating Systemgaconnector_OS
Google Analytics CIDgaconnector_GA_Client_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 adds UTM information, geolocation, referral information to your Ninja Form leads.

4. Click Publish once you are done creating the fields you need and Ninja Forms should start tracking the data for GA Connector.

Test your GA Connector fields

1. To test your GA Connector Fields you will need to do a test submission of the form. For a better test result, you can either search for your site on Google Search or by adding custom UTM parameters at the end of your URL before sending the form.

2. After submitting the form, you should be able to see the correct values for the GA Connector Fields we have added to your form in the Submissions Report of Ninja Forms.

Submissions Report of Ninja Forms