# How do campaign influence models measure marketing ROI and touchpoints on opportunities?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Campaign Management, Marketing ROI

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-campaign-influence-models-measure-marketing-roi-and-touchpoints-on-opportunities

## Answer

**Basics:** Marketing needs to know which campaigns contribute to revenue, not just which created the lead. Campaign influence connects campaigns to opportunities and assigns each a percentage and a revenue share, so ROI can be reported per campaign.

**How it works:** Salesforce has two versions: legacy Campaign Influence 1.0 (Primary Campaign Source and a simple influence related list) and Customizable Campaign Influence (CCI). With CCI, an admin enables it in Setup > Campaign Influence, which makes Opportunity Contact Roles important: auto-association creates `CampaignInfluence` records by linking the opportunity's contact roles to their campaign memberships within a defined time window. Each record stores the model (`CampaignInfluenceModel`), influence percentage and revenue share. Standard models include Primary Campaign Source and Even Distribution; you can define custom models.

**Advanced / deep dive:** Custom models are created in Setup and populated through attribution logic you implement (Apex, Flow, or the Marketing analytics tools): first touch gives 100% to the earliest campaign, last touch to the latest before close, U-shaped and W-shaped weight milestones. For richer multi-touch attribution, Account Engagement B2B Marketing Analytics (formerly Pardot Analytics, built on CRM Analytics, formerly Tableau CRM) is the packaged option. Quality depends on discipline: contacts must be added to opportunity contact roles and added as campaign members, else no influence is calculated. Parameters to tune: the association window (days before opportunity creation), whether to include only responded members, and which campaign statuses count. Campaign ROI fields (`AmountAllOpportunities`, `AmountWonOpportunities`) are not influence-based, so build dashboards on `CampaignInfluence` for model-specific reporting. Only a small number of models can be active; verify limits in current docs. Reports: Campaigns with Influenced Opportunities report types.

**Code / config example:**
```text
Setup: Setup > Campaign Influence > Enable Customizable Campaign Influence
Model: Setup > Campaign Influence > Models > New "First Touch" (Custom)
Auto-association settings:
  - Time frame: 90 days before opportunity created date
  - Include campaign members with Responded = true only
  - Only for Opportunity Contact Roles

SOQL (influence for one opportunity):
SELECT Campaign.Name, Influence, RevenueShare, Model.Name
FROM CampaignInfluence WHERE OpportunityId = :oppId
```

**Hidden gotchas & must-remember points:**
- Without Opportunity Contact Roles, auto-association finds nothing.
- Custom models need your own logic to compute shares; the setup alone only defines the model.
- Enabling the customizable version is a one-way change from the legacy version; plan first.
- Campaign Influence shows influence, not causation.
- Pardot is now Marketing Cloud Account Engagement, and Tableau CRM is now CRM Analytics.
- Standard campaign ROI fields do not reflect attribution models.

**Best practice:** Enforce contact role and campaign member hygiene, start with the default models, and add custom multi-touch only when data quality supports it.

---
Source: ForceChallenges · last updated 2026-11-02
