Watch it work
This is one real run on a sample job, replayed as it happened
Read the run as text
Here are October's numbers for our 8 Google Ads and Meta campaigns, plus GA4 funnel counts by channel. Which campaigns lose money and where should the budget go?
- larkspur-campaigns-oct.csv8 rows
- larkspur-ga4-funnel-oct.csv3 rows
- Search - Brand15.81xCPA $3.16
- Retargeting - Carousel4.87xCPA $10.68
- Advent Calendar Gift Sets4.13xCPA $16.96
- Search - Loose Leaf Generic1.25xFlagged
- Prospecting - Video0.85xFlagged, -$350
- Search - Competitor Terms0.30xFlagged, -$690
- failed: ROAS 0.30x, paid search low is 2.0x
- failed: CPA $163.33, paid search high is $150
- failed: CTR 1.31%, paid search low is 1.5%
- failed: Net loss of $690 on $980 spend
| Stage | Paid search | Paid social | Organic |
|---|---|---|---|
| Sessions | 6,210 | 6,480 | 9,350 |
| Viewed product, of sessions | 76.0% | 33.0% | 60.0% |
| Added to cart, of viewers | 27.1% | 51.4% | 27.1% |
| Bought, of sessions | 5.43% | 3.21% | 4.41% |
Meta traffic leaks before the product page: 4,340 of 6,480 sessions never view a product. Those who do add to cart at 51.4%, the best of the three. Search visitors leak at the product page: 72.9% leave without adding to cart.
Budget moves for November
- Pause Competitor Terms, frees $980
- Halve Prospecting Video to $1,200 and land it on product pages
- Move $2,180 into Advent Calendar (+$1,000), Retargeting (+$600), Matcha (+$400), Brand (+$180 if budget-limited)
- Fix Loose Leaf Generic search terms, cut by a third if ROAS stays under 2.0x
A worked example
Which ad campaigns lose money
The request
Here are October's numbers for our 8 Google Ads and Meta campaigns, plus GA4 funnel counts by channel. Which campaigns lose money and where should the budget go?
- larkspur-campaigns-oct.csv8 rows
- larkspur-ga4-funnel-oct.csv3 rows
How the competitor terms campaign compares with its benchmarks
- ROAS 0.30x, paid search low is 2.0x
- CPA $163.33, paid search high is $150
- CTR 1.31%, paid search low is 1.5%
- Net loss of $690 on $980 spend
What came back
Budget moves for November
- Pause Competitor Terms, frees $980
- Halve Prospecting Video to $1,200 and land it on product pages
- Move $2,180 into Advent Calendar (+$1,000), Retargeting (+$600), Matcha (+$400), Brand (+$180 if budget-limited)
- Fix Loose Leaf Generic search terms, cut by a third if ROAS stays under 2.0x
How it works
The formulas behind the ROI report
ROI is revenue minus spend, divided by spend, as a percentage. ROAS is revenue divided by spend, and CPA and CAC are both spend divided by customers. CPL is spend per lead, CTR is clicks over impressions, and the conversion rate here means leads that became customers.
Benchmark ranges for each channel
The calculator holds a low, target and high value for each metric and channel. For paid search the ROAS low is 2.0x and the CPA high is $150, for paid social the ROAS low is 1.5x, and email expects ROAS between 30x and 60x.
A channel the calculator does not know falls back to a default range. The ranges are generic rather than per industry or country, so the skill advises comparing with your own history first.
How credit is shared across channels
First touch gives all revenue to the first interaction and last touch to the last one. Linear splits it equally across every touchpoint.
Time decay gives more to recent touches with a half-life of 7 days by default, which you can change to match your sales cycle. Position based gives 40% to the first touch, 40% to the last and shares 20% among the middle ones.
Where the funnel loses people
The funnel analyzer reports the largest absolute drop, the step where the most people were lost, and the largest relative drop, the step with the highest drop-off rate. If you add segments such as paid against organic, it runs the same funnel for each and compares them. For a conversion drop, running the funnel for this period and the previous one shows which stage broke.
When data or tools are missing
Without user-level journeys, the skill compares conversions by first-user channel and by session channel in GA4 and says this is a channel-level view rather than multi-touch attribution. If Python is not available, Claude computes the same metrics by hand from the formulas in the reference files and says so in the output.
Rules it follows
Each rule comes from the skill's own instructions, with a line from the sample run where it shows the rule at work
- 1
Read channel value across three or more attribution models and never from one
Each model credits channels by a different assumption, so one model alone can overstate or hide a channel
- 2
Every money value must be in one currency, because the scripts do not convert
Spend in one currency against revenue in another would make every ROI and ROAS figure wrong
- 3
Name the source of leads, customers and revenue, and never sum ad platform and GA4 conversions
Adding platform and GA4 conversions counts the same sale twice
In the sample run
Add to cart (leads), purchases (customers), revenue: GA4, by campaign, from the same file
- 4
Results are descriptive, and no significance test is run
A difference between two campaigns or segments may be noise, and p-values need an outside tool
- 5
Count creative, tooling and labor costs in spend rather than media alone
ROI on media spend alone makes a campaign look more profitable than it is
What you give it and what you get
You give it
- Spend, revenue, impressions, clicks, leads and customers per campaign, with its channel
- A count of people at each funnel stage, optionally split by segment
- Customer journeys with each touchpoint's channel and timestamp, whether it converted and its revenue (for attribution only)
- The date range the numbers cover
You get back
- ROI, ROAS, CPA, CPL and CAC for every campaign, plus channel totals
- Campaigns flagged against benchmark ranges for their channel
- Stage-by-stage drop-off with the biggest bottleneck named
- Funnel comparison by segment, such as paid against organic
- Channel credit under five attribution models, side by side
Tasks it fits
- Before moving budget between campaigns or channels
- When conversions fell and you need to find the stage that broke
- When you need to split credit for sales across several channels
Prompts to start with
Here are last month's numbers for our 8 Google Ads and Meta campaigns. Which ones lose money and where should the budget go?
Leads dropped 30% this month. Here are funnel counts for this month and last month by channel. Where did we lose people?
Run all five attribution models on this journey export and tell me how much credit paid search gets in each
Adding it to Claude
Open the zip and read every file before you add it
claude.ai
Download campaign-analytics.zip, upload it as it is under Settings, Capabilities, Skills and then ask for the job in a new chat
Claude Code
unzip campaign-analytics.zip -d ~/.claude/skills/Or move the campaign-analytics folder from the zip into .claude/skills/ inside one project
Anthropic's help pages Use skills in Claude and Skills in Claude Code explain the steps in more detail
- campaign-analytics/
- CHANGES.md4 KB
- SKILL.md17 KB
- assets/
- ab_test_template.md3 KB
- campaign_report_template.md4 KB
- channel_comparison_template.md5 KB
- expected_output.json4 KB
- sample_campaign_data.json5 KB
- references/
- attribution-models-guide.md9 KB
- campaign-metrics-benchmarks.md9 KB
- funnel-optimization-framework.md11 KB
- scripts/
- attribution_analyzer.py12 KB
- campaign_roi_calculator.py18 KB
- funnel_analyzer.py11 KB
Questions
Do I need journey-level data?
Only for attribution, since ROI and funnel analysis work on totals any ad platform can export
Where do the benchmarks come from?
It uses fixed low, target and high ranges per channel, so compare them with your own history first