How to Set Up Attribution Tracking in Salesforce
Updated · By the Clientell AI team · How we write
To track attribution in Salesforce, use Customizable Campaign Influence. Turn it on in Setup, create an attribution model, and link campaigns to opportunities, either by hand or by rule. Each link is a campaign influence record with a percentage. Then build reports on the active model to see which campaigns shape pipeline.
How to set up campaign attribution in Salesforce
Customizable Campaign Influence combines sales and marketing data. You choose a predefined model or enter your own influence percentages.
- 1
Make sure campaigns and members are tracked
Attribution only works if campaigns exist, people are added as campaign members with a status, and opportunities have contact roles. Fix the data habits first.
- 2
Turn on Customizable Campaign Influence
In Setup, search for Campaign Influence and enable it.
- 3
Create an attribution model
From Setup, enter Influence in Quick Find and click Model Settings. Click New Attribution Model. Enter a name and description. Select Default Model to show its data in related lists. Set Record Preference to All Records, then save.
- 4
Pick how credit is shared
Salesforce includes the Primary Campaign Source model, which gives 100 percent of the credit to one campaign per opportunity. Other model types in the Salesforce object reference include First Touch, Last Touch and Even Distribution.
- 5
Link campaigns to opportunities
Open an opportunity and use the Campaign Influence related list to click Add to Campaign. Choose the campaign. To give all the credit to one campaign, select Primary Campaign Source. You can select only one.
- 6
Report on the active model
Build reports and dashboards from campaign influence data for the model that is the default, for example closed-won revenue by campaign.
SOQL: influence by campaign and opportunity
SELECT CampaignId, OpportunityId, Influence
FROM CampaignInfluence
WHERE OpportunityId = '006XXXXXXXXXXXX'CampaignInfluence records belong to a model. Records for the Primary Campaign Source model are rebuilt when the model is recalculated, so do not insert them through the API.
Sources: Salesforce Help: Use Customizable Campaign Influence; Salesforce Help: Create a Custom Campaign Influence Model; Salesforce Developers: CampaignInfluence object
The Challenge
Marketing leaders need to know which campaigns drive pipeline and revenue, but Salesforce's out-of-the-box Campaign Influence is limited to last-touch and requires manual configuration. Building first-touch or multi-touch attribution traditionally means custom Apex, an expensive third-party tool, or hours of report scripting every quarter.
Or let Clientell AI do it
Clientell AI configures Salesforce's Customizable Campaign Influence and builds the Flow logic to apply first-touch, last-touch, or weighted multi-touch attribution models to every closed-won opportunity. Attribution percentages and touchpoint windows are described in plain English and adjusted without code changes.
How It Works
- 1
Describe the attribution model
Tell Clientell AI which model to use (first-touch, last-touch, U-shaped, W-shaped, custom weighting) and the touchpoint window.
- 2
AI configures Campaign Influence
Clientell AI enables and configures Customizable Campaign Influence and generates the Flow that assigns attribution percentages on opportunity close.
- 3
Build the dashboard
Clientell AI creates a campaign-attribution dashboard so marketing leaders can see pipeline and revenue by campaign, channel, and timeframe.
- 4
Deploy and review
Clientell AI deploys the model and lets you adjust the weighting in plain English when the strategy changes.
Frequently Asked Questions
- Does this require a separate attribution tool like Bizible?
- No. Clientell AI builds attribution natively on top of Salesforce's Customizable Campaign Influence, so you do not need an external tool, though it can integrate with Bizible or LeanData if you already have one.
- Can the model attribute revenue across multiple campaigns per opportunity?
- Yes. Multi-touch models split the revenue credit across every Campaign Member touchpoint within the chosen window, with the weighting model you specify.
- How are touchpoints from outside the model window handled?
- Touches outside the lookback window are excluded from credit by default. You can override this for specific channels or set a longer window for high-value campaigns.
- What is the default campaign influence model in Salesforce?
- Primary Campaign Source. It gives all the credit for an opportunity to one campaign.
- Can Salesforce do multi-touch attribution?
- Customizable Campaign Influence supports custom models where you set influence percentages across several campaigns. Check the Salesforce object reference for the model types your edition offers.
- Which Salesforce editions have Customizable Campaign Influence?
- Salesforce lists it as available in Professional, Enterprise, Performance, Unlimited and Developer Editions.
Related Automations
Member Status Management
Bulk update Salesforce Campaign Member statuses, sync engagement events, and add members from a list, described in plain English.
OpportunityPipeline Reporting
Build Salesforce pipeline reports and forecast dashboards with AI. Automate report creation, scheduling, and distribution.
ReportCustom Report Builder
Create custom Salesforce reports with AI. Describe the data you need and get a fully configured report with filters, groupings, and charts.