Skip to content

Multi-touch attribution, funnel drop-off, and ROI analysis for campaign data, run offline with no dependencies.

CCM score
70 of 100
skills.sh installs
836
GitHub stars
30.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the campaign review workflow: channel attribution, funnel conversion, and ROI, run as three steps
  • Includes attribution_analyzer.py with five models (first-touch, last-touch, linear, time-decay, and position-based), funnel_analyzer.py, and campaign_roi_calculator.py
  • Checks input JSON against the expected schema and reports missing keys, mismatched funnel arrays, and non-numeric values
  • Designed for marketers who need ROAS, CPA, and CAC from their own campaign numbers, with text or JSON output

Install

$ npx -y skills add alirezarezvani/claude-skills --skill campaign-analytics -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Campaign Analytics

Production-grade campaign performance analysis with multi-touch attribution modeling, funnel conversion analysis, and ROI calculation. Three Python CLI tools provide deterministic, repeatable analytics using standard library only -- no external dependencies, no API calls, no ML models.


Input Requirements

All scripts accept a JSON file as positional input argument. See assets/sample_campaign_data.json for complete examples.

Attribution Analyzer

{
  "journeys": [
    {
      "journey_id": "j1",
      "touchpoints": [
        {"channel": "organic_search", "timestamp": "2025-10-01T10:00:00", "interaction": "click"},
        {"channel": "email", "timestamp": "2025-10-05T14:30:00", "interaction": "open"},
        {"channel": "paid_search", "timestamp": "2025-10-08T09:15:00", "interaction": "click"}
      ],
      "converted": true,
      "revenue": 500.00
    }
  ]
}

Funnel Analyzer

{
  "funnel": {
    "stages": ["Awareness", "Interest", "Consideration", "Intent", "Purchase"],
    "counts": [10000, 5200, 2800, 1400, 420]
  }
}

Campaign ROI Calculator

Details

Repository
github.com/alirezarezvani/claude-skills
Categories
Marketing, SEO & Ads, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What does the campaign-analytics skill do?

It analyzes campaign performance from your own numbers, covering ROAS, CPA, ROI, multi-touch attribution and funnel drop-off. It runs three Python CLI tools that use only the standard library, with no external dependencies or API calls.

Which channels or ads is campaign-analytics good for reviewing?

It suits anyone asking which channel or ad is working, where spend is wasted, or why conversions dropped. It works on static JSON snapshots of journeys, funnels and campaigns rather than live data connections.

How do I install the campaign-analytics skill?

Run npx -y skills add alirezarezvani/claude-skills --skill campaign-analytics -y in a project. Once installed, the agent can run its attribution, funnel and ROI analyses on your campaign data.

Where does campaign-analytics sit among marketing skills?

It is in the Marketing, SEO & Ads category, alongside seo-audit, content-strategy, marketing-psychology, ai-seo and programmatic-seo. Its distinct focus is measuring paid campaign returns through attribution models, funnel analysis and ROI calculation.

What limits should I know before using campaign-analytics?

It provides descriptive metrics only, with no statistical significance testing. It is not optimized for datasets above 100K journeys and assumes all monetary values share one currency.

More from alirezarezvani/claude-skills

All 259

Similar to Campaign Analytics

More Marketing, SEO & Ads