Skip to content
Back to skills

Campaign Analytics

ASecurity

Analyze campaign performance with multi-touch attribution, funnel conversion analysis, and ROI calculation across channels.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 14, 2026
content-marketingpythongobashtestingperformance

Works with

  • cli

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill campaign-analytics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Campaign Analytics?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Campaign Analytics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-campaign-analytics/badge)](https://www.skillsdirectory.com/skills/sebastianluser-campaign-analytics)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: campaign-analytics
description: "Analyze campaign performance with multi-touch attribution, funnel conversion analysis, and ROI calculation across channels."
argument-hint: ""
category: "marketing-strategy"
user-invocable: true
allowed-tools: Read, Glob, Grep, Bash
---
# Campaign Analytics

Campaign performance analysis with multi-touch attribution, funnel analysis, and ROI calculation. Three Python CLI tools — standard library only, no external dependencies.

## Typical Workflow

```bash
# Step 1 — Attribution: which channels drive conversions
python scripts/attribution_analyzer.py campaign_data.json --model time-decay

# Step 2 — Funnel: where prospects drop off
python scripts/funnel_analyzer.py funnel_data.json

# Step 3 — ROI: profitability and benchmarks
python scripts/campaign_roi_calculator.py campaign_data.json
```

All scripts support `--format text` (default) and `--format json` for integrations.

---

## Scripts

### 1. attribution_analyzer.py

Five attribution models:

| Model | Description | Best For |
|-------|-------------|----------|
| First-Touch | 100% to first interaction | Brand awareness |
| Last-Touch | 100% to last interaction | Direct response |
| Linear | Equal credit all touchpoints | Balanced evaluation |
| Time-Decay | More credit to recent | Short sales cycles |
| Position-Based | 40/20/40 split | Full-funnel marketing |

### 2. funnel_analyzer.py

Stage-to-stage conversion rates, bottleneck identification, segment comparison.

### 3. campaign_roi_calculator.py

ROI, ROAS, CPA, CPL, CAC, CTR, CVR — flags underperforming campaigns against industry benchmarks.

---

## Input Requirements

All scripts accept a JSON file. Use `python -m json.tool your_file.json` to validate syntax. `assets/sample_campaign_data.json` has a valid example of each input.

To present the results: [assets/campaign_report_template.md](assets/campaign_report_template.md) for a campaign report, [assets/channel_comparison_template.md](assets/channel_comparison_template.md) to compare channels, [assets/ab_test_template.md](assets/ab_test_template.md) for an A/B test.

For complete input schemas (journey, funnel, campaign), sample data, and validation rules, see [references/attribution-models-guide.md](references/attribution-models-guide.md).

---

## Reference Guides

| Guide | Location | Purpose |
|-------|----------|---------|
| Attribution Models | [references/attribution-models-guide.md](references/attribution-models-guide.md) | Models with formulas, selection criteria, input schemas |
| Campaign Benchmarks | [references/campaign-metrics-benchmarks.md](references/campaign-metrics-benchmarks.md) | Benchmarks by channel and vertical |
| Funnel Optimization | [references/funnel-optimization-framework.md](references/funnel-optimization-framework.md) | Stage-by-stage strategies, bottlenecks |

---

## Best Practices

1. **Use multiple attribution models** — Compare 3+ to triangulate channel value
2. **Match time-decay half-life** to average sales cycle length
3. **Segment funnels** by channel, cohort, geography
4. **Benchmark against your own history first** — industry benchmarks provide context only
5. **Include all costs** — creative, tooling, labor alongside media spend

---

## Limitations

- Descriptive metrics only (no statistical significance testing)
- Standard library only (not optimized for >100K journeys)
- Offline analysis (static JSON snapshots)
- Single-currency; simplified time-decay; no cross-device tracking

## Related Skills

- **analytics-tracking**: For setting up tracking (not analyzing data)
- **ab-test-setup**: For designing experiments from analytics insights
- **marketing-ops**: For routing insights to execution

Files in this skill

  • SKILL.md3.6 KB
  • assets/ab_test_template.md3.4 KB
  • assets/campaign_report_template.md3.9 KB
  • assets/channel_comparison_template.md4.9 KB
  • assets/sample_campaign_data.json4.6 KB
  • references/attribution-models-guide.md9.4 KB
  • references/campaign-metrics-benchmarks.md8.8 KB
  • references/funnel-optimization-framework.md10.7 KB
  • scripts/attribution_analyzer.py12.2 KB
  • scripts/campaign_roi_calculator.py17.8 KB
  • scripts/funnel_analyzer.py10.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.