How to Connect Salesforce With Google AdWords Account


The purpose of integration is to help the clients experience the functionality of two platforms on one single stage. It can also be perceived as a procedure in which you can combine the forces for two different platforms to create a single platform that is far more powerful than the two platforms were individual.

Google AdWords is an advertising tool that focuses on a cost-per-click model of paying for ads. AdWords tracks data on the performance of ads and ad campaigns, which can provide insights on if the budget for your ads is reflective of the value they bring to your company.

Google AdWords is a publicizing device that spotlights on an expense for a cost-per-click model of paying for promotions. AdWords tracks information on the execution of advertisements and promotion campaigns, which can give bits of knowledge on things such as whether the financial plan for your advertisements is reflecting the value they convey to your organization or not.

Salesforce is a CRM benefit that gives access to a wide range of valuable information by logging and collecting client collaborations, paying little respect to where they happen. Regardless of whether it’s a telephone call, a site exchange, or a post via web-based networking media, Salesforce can offer instant client information, which takes into consideration quicker, more educated choices when maintaining a business.

Today, let us see how can you join the forces of these two powerful platforms. The blog has been divided into the following two parts-

Pre-requisites of Salesforce and Google AdWords Integration

To use this feature, you’ll need to meet the following requirements:

  • Have the capacity to sign in to a Salesforce Sales Cloud account, utilizing a login with fitting consents. For the most effortless setup, consider utilizing a record with System Administrator consents, expecting your default access settings haven’t been changed.
  • Have auto-tagging empowered in your Google Ads account(s)?
  • Have the capacity to alter your site code. You or your website admin should alter your code to catch the Google click ID (GCLID).
  • Have the capacity to roll out improvements in your Salesforce account, including making custom fields and empowering field history tracking features.
  • Have a click-to-conversion cycle that is less than 90 days. Conversions uploaded more than 90 days after the associated last click will not be imported by Google Ads and will therefore not show up in your conversion statistics.
  • Have a click-to-conversion cycle that is set for less than 90 days. Conversions transferred after 90 days after the related last snap won’t be imported by Google Ads and will along these lines not appear in your conversion stats.
  • Utilize Salesforce’s web-to-lead feature, or another answer to transmit lead data from your site to Salesforce. 
Related Post:  How to Integrate Salesforce with Drupal 8 Website

Steps to Connect Salesforce with Google AdWords

The Integration of Salesforce and Google AdWords happens in three major steps and the details of those steps are listed here-

Step 1: Salesforce Configuration

Opportunity Object Configuration

  1. Go to the Opportunity object in your Salesforce account.
  1. Make another custom field named “GCLID”
  2. Create a descriptive label for the field, and extend the length to 255 characters.
  3. Ensure that “Set History Tracking” is empowered for the “Stage” field.

Lead Object Configuration

  1. Visit your Lead Object
  2. Use the above-mentioned steps to create another custom field with the same parameters.
  3. Choose “Map Lead Fields,” and the set the mapping of the Lead.GCLID to the Opportunity.GCLID field
  4. Choose the “Save.” option

Step 2: Setting Up Your Website

This progression will enable your site to spare the Google Click ID (“GCLID”) as a cookie and after that convey that value to your new GCLID Salesforce field.

Utilize the accompanying Google-provided JavaScript in the head area on any pages that have Salesforce lead forms on them.

<script type=”text/javascript”>
function setCookie(name, value, days){
var date = new Date();
date.setTime(date.getTime() + (days*24*60*60*1000));
var expires = “; expires=” + date.toGMTString();
document.cookie = name + “=” + value + expires;
function getParam(p){
var match = RegExp(‘[?&]’ + p + ‘=([^&]*)’).exec(;
return match && decodeURIComponent(match[1].replace(/\+/g, ‘ ‘));
var gclid = getParam(‘gclid’);
var gclsrc = getParam(‘gclsrc’);
if(!gclsrc || gclsrc.indexOf(‘aw’) !== -1){
setCookie(‘gclid’, gclid, 90);

It is recommended to add this JavaScript code to each site page.

Related Post:  How Does Integrating Salesforce with Google AdWords Help?

Create your Salesforce Web-to-Lead Form

  1. Hop back to Salesforce and go to the web-to-lead section and then set up your forms
  2. Ensure that you have included the GCLID lead field in the form
  3. Search for the HTML code GCLID: and erase the max length and size labels.
  4. Edit the field compose so it is “hidden” as opposed to “text.” This will ensure that the field does not appear on the form and is hidden from the user
  1. <input id=”xxxx” name=”xxxx” type=”hidden” />
  1. Copy and paste this code in the middle of the FORM HTML (<form)>… </form>) labels on your web forms.
  2. Every site page that has a Salesforce web-to-lead form should likewise incorporate this JavaScript between the <head> labels.

Step 3: Configuring Your Google AdWords Account

  1. Select any boxes in the Milestones segment identifying with pertinent lead and opportunity choices that ought to be tracked as conversions.
  2. Go to the Conversion segment and pick these leads and openings from the menu.
  3. Choose “Create a conversion” and name it.
  4. Click on “Done.”
  5. Next, you will go to “Value”, “Count” and “Conversion Windows” to arrange these fields for your business channel.
  6. Choose “Create” and pick the best import plan for your group.
  7. Save your progressions.


Google AdWords campaigns are an intense instrument for keeping your pipeline loaded up with leads and openings. But, you can’t enhance your paid-promoting endeavors on the off chance that you don’t know where the prospects originate from. Associating your Salesforce account with your Google AdWords conveys clear attribution, so you are able to comprehend what watchwords and campaigns your prospects are originating from. I am sure the steps listed above would surely help you in associating these two platforms.

Write a Comment

Notify of

Download & Learn from Our Whitepapers

Stop, read and acquire deep insights into complex issues