Campaign Analytics
Marketing analysis skill that runs multi-touch attribution, funnel drop-off analysis, and ROI/ROAS/CPA math on your JSON campaign data.
Marketing & SEOIntermediate★ 24,151⑂ 3,405AI score 8/10Last updated: Aug 9, 2026
What it does
Feed it campaign data as JSON and three Python CLI tools produce a full performance review:
- attribution_analyzer.py: five attribution models (First-Touch, Last-Touch, Linear, Time-Decay with configurable half-life, Position-Based 40/20/40) to split conversion credit across channels
- funnel_analyzer.py: stage-to-stage conversion and drop-off rates, automatic bottleneck detection, and segment comparison
- campaign_roi_calculator.py: ROI, ROAS, CPA, CPL, CAC, CTR, CVR plus flags for campaigns below industry benchmarks
Everything runs on the Python standard library — no dependencies, no API calls, no ML — so the same input always yields the same numbers. --format json makes it pipeline-friendly, and bundled reference guides cover model selection, channel benchmarks, and funnel optimization.
Who it's for
- Performance marketers splitting budget across search, email, and paid channels who need credible credit allocation
- Growth/data folks who re-compute ROI from exported GA or ad-platform reports
- Small teams that want reproducible analytics reports without a paid attribution suite
Example uses
- Budget reallocation: run
--model time-decay --half-life 14on journey data, then compare against Last-Touch to spot channels that look better than they are. - Funnel bottleneck audit: load a 5-stage Awareness→Purchase funnel, see that Consideration→Intent has the biggest relative drop, and pull fixes from the funnel optimization guide.
- Monthly campaign review: input spend/revenue/clicks/leads per campaign, output ROAS and CPA, and shortlist only the under-benchmark campaigns for pausing or rework.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .gemini/skills/campaign-analytics folder from the GitHub repo alirezarezvani/claude-skills into my ~/.claude/skills/campaign-analytics/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/alirezarezvani/claude-skills.git /tmp/claude-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-skills/.gemini/skills/campaign-analytics ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/alirezarezvani/claude-skills.git - Create the skills folder if needed:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r claude-skills/.gemini/skills/campaign-analytics ~/.claude/skills/ - Confirm Python 3 is available:
python3 --version - Restart Claude Code and ask something like "analyze my campaign attribution and ROI" to trigger the skill.
- Test first with
~/.claude/skills/campaign-analytics/assets/sample_campaign_data.json, then mirror that shape with your own export. - Validate your file with
python -m json.tool your_file.jsonbefore running any script to avoid schema errors.
View source on GitHub ↗License: MIT