Prompt
How should I combine Salesforce and Google Ads for revenue attribution?
Latest observation
To combine Salesforce and Google Ads for revenue attribution, the goal is usually to connect:
- Ad interactions in Google Ads
- Lead/contact/opportunity lifecycle in Salesforce
- Closed-won revenue back to the campaign or keyword that influenced it
Recommended approach
1) Define the attribution level first
Decide what you want to attribute revenue to:
- Campaign level: simplest and most common
- Ad group / keyword / search term: more granular, but harder to maintain
- Multi-touch across the funnel: best for analysis, usually requires a BI/warehouse
For most teams, start with:
- Google Ads campaign
- Salesforce opportunity / closed-won revenue
- Conversion milestones like MQL, SQL, Opportunity Created, Closed Won
2) Make sure Google Ads click IDs are captured in Salesforce
You need to persist identifiers from ad clicks into CRM records.
Capture these parameters on landing pages/forms:
- gclid for Google Ads
- optionally wbraid / gbraid for iOS/privacy-related traffic
- UTM parameters for broader source tracking:
utm_sourceutm_mediumutm_campaignutm_contentutm_term
Store them in Salesforce fields on:
- Lead
- Contact
- Account
- Opportunity, if needed
This lets you connect a lead or opportunity back to the original ad click.
3) Sync Salesforce conversions back into Google Ads
Import offline conversions from Salesforce into Google Ads so Google can optimize toward revenue-quality events.
Common conversion events to import:
- Lead created
- MQL
- SQL
- Opportunity created
- Closed won revenue
Best practice:
- Use Google Ads Offline Conversion Import
- Match using gclid when possible
- Send the conversion timestamp, value, and currency
- Use distinct conversion actions for each stage if you want stage-level optimization
Example:
- “Qualified Lead” = 1 conversion
- “Closed Won Revenue” = actual deal amount
4) Keep one source of truth for revenue in Salesforce
Salesforce should usually be the revenue source of truth, because it contains:
- opportunity amount
- close date
- stage progression
- account ownership / sales rep data
Then Google Ads becomes the acquisition source, while Salesforce validates revenue outcomes.
5) Use a data warehouse or BI tool for true attribution
If you want more than basic campaign-to-revenue reporting, combine both datasets in a warehouse like:
- BigQuery
- Snowflake
- Redshift
Then join:
- Google Ads click / campaign data
- Salesforce lead/opportunity data
- revenue outcomes
This enables:
- first-touch attribution
- last-touch attribution
- multi-touch models
- pipeline velocity analysis
- CAC and ROAS reporting
Practical integration patterns
Option A: Native tools only
Good for simpler teams.
- Capture gclid/UTMs in Salesforce
- Import offline conversions to Google Ads
- Report in Salesforce + Google Ads separately
Best if:
- you mainly want better bidding and basic revenue reporting
Option B: Salesforce + Google Ads + BI layer
Best for accurate marketing attribution.
- Use Salesforce as CRM/revenue source
- Use Google Ads for paid media data
- Push both into BigQuery/Snowflake
- Build attribution dashboards in Looker/Tableau/Power BI
Best if:
- you need executive-level revenue attribution
- multiple channels are involved
- sales cycles are long
Important implementation details
Capture gclid correctly
Common mistake: users lose the click ID if forms don’t persist it. Use:
- hidden form fields
- cookies/local storage
- server-side capture if possible
Deduplicate conversions
If multiple systems send the same conversion, Google Ads may double count. Use a unique conversion ID or consistent upload logic.
Align conversion windows
Make sure Google Ads conversion windows reflect your sales cycle:
- short cycle: 30–60 days
- long cycle: 90+ days
Match revenue values carefully
For closed-won deals, send:
- opportunity amount
- net or gross revenue consistently
- currency
- close date
Handle multiple contacts per account
Revenue may be influenced by several leads. Decide whether attribution is:
- lead-based
- contact-based
- account-based
- opportunity-based
A simple recommended setup
If you want a practical starting point:
- Capture gclid + UTMs on all paid landing pages
- Store them in Salesforce Lead/Contact fields
- Mark Salesforce stages:
- Lead
- MQL
- SQL
- Opportunity
- Closed Won
- Import offline conversions from Salesforce to Google Ads
- Build a dashboard that reports:
- spend
- pipeline created
- closed-won revenue
- ROAS by campaign
Best practice recommendation
If your goal is marketing optimization, use:
- Google Ads offline conversion imports
If your goal is business attribution and forecasting, use:
- Salesforce + warehouse + BI attribution model
If you want, I can also give you:
- a step-by-step technical setup,
- a field mapping template for Salesforce ↔ Google Ads, or
- a recommended attribution model for your sales cycle.