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

Creating GA Connector custom fields/properties in Hubspot

If you haven’t created custom properties yet for GA Connector in Hubspot, follow the steps below on how to add them.

  1. While on your Hubspot Dashboard, go to Settings > Properties > Create Property
  2. Using the table below as a guide, add the GA Connector label as the label and click on the “code” icon beside the label field to add the equivalent input_id as Internal name (e.g. All Traffic Sources – all_traffic_sources).  You can use Single-Line text as Field type for all GA Connector fields.
  3. Repeat for all GA Connector fields that you need to track.

 

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

Setting up your form

  1. Add the GA Connector properties you’ve created to your form and make the field hidden
  2. After adding all the GA Connector properties you need, hit Update

Embedding your form to your Website

Instead of using the default embed code that Hubspot has provided. You will need to use the code below:

Note: Replace the region, portalId, and formId on lines 4, 5 & 6 with your own. You can find these details on the default embed code that Hubspot provided.