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 Salesforce web-to-lead with GA Connector’s Salesforce integration.

For the GA Connector Fields are able to work, you are expected to have already implemented the GA Connector Tracking Script on your website as it is outlined in this article.

How it works

Once you implement the GA Connector Field Extension to your SalesForce, you will then be able to track user behavior data via a Web-to-Lead form. You will be able to see the bigger picture of where and how your users are reaching you.

GA connector Fields will show you information such as First Click Data, Last Click Data and other miscellaneous information you may need in knowing more about your end customers. The fields listed below are what GA Connector can track for you.

List of fields from our Basic Integration Package
List of fields from our Basic Integration Package

How to implement GA Connector Fields to your Web-to-Lead forms:

1. Install this package on your Salesforce org.

2. You can then go to your Salesforce account, click on the Setup, look for the “Web-to-Lead” option and then Create Web-to-Lead Form.

Salesforce web-to-lead

3. Find the custom fields included in the package you just installed in the “Available fields” section. Then, move all of them to “Selected Fields” using the arrow buttons between these sections:

Salesforce web-to-lead setup

4. Click “Generate”, and Salesforce will create a new Web-to-Lead form for you and provide you with the HTML code that you need to implement on your website page.

Editing the code

Before you ask, you don’t need to replace your existing forms with this new form.

You just need to:
1. Locate the GA Connector fields from this new form

Salesforce web-to-lead code

2. Put the codes in the existing form in your page right below the existing input field codes.

Salesforce web-to-lead code 2

3. You will then have to omit the beginning of these codes until the “id” attribute

Salesforce web-to-lead code 3

4. And replace them with the GA Connector id attributes.

Salesforce web-to-lead code 5


More than just UTM parameters

GA Connector adds UTM information, geolocation, referral information to your Salesforce leads.

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.

You just have to copy and paste the pre-generated codes below for each GA connector field you will be using.


Then put it inside your Web-to-Lead form, just above the closing </form> tag:

Salesforce web-to-lead code

Once you complete these steps, you can now capture the values of the GA Connector Fields in your Salesforce Leads.

Salesforce leads