Prompt
How do I tie ad clicks to revenue in Salesforce?
Latest observation
To tie ad clicks to revenue in Salesforce, you need to connect ad source data → lead/contact/opportunity records → closed-won revenue using consistent tracking fields and attribution logic.
1) Capture the ad click source
At the moment someone clicks an ad, capture identifiers like:
- UTM parameters:
utm_source,utm_medium,utm_campaign,utm_content,utm_term - Click IDs:
- Google Ads:
gclid - Microsoft Ads:
msclkid - Meta:
fbclid(less reliable for Salesforce attribution, but still useful)
- Google Ads:
- Landing page + timestamp
- Visitor/session ID if you have a web analytics or marketing automation tool
2) Store that data in Salesforce
Common Salesforce fields to use:
- Lead Source
- Original Source / First Touch Source
- Last Touch Source
- Custom fields for:
UTM SourceUTM MediumUTM CampaignUTM ContentUTM TermGCLIDMSCLKID
- Optional: custom object for Touchpoints if you want multi-touch attribution
Usually this is done via:
- Web-to-Lead forms
- A marketing automation platform (Account Engagement/Pardot, Marketing Cloud, HubSpot, Marketo, etc.)
- Custom tracking scripts / cookie capture
3) Associate the click to the person
You need a way to connect the click to a Salesforce person record:
- Form submission on landing page
- Cookie-based tracking until the user converts
- Identity matching by email after signup/download/demo request
When the form is submitted, map the captured parameters into the Lead or Contact record.
4) Link person records to opportunities
Revenue lives on the Opportunity object in Salesforce. Make sure your process links:
- Lead → converted Contact
- Contact → Account
- Contact/Account → Opportunity
Typical ways:
- Salesforce Campaigns influencing opportunities
- Opportunity Contact Roles
- Custom attribution object that links touchpoints to opportunities
5) Use Salesforce Campaigns for attribution
A standard Salesforce approach is:
- Create a Campaign for each ad campaign
- Add leads/contacts as Campaign Members
- Track lifecycle stages, e.g.:
- Responded
- MQL
- SQL
- Opportunity Created
- Closed Won
Then report on:
- Campaign influence on opportunities
- Revenue by campaign
- Cost per opportunity / cost per acquisition if you also sync ad spend
6) Decide on attribution model
This is the key business decision. Common models:
- First-touch: credits the first ad click
- Last-touch: credits the final click before conversion
- Multi-touch: splits credit across all touchpoints
- W-shaped / custom: weights first touch, lead creation, opportunity creation, etc.
If you want “clicks to revenue,” multi-touch is usually more accurate, but first-touch/last-touch is simpler.
7) Build reporting
In Salesforce, report on:
- Campaigns
- Leads/Contacts by source
- Opportunities by source
- Closed-won revenue by campaign
- Revenue influenced by campaign
- ROAS if ad spend is available
Useful dashboard metrics:
- Clicks
- Leads
- MQLs
- Opportunities
- Closed-won revenue
- CAC / ROAS
- Conversion rates at each stage
8) If you need higher accuracy, use an attribution tool
Salesforce alone can do basic attribution, but for more robust click-to-revenue tracking, many teams use:
- Dreamdata
- Bizible / Adobe Marketo Measure
- HockeyStack
- Terminus
- HubSpot attribution tools if HubSpot is in the stack
These tools handle:
- Cross-device tracking
- Multi-touch attribution
- Offline conversions
- Revenue reporting tied to campaigns
A practical setup
If you want a straightforward implementation:
- Add UTM + click ID hidden fields to all lead forms
- Capture them in Salesforce Lead fields
- Set first-touch and last-touch fields
- When a Lead converts, copy source fields to Contact/Account
- Relate Contacts to Opportunities with Contact Roles
- Use Campaigns to report on sourced and influenced revenue
- Build dashboards by campaign, channel, and ad group
Important caveat
Salesforce can track revenue, but it does not natively know which ad click caused it unless you intentionally capture and persist that data.
If you want, I can give you:
- a step-by-step Salesforce field setup
- a recommended attribution model
- or a sample schema/reporting setup for Google Ads → Salesforce revenue tracking.