Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

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 & SEOIntermediate24,1513,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

  1. Budget reallocation: run --model time-decay --half-life 14 on journey data, then compare against Last-Touch to spot channels that look better than they are.
  2. 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.
  3. 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal and clone the repo: git clone https://github.com/alirezarezvani/claude-skills.git
  2. Create the skills folder if needed: mkdir -p ~/.claude/skills
  3. Copy the skill in: cp -r claude-skills/.gemini/skills/campaign-analytics ~/.claude/skills/
  4. Confirm Python 3 is available: python3 --version
  5. Restart Claude Code and ask something like "analyze my campaign attribution and ROI" to trigger the skill.
  6. Test first with ~/.claude/skills/campaign-analytics/assets/sample_campaign_data.json, then mirror that shape with your own export.
  7. Validate your file with python -m json.tool your_file.json before running any script to avoid schema errors.