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.

This instruction assumes that you have already installed either GA Connector WordPress plugin, or GA Connector script:

 

Now that you’ve installed our script, you need to make modification to your forms. There are two methods of integrating your forms with GA Connector:

Integration Method #1

Step 1: Add hidden fields with specific names to your forms

GA Connector script will automatically fill them out with users’ source, medium, keywords, location etc. Names of these fields help GA Connector script understand where to put the values.

Here is the list of fields you need to add to your forms:

Each hidden field needs to have a distinct attribute that would allow the script to understand which field is which. In the example above, it’s id.

But it can also be a name:

Or class:


Note:
If your form doesn’t allow you to modify its ID, name, or class attribute, you can integrate your form with GA Connector using default values instead. Read More.

Step 2: Connect your new hidden fields to CRM fields

Now that you’ve added hidden fields to your forms, GA Connector script will automatically fill them out with tracking data.

The final step is to connect these hidden fields with your CRM fields. You need to modify the code that sends data to your CRM, and make it so that it also sends these new hidden fields (alongside your users’ email, name etc).

Integration Method #2

You can also integrate your forms without adding hidden fields, if your forms allow you to edit the code that submits them.

In that case, you can do it on the server side, using PHP, C#, Python or another language you use on the server. You can write some code that appends cookie values from screenshot 1 to the form submission, before sending it to the CRM.

Something like this:

More than just UTM parameters

GA Connector adds UTM information, geolocation, referral information to your custom forms.

See below for all the information that you can add to your leads to help you find out which of your marketing activities drive sales.

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
Regiongaconnector_regionDevicegaconnector_device