# How do campaign hierarchies aggregate marketing ROI and member engagement across multi-tiered marketing campaigns?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Campaigns, Campaign Hierarchies

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-campaign-hierarchies-aggregate-marketing-roi-and-member-engagement-across-multi-tiered-marketing

## Answer

**Basics:** Large programs (for example an annual event with webinars and email nurtures beneath it) need totals. Hierarchy lets you view both the individual tactic and the overall program ROI.

**How it works:**
1. Set the Parent Campaign lookup on each child campaign.
2. Add the hierarchy statistic fields to the layout, such as Total Leads, Contacts, Responses, Opportunities, Won Opportunities, Value Opportunities, Value Won Opportunities, Budgeted Cost and Actual Cost in Hierarchy.
3. Salesforce calculates these across all descendants automatically; they are read-only.
4. Opportunity statistics count opportunities linked through the Campaign Source field; they do not use Campaign Influence.
5. Use the Campaign Hierarchy view or hierarchy reports to see members and results.

**Advanced / deep dive:** Hierarchy totals count each person per campaign, so a contact in two children counts twice in member totals. Costs are entered manually; only the hierarchy versions are rolled up. For multi-touch attribution use Customizable Campaign Influence (influence models, Campaign Influence records) instead of the Primary Campaign Source, because the single-source stats credit one campaign only. Hierarchy rollups can lag after bulk member loads. API field names are like HierarchyAmountWonOpportunities and HierarchyActualCost, useful for formula fields and integrations. Marketing automation tools (Account Engagement, Marketing Cloud) often write members and cost data.

**Code / config example:**
```
Formula field on Campaign: Hierarchy ROI (Percent)
IF(HierarchyActualCost > 0,
   (HierarchyAmountWonOpportunities - HierarchyActualCost) / HierarchyActualCost,
   NULL)
```

**Hidden gotchas & must-remember points:**
- Maximum hierarchy depth is five levels.
- Hierarchy statistic fields are read-only and must be added to layouts.
- Opportunity stats follow the Campaign Source field, not influence models.
- Hierarchy stats are not de-duplicated across children.
- Costs are not auto-calculated from child campaigns for the base fields.
- Users need Marketing User or campaign permissions to manage campaigns.

**Best practice:** Keep hierarchies shallow and consistent (program, then channel, then tactic) and use campaign influence for attribution reporting.

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