Salesforce · Google Ads · Conversion Tracking

Salesforce and Google Ads Integration: How to Import Offline Conversions

Google Ads can see the form fill. Salesforce knows which of those leads qualified and which became revenue. This guide shows how to connect the two the current way: Google Ads Data Manager, click ID capture, enhanced conversions for leads, consent and the funnel stages worth sending back.

Ad ?gclid=… GCLID (hidden) Lead Opportunity Offline conversions

Key Takeaways

  • The Salesforce Google Ads integration sends lead and opportunity milestones from Salesforce back to Google Ads as offline conversions, so campaigns are measured on qualified pipeline and revenue, not on form fills.
  • Google retired its legacy Salesforce import on May 31, 2025. Connections now run through Google Ads Data Manager, with one Salesforce object (Lead, Opportunity or Order) per connection.
  • Google now recommends enhanced conversions for leads, which matches hashed email or phone, and still asks you to send the GCLID whenever you have it. Doing both is the safest setup.
  • The Salesforce side needs API access, a GCLID field on Lead and Opportunity mapped for lead conversion, and field history tracking on Lead Status and Opportunity Stage.
  • Conversions must arrive within 90 days of the click for GCLID matches and 63 days for enhanced conversions for leads, so long sales cycles need an early-stage conversion too.

What is the Salesforce Google Ads integration? It is the connection that imports Salesforce lead and opportunity milestones into Google Ads as offline conversions. When someone clicks an ad and submits a form, the lead is stored in Salesforce with the ad click ID and contact details. As the lead qualifies and the opportunity progresses, Google Ads receives those milestones and credits the campaign, ad group and keyword that started them.

We first published this guide in 2022, when it was called "Integration of Salesforce with Google AdWords". Most of that setup no longer applies: Google has moved Salesforce connections to Data Manager, renamed the menus, and made hashed first-party data the recommended matching method. This version is rebuilt from Google's and Salesforce's current documentation. It is written for marketing, sales operations and RevOps leaders at growing and mid-market companies that run Google Ads into Salesforce, and for the admins who will configure it.

Section 01 · Short Answer

Why Connect Salesforce to Google Ads at All?

Because Google Ads only sees what happens on your website, and in B2B and considered purchases the website conversion is the cheapest, least reliable signal. A form fill says nothing about whether the lead was a fit. Salesforce does. Importing Salesforce milestones lets Google Ads report, and if you choose, bid, on the outcomes your sales team actually cares about.

Measure pipeline, not form fills

See which campaigns, ad groups and keywords produce qualified leads, opportunities and closed-won revenue in Salesforce, not just submissions.

Give bidding a better target

Smart Bidding optimizes toward the conversion actions you mark as primary. A qualified-lead or opportunity conversion is a better target than a raw form fill.

Attach real value

Map a Salesforce field such as Opportunity Amount to the conversion value, so reports show revenue by campaign instead of a count of one per lead.

Section 02 · What Changed

What Has Changed in the Google Ads Salesforce Integration Since 2022?

The connector itself was replaced. Google ended support for its legacy Salesforce integration on May 31, 2025 and moved Salesforce imports to Google Ads Data Manager. Existing conversion actions were migrated automatically to "Google Ads Conversion Import for Salesforce". If you followed a guide written before 2025, including our original one, the menus, the structure and the recommended matching method have all changed.

TopicLegacy setup (2022 guides)Current setup (2026)
Where Salesforce is connectedTools & Settings > Setup > Linked accountsTools > Data manager > Connected products
Creating the conversion actionTools & Settings > Conversions > + > Import > SalesforceGoals > Conversions > Summary > + Create conversion action > Import > "CRMs, files, or other data sources"
Objects per conversion actionLead and Opportunity could feed one actionOne connection per object: Lead, Opportunity or Order
Matching methodGCLID onlyEnhanced conversions for leads (hashed email or phone), plus GCLID where available
Event definitionLead statuses and opportunity stagesEvent conditions on picklist fields, including custom fields, with in-tool field mapping and hashing
Auto-tagging settingSettings > Account settingsAdmin > Account settings > Auto-tagging
Developer routeGoogle Ads API click conversion uploadsData Manager API; since June 15, 2026 the Google Ads API blocks new offline conversion uploads for developer tokens that were not already sending them

Google's migration notice also gives a quick test: if "Salesforce" still appears as its own entry in the import source list, or as a "Salesforce" tab under Goals > Conversions, you are looking at the legacy integration.

Section 03 · How It Works

How Does Google Ads Offline Conversion Tracking with Salesforce Work?

A click identifier or the lead's own contact details travel with the lead from the ad into Salesforce, and back to Google Ads when the lead reaches a milestone. Google then matches the imported event to the original click and credits the campaign that drove it. Five steps make up the loop.

1. The ad click is tagged.
→ With auto-tagging on, Google Ads adds a gclid (Google Click Identifier) parameter to the landing page URL, for example example.com/?gclid=123xyz.
2. Your website keeps the click ID.
→ A small script stores the GCLID for up to 90 days and writes it into a hidden field on your lead forms, even if the visitor converts on a later page or visit. With enhanced conversions, the Google tag also sends a hashed copy of the email or phone number entered in the form.
3. Salesforce stores it on the lead.
→ Web-to-Lead or your form tool creates the lead with the GCLID in a custom field. Lead field mapping copies it to the opportunity when the lead converts.
4. The lead progresses in Salesforce.
→ Each time a Lead Status or Opportunity Stage value changes and meets the event conditions you defined, Google Ads treats it as a conversion. Field history tracking provides the record of those changes.
5. Data Manager imports the milestones.
→ On a schedule, Google reads the changed records, matches them by GCLID or hashed email and phone, and reports them against the original click. It does not retrieve data that names the person or business, such as the Lead or Opportunity Name.
Diagram of the GCLID flow: a Google ad click passes a gclid parameter to the website, the website form sends the gclid into a Salesforce lead, and the lead passes it on to the opportunity
The click ID's journey: ad click, website, Salesforce lead, then opportunity.
Section 04 · Methods

GCLID Import or Enhanced Conversions for Leads: Which Should You Use?

Use enhanced conversions for leads and keep sending the GCLID. Google now describes GCLID-only offline import as a legacy feature and recommends that new advertisers start with enhanced conversions for leads, while still including GCLIDs whenever they are available. Google reports a median 10% increase in conversions for advertisers who sent first-party data alongside GCLIDs, compared with standard offline import.

GCLID-based importEnhanced conversions for leads
Match keyThe click ID stored on the Salesforce recordEmail and/or phone, normalized and hashed with SHA-256
Website requirementScript that captures the GCLID into a hidden form fieldGoogle tag or Google Tag Manager sitewide, with email or phone on the lead form
Salesforce requirementCustom GCLID field on Lead and OpportunityEmail or phone on the record; Data Manager can hash it for you
Upload windowWithin 90 days of the clickWithin 63 days of the click
Google's statusLegacy, but still recommended as an extra keyRecommended
Typical gapGCLID lost through redirects, other domains or forms that skip the hidden fieldNeeds consent to send user data, and an identifier on the form

Two 2026 changes make this simpler. Since April 2026 Google Ads accepts user-provided data from website tags, Data Manager and API connections at the same time, and since June 2026 enhanced conversions for web and for leads are a single on/off setting under Goals > Settings > Customer data use (Google's announcement).

Section 05 · Prerequisites

What Do You Need Before Connecting Salesforce to Google Ads?

API access in Salesforce, an admin who can create fields and turn on field history tracking, auto-tagging in Google Ads, and a website form that writes leads into Salesforce. Check the edition first, because it is the one requirement you cannot configure your way around.

  • A Salesforce edition with API access. Data Manager needs the Salesforce API enabled for the account you connect. Salesforce documents API access by default in Enterprise, Unlimited, Performance and Developer editions. Professional Edition can buy it as an add-on. Group and Essentials cannot add it.
  • A production org. Data Manager does not import from Salesforce sandboxes, so plan to test in production with a test lead.
  • The right login. The Salesforce credential needs the minimum permissions Google lists; Google suggests a System Administrator login for the simplest setup. Use a dedicated integration user where your security policy allows it, so the connection does not break when a person leaves.
  • Auto-tagging on in Google Ads. Google requires it for offline conversion tracking. It is on by default for new accounts.
  • A lead capture path. Web-to-Lead (up to 500 leads a day) or a form tool, landing page builder or marketing automation platform that creates Salesforce leads.
  • The right Google Ads account. If you use cross-account conversion tracking from a manager account, link Salesforce to the manager account.
  • Consent and policy. A consent approach for your markets, and acceptance of Google's EU user consent policy and customer data policies during setup (see Section 08).
Section 06 · Setup

How Do You Set Up the Salesforce Google Ads Integration Step by Step?

Prepare Salesforce first, then the website, then Google Ads, then test with a real record. Doing it in this order means the first scheduled import already finds GCLIDs and history on new leads. Remember that field history only starts when you switch it on, so earlier status changes cannot be imported later.

Part 1: Prepare Salesforce

1. Create the GCLID fields.
→ In Object Manager, add a custom text field called GCLID on Lead and another on Opportunity. Google requires the field for GCLID matching but does not prescribe a length or API name. We use a 255-character text field, hidden from page layouts or read-only, so nobody edits it by hand.
2. Map the field for lead conversion.
→ In Object Manager > Lead > Fields & Relationships > Map Lead Fields, map Lead.GCLID to Opportunity.GCLID. Without this, the click ID stops at the lead and opportunity-stage conversions cannot be matched by GCLID.
3. Turn on field history tracking.
→ Track Lead Status on Lead and Stage on Opportunity, plus any other picklist you plan to use in event conditions. Google reads the Lead Status History and Opportunity Stage History. Salesforce keeps field history for 18 months without Field Audit Trail.
4. Agree the statuses and stages.
→ Decide which Lead Status and Opportunity Stage values count as conversions (see Section 07) and make sure sales actually uses them in order.

Part 2: Capture the click ID and contact data on your website

5. Add a hidden field to every lead form.
→ For Web-to-Lead, regenerate the form HTML after creating the field, then change the GCLID input to type="hidden" and keep the name Salesforce generated. For other form tools, add a hidden field mapped to Lead.GCLID.
6. Add the capture script to every page.
→ The script reads the gclid parameter, stores it for 90 days, and fills the hidden field when a form appears. Run it sitewide, before </body> or as a Google Tag Manager Custom HTML tag on All Pages, and only after consent where your cookie rules require it.
Example: store the GCLID and fill the hidden field
<!-- In the form: the hidden GCLID input (keep the name Salesforce generated) -->
<input type="hidden" id="gclid_field" name="YOUR_GCLID_FIELD_NAME" value="">

<!-- On every page, before </body> -->
<script>
(function () {
  var KEY = 'gclid', DAYS = 90;
  var params = new URLSearchParams(window.location.search);
  var gclid = params.get('gclid');
  var src = params.get('gclsrc');
  if (gclid && (!src || src.indexOf('aw') !== -1)) {
    localStorage.setItem(KEY, JSON.stringify({
      value: gclid,
      expires: Date.now() + DAYS * 86400000
    }));
  }
  var saved = JSON.parse(localStorage.getItem(KEY) || 'null');
  var field = document.getElementById('gclid_field');
  if (saved && saved.expires > Date.now() && field) {
    field.value = saved.value;
  }
})();
</script>

This replaces the cookie snippet in our 2022 post, which no longer ran as published and never wrote the value into the form. The GCLID is case-sensitive, so never change its case, and if your site redirects, make sure the parameter survives to the final landing page. Google's offline conversion setup guide has its own version of the script, including a Tag Manager variant.

7. Turn on enhanced conversions.
→ Make sure the Google tag or Google Tag Manager runs sitewide and the form collects email (preferred) or phone with country code. Then in Google Ads go to Goals > Settings > Customer data use, select "Turn on enhanced conversions", and agree to the customer data terms.

Part 3: Connect Google Ads to Salesforce

8. Confirm auto-tagging.
→ Admin > Account settings > Auto-tagging > tick "Tag the URL that people click through from my ad" > Save.
9. Create the import conversion action.
→ Goals > Conversions > Summary > + Create conversion action > Import > "CRMs, files, or other data sources" > "Track conversions from clicks". Choose Connect a new data source, pick Salesforce as a direct connection, accept the consent and customer data policies, and sign in to Salesforce.
10. Choose the object and define the event.
→ Select Lead, Opportunity or Order. Each connection reads one object, so a lead milestone and an opportunity milestone are separate conversion actions. Set event conditions on the status or stage picklist, map the GCLID, email and phone fields (letting Data Manager hash email and phone), and map a value field such as Opportunity Amount. With nothing mapped, each conversion is worth one.
11. Schedule the import.
→ Google recommends a daily schedule. The first run looks back only 14 days; later runs import every change since the last successful run. Wait 4–6 hours after creating a new conversion action before the first import.
12. Set primary and secondary actions.
→ Mark the conversion you want bidding to pursue as primary and the rest as secondary (observation only). Google calls this setting critical, because Smart Bidding optimizes for whatever is in the Conversions column.

Part 4: Test and monitor

13. Push a test lead through.
→ Visit your site with ?gclid=TEST_GCLID_123 on the URL (no quotes), submit the form, and confirm the lead in Salesforce carries the value. Convert it and check the opportunity has it too. Test values will not match a real click in Google Ads, so this proves the Salesforce side only.
14. Read the import history.
→ In Goals > Conversions > Settings > View data integration, check "Rows imported" and "Rows with errors". Reporting can take up to 24 hours after a successful import. Events that fail are not retried automatically, so review this after every change.

Already on the old connector? Your actions were migrated automatically. Open each one under Goals > Conversions > Summary > Data integration > Manage to review the schedule, field mapping and event conditions, and add email and phone mapping to switch on enhanced conversions for leads. Migrated opportunity connections keep Expected Revenue; lead connections do not support it.

Section 07 · Funnel Stages

Which Salesforce Stages Should You Import as Google Ads Conversions?

Import two to four milestones, from an early qualified stage to closed-won, and make the earliest stage that still reflects quality your primary bidding goal. Google advises lead-generation advertisers to use qualified or converted lead goals. Closed-won is the truest signal but often arrives too late, or too rarely, to train bidding on its own.

MilestoneSalesforce sourceSuggested roleValue
Marketing qualifiedLead connection, Lead Status = your MQL valueSecondary or primary for short-volume accountsFixed estimate
Sales qualifiedLead connection, Lead Status = your SQL valuePrimary for most B2B accountsFixed estimate
Opportunity created or proposalOpportunity connection, Stage = your early stageSecondaryAmount or Expected Revenue
Closed wonOpportunity connection, Stage = Closed WonSecondary; primary only with enough volume inside the windowOpportunity Amount

Three rules make the stage data trustworthy. Each change that meets the event conditions records a conversion, and a record can import more than once, so pick conditions that match one moment in the funnel. Statuses that sales skips are never recorded, so a lead that jumps from new to proposal never counts as "sales qualified". And anything that closes more than 90 days after the click (63 days with enhanced conversions for leads) is not imported, which is why long sales cycles need an earlier milestone.

Section 09 · Other Options

What Other Ways Can Salesforce Connect to Google Ads?

Conversion import is one of four connections, and each answers a different question. Conversion import tells Google Ads which clicks became pipeline. Cost import tells Salesforce what that pipeline cost. Audience activation sends Salesforce segments to Google Ads for targeting. A custom API build covers whatever the native connector cannot.

OptionDirectionWhat it doesWorth knowing
Google Ads Data Manager: Salesforce importSalesforce → Google AdsOffline conversions and enhanced conversions for leads from Lead, Opportunity or OrderNo sandbox support; does not support Customer Match from Salesforce via direct connection
Account Engagement Google Ads connectorGoogle Ads → Account EngagementTracks prospects from paid search and ties Google Ads cost data to Salesforce opportunities for cost per qualified lead and ROIPlus, Advanced and Premium editions; with auto-tagging on, campaign, source and medium need manually added UTM parameters
Data 360 (formerly Data Cloud) Advertising AudiencesSalesforce → Google AdsActivates Data 360 segments to Google Ads as Customer Match audiencesAdd-on licence; EEA users need ad_user_data and ad_personalization granted; Google's Customer Match eligibility rules apply
Data Manager API or an iPaaS buildEitherCustom uploads from Salesforce data through Flow, MuleSoft, Workato, Zapier or codeThe Google Ads API route for offline conversions is closed to new adopters; build on the Data Manager API

Two notes for teams on Salesforce's marketing products. Salesforce is retiring Marketing Cloud Advertising Studio: subscriptions cannot be renewed from August 15, 2026, and Salesforce recommends Data Cloud Ad Audiences instead. Its Lead Capture apps, which bring Google and Meta lead form submissions into Salesforce, are not affected. And for Customer Match targeting, Google's policy requires 90 days of account history and more than USD 50,000 lifetime spend; every policy-compliant account can use lists for observation and exclusions.

Section 10 · Pitfalls

Why Are Salesforce Conversions Not Showing in Google Ads?

Usually the click ID never reached Salesforce, the history needed to detect the milestone was missing, or the event fell outside the upload window. Check the import history's "Rows with errors" first, then work through this list.

The GCLID is lost on the way. Redirects strip the parameter, the form sits on another domain, or one form lacks the hidden field. Test every form, not just the main one.
The opportunity has no GCLID. Lead.GCLID was never mapped to Opportunity.GCLID, so opportunity milestones cannot match by click ID.
History tracking started late. Field history only covers changes after it is switched on, and the first import looks back just 14 days. Earlier milestones are not recoverable.
Sales skips statuses. A stage that is never selected is never recorded. Align the lead and opportunity process with sales before blaming the connector.
The API is not active. Data Manager's "Salesforce API isn't active" diagnostic means the edition or the user lacks API access.
Long sales cycles. Deals that close after 90 days (63 for enhanced conversions for leads) are not imported. Add an earlier milestone as the bidding goal.
Two tools fighting over auto-tagging. Account Engagement's connector suggests disabling auto-tagging to capture campaign fields, but offline import needs it on. Keep it on and add UTM parameters.
Failed rows nobody rechecks. Failed events are not retried automatically. Review the import history after every Salesforce change to fields, statuses or the integration user.

One open question to settle with your media team: Google recommends sending GBRAID and WBRAID identifiers, which replace the GCLID on some iOS traffic, whenever available. Google's Salesforce connector documentation names only GCLID, email and phone as match keys, so iOS-heavy accounts should rely on enhanced conversions for leads for that traffic.

Section 11 · Fit

Is the Native Connector Enough, or Do You Need a Custom Integration?

The native Data Manager connector is enough for most companies whose leads and opportunities live in standard Salesforce objects. A custom build pays off when conversions live in custom objects, the data needs joining first, or you need control the connector does not give. Start native and move to the Data Manager API only for a specific gap.

Native connector fits. Leads arrive through Web-to-Lead or a form tool. Milestones are Lead Status and Opportunity Stage values. You are on Enterprise edition or above, or Professional with API access. A daily import is fast enough. The value you need is on the opportunity.

Consider a custom build. Conversions sit in custom objects or in a billing system. Value must be calculated, for example margin or subscription value. Several Google Ads accounts or regions need different rules. You need conversion adjustments, or one record must feed several milestones with logic the event conditions cannot express.

Section 12 · Bottom Line

The Bottom Line

Connecting Salesforce to Google Ads turns ad reporting from "who filled in a form" into "which campaigns created qualified pipeline and revenue". The mechanics have moved to Data Manager and hashed first-party data, but most of the work is still on the Salesforce side: clean statuses, a mapped GCLID field, history tracking and consent. Twopir Consulting implements Sales Cloud, Account Engagement and Data 360 and builds the integrations around them, so we set up that Salesforce side and the lead capture together.

  1. 1

    Confirm API access, then create and map the GCLID field on Lead and Opportunity.

  2. 2

    Switch on field history for Lead Status and Opportunity Stage before launch.

  3. 3

    Capture the GCLID sitewide and turn on enhanced conversions, inside your consent setup.

  4. 4

    Create one Data Manager conversion action per object and milestone, scheduled daily.

  5. 5

    Make a qualified stage the primary goal and check "Rows with errors" after every change.

Ready to Start

Connect Your Ad Spend to Salesforce Pipeline

Tell us how leads reach Salesforce today. We will map the fields, stages, consent and lead capture changes your Google Ads conversion import needs.

Schedule a Discovery Call

FAQ

Frequently Asked Questions

Yes. Google Ads Data Manager connects directly to Salesforce and imports milestones from the Lead, Opportunity or Order object as offline conversions. You define which status or stage changes count, map a value field such as Opportunity Amount, and schedule the import, usually daily. The Salesforce org needs API access, and sandboxes are not supported.

No. Google ended support for the legacy Salesforce integration on May 31, 2025. Existing conversion actions were migrated automatically to Google Ads Conversion Import for Salesforce, which runs through Data Manager. Each connection now reads a single Salesforce object, and you can add email and phone mapping to use enhanced conversions for leads.

It is strongly recommended. Google now prefers enhanced conversions for leads, which match on hashed email or phone, but it still asks advertisers to send the GCLID whenever available, and GCLID is required if no tag collects user-provided data. Create the field on Lead and Opportunity and map it for lead conversion.

Data Manager needs the Salesforce API enabled. Salesforce includes API access by default in Enterprise, Unlimited, Performance and Developer editions. Professional Edition can buy API access as an add-on, while Group and Essentials editions cannot add it, so they cannot use the direct connection.

GCLID-based conversions must be imported within 90 days of the click, and enhanced conversions for leads within 63 days. The first scheduled import looks back only 14 days. If your sales cycle is longer, import an earlier milestone, such as a sales-qualified lead, as well as closed-won.

Check the import history under Goals, Conversions, Settings, View data integration for rows with errors. Common causes are a GCLID lost through redirects or a form without the hidden field, no GCLID mapping from lead to opportunity, field history tracking switched on late, skipped statuses, inactive API access, or clicks older than the upload window.

Not through Data Manager's direct Salesforce connection, which does not support Customer Match. Salesforce customers can activate Data 360 segments to Google Ads with the Advertising Audiences add-on. Customer Match targeting also requires 90 days of Google Ads history and more than USD 50,000 lifetime spend.

TC

Twopir Consulting

Salesforce Partner · HubSpot Partner

Twopir Consulting helps growing and mid-market companies solve complex CRM, integration, and business system challenges. We implement, rescue, optimize, and integrate complex CRM and revenue systems, including the marketing and advertising connections around Salesforce, for 500+ clients over 12+ years.