Google Ads is used to bring in new customers for businesses & Salesforce’s Sales Cloud is used to track when new leads turn into paying customers. But ever wondered how we can connect these two to combine the power and gain maximum benefits? This article explains just that!
By integrating Salesforce and Google Ads, we can import our conversions from Salesforce's Sales Cloud into Google Ads which in turn helps with measuring how our online Google Ads investments are generating offline revenue. This metric can then be used to drive the right kind of traffic for our business.
- Prerequisites for the Integration
- Be able to sign in to a Salesforce Sales Cloud account, using a login with System Administrator permissions.
- Auto-tagging should be enabled in the Google Ads account.
- Be able to edit your website code to capture the Google click ID (GCLID).
- The click-to-conversion cycle should be less than 90 days. Conversions that are uploaded more than 90 days after the associated last click are not imported by Google Ads and they do not show up in conversion statistics.
Auto Tagging
Auto-tagging is a required feature, which when used with Google Ads conversion tracking, allows you to see how effectively your ad clicks lead to valuable customer activity, such as website purchases, phone calls, app downloads, and more.
- Auto-tagging is turned off by default. To turn it on, follow the steps below.
- Sign in to your Google Ads account.
- In the left page menu, click Settings > Account Settings > Auto-tagging
- Check the box “Tag the URL that people click through from my ad” and Save.
Steps for Google Ads Conversion Import for Salesforce
Step 1: Configure your Salesforce account
- Update the Opportunity object with the following changes:
- Create a custom field with the Name "GCLID". Length should be 255 characters.
- The field should be read-only so the users don't accidentally alter it.
- Field history tracking for the field "Stage" should be enabled.
- Update the Lead object with the following changes:
- Create a custom field with the Name "GCLID". Length should be 255 characters.
- The field should be read-only so the users don't accidentally alter it.
- Field history tracking for the field "Lead Status" should be enabled.
- Map the new fields: Lead.GCLID field ~ Opportunity. GCLID field.
Step 2: Adjust your Salesforce web-to-lead form
- Create Web to lead form
- Setup > Enter Web-to-Lead in the Quick Find box. Select Web-to-Lead.
- Click Edit to enable/change Web-to-Lead settings.
- Optionally, you can specify a ”Default Lead Creator”. When a lead is created online, this user will be listed as Creator. Click Save.
- Create a form to capture prospect details on the website: Click Create Web-to-Lead Form > Select fields to be displayed on the form. Make sure to include the GCLID lead field that will capture the value of Google click Id.
- Specify the URL to which the users will be directed once they submit the information. Click Generate.
- Copy the generated HTML code and include it in the website and then click Finished.
- To store the GCLID with your lead's information, we need to modify the web-to-lead submission form so all new leads include the GCLID value. Here’s how this can be done:
- Make the "GCLID" field that we included in Web to Lead as a 'hidden' field.
- Note the new GCLID input field's ID, as this is needed for the next step where we implement the JavaScript on the site.
- Take this new form HTML code and update the existing forms. This means that the forms will now pass the GCLID value along with the lead's information into Sales Cloud. Note: The web-to-lead form needs to be located in the same domain as the rest of the web pages, so the JavaScript can properly transfer the GCLID value to the form.
Step 3: Edit the website to collect and save the click ID in a cookie
Google Ads will append a URL parameter, "gclid", to the URL that takes to your landing page, whenever a visitor clicks on your ad. The site needs to capture and store this parameter's value so it can retrieve it later when a prospective customer enters data into the lead form.
This can be done by embedding the following JavaScript code just before the closing