How to integrate GA Connector with Zoho Forms

GA Connector works with Zoho Forms in both integration types. The steps are different for each, so start by confirming which one your website uses.

Not sure which instructions to follow? Start here: How to Check Which GA Connector Integration Type You’re Using.

The quick version: view your page source, search for gaconnector.js, and look at the subdomain. tc. or tracker. means Cookie-Based; ta. or track. means API-Based.

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

Prerequisites

  • Installed either the GA Connector WordPress plugin or the GA Connector script on your website.
  • Access to edit your Zoho Forms and your website’s HTML (or your GTM container).

Cookie-Based integration

Install the custom scripts on your website

  1. Add the following GA Connector script on all pages of your website. The script must be placed before your Zoho embed code, so adding it to your website’s <head> would work.
    Note: If you are already using the cookie-based version of GA Connector, you can skip adding this script.
  2. Add the following script after your Zoho Form embed code.

    Note: If you have custom domains set up in Zoho Forms, you’ll need to change the URL on line 15 to your own custom domain.

    Find line 15:
    var zohoIframe = document.querySelectorAll('iframe[src*="forms.zohopublic.com"]');

    Change this to:
    var zohoIframe = document.querySelectorAll('iframe[src*="yourdomainhere.com"]');

Setting up the GA Connector fields on Zoho Forms

On your Zoho Forms builder, add a hidden field for each GA Connector field that you want to track. For a full list of available GA Connector fields, refer to the table at the end of this article.

  1. While on the Zoho form builder, drag a Single Line field to your form to add a field.
  2. Click on the new field that you’ve created and select Properties, and under the Visibility section, select Hide Field.
  3. After creating the hidden fields for each GA Connector field that you want to track, go to Settings > Field Alias.
  4. On the Field Alias page, select the hidden fields that you have just created and add its equivalent GA Connector Input ID as the alias. (Example: All Traffic Sources: all_traffic_sources)

API-Based integration

The API-based version doesn’t use hidden fields. Instead, Zoho Forms passes the submitted email address to GA Connector, which matches it with the visitor’s tracking data on our servers and syncs it to your CRM.

Step 1: Enable PostMessage tracking in Zoho Forms

  1. Open your form in Zoho Forms and click Edit.
  2. Go to Share > Google Tag Manager & Custom Tracking.
  3. Under PostMessage Tracking, enable Submit Form and select Configure Website Data Push.
  4. Find your form’s email field and map it to the Field Alias zf_email.
  5. Click Save.
  6. Repeat for all of your forms.

Use the same alias on every form.

The script below looks for the alias zf_email. If you use a different alias on a form, that submission won’t be identified.

Step 2: Replace your GA Connector script

Replace your current GA Connector script with the following, on all pages of your website:

Set your account ID.

Replace YOUR GA CONNECTOR ACCOUNT ID with your own GA Connector account ID. You can find it in your GA Connector account. If you haven’t received yours yet, please email [email protected].

Keep your existing tracking subdomain.

If your current script loads gaconnector.js from ta.gaconnector.com instead of track.gaconnector.com, keep the subdomain you’re already using and only add the third script block.

The GA Connector script must be placed on every page of your website, ideally in the <head> or at the very beginning of the <body> tag, so visitors are tracked from their first page view.

Checking that it works

  1. Open a page with your embedded Zoho form and submit a test entry with an email address you can recognize.
  2. In your browser’s developer tools, open the Network tab and confirm a request is sent to the GA Connector tracking domain on submit.
  3. Check the matching record in your CRM. API-based tracking data syncs with a 15–30 minute delay, so give it some time before checking.

Still stuck?

If submissions aren’t being identified, contact our support team and include the page where your form is embedded so we can take a look.


More than just UTM parameters

GA Connector adds UTM information, geolocation, referral information to your Zoho Forms 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. (The Input IDs below are the field aliases used by the Cookie-Based integration.)

LabelInput IDLabelInput ID
All Traffic Sources all_traffic_sourcesLast Click Campaignlc_campaign
BrowserbrowserLast Click Channellc_channel
City (from IP address)cityLast Click Contentlc_content
Country (from IP address)countryLast Click Landing Pagelc_landing
First Click Campaignfc_campaignLast Click Mediumlc_medium
First Click Channelfc_channelLast Click Referrerlc_referrer
First Click Contentfc_contentLast Click Sourcelc_source
First Click Landing Pagefc_landingLast Click Termlc_term
First Click Medium fc_mediumLast Click Timestamplc_timestamp
First Click Referrerfc_referrerLongitudelongitude
First Click Sourcefc_sourceLatitudelatitude
First Click Termfc_termNumber of Website Visitspage_visits
First Click Timestampfc_timestampOperating SystemOS
Google Analytics CIDGA_Client_IDDevicedevice
Google Analytics Measurement IDGA_Measurement_IDRegionregion
Google Analytics Session IDGA_Session_IDPages Visited pages_visited_list
Google Click IdentifiergclidTime Spent on Website time_passed
IP Addressip_addressTime Zone time_zone