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.

Prerequisites

  • Installed either GA Connector WordPress plugin or GA Connector script on your website:
  • GA Connector script must be loaded before your Typeform script. Putting the GA Connector script on the <head> of your website would work.

Add Hidden Fields to your Typeform

  1. While on your Typeform workspace, click on a typeform to edit it
  2.  Click on the Add new question button and click the Hidden Fields icon on the bottom of the selection.
  3. This will open a new field at the top of your typeform where you can type and add Hidden Fields
  4. In this field, you need to add the ID of the GA Connector field that you want to track and press enter. (E.g. If you want to track Last Click Source, you need to input lc_source). For the full list of GA Connector fields that you can track and their respective IDs, refer to the table below.
    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_mediumLatitudelatitude
    First Click Referrerfc_referrerLongitudelongitude
    First Click Sourcefc_sourceNumber of Website Visitspage_visits
    First Click Termfc_termOperating SystemOS
    Google Analytics CIDGA_Client_IDPages Visited pages_visited_list
    Google Click IdentifiergclidTime Spent on Website time_passed
    IP Addressip_addressTime Zone time_zone
    RegionregionDevicedevice

    You can add all of these fields or choose only what you need.

Embedding your Typeform to your website

Instead of using the default Typeform embed code, use the custom embed code below to add GA Connector data to your hidden fields once users have submitted your Typeform on your website

Note: On line 1 of the embed code above,  replace the value of data-url=”—PASTE-YOUR-TYPEFORM-URL-HERE—” to the URL of your Typeform.

You can find the URL of your Typeform by clicking on the “Share” tab while editing your Typeform.