Agent skill · marketing growth · alirezarezvani

campaign-analytics

Analyze campaign performance on the user's numbers: ROAS, CPA, ROI, multi-touch attribution and funnel drop-off. Use whenever the user asks which channel or ad is working, where spend is wasted, why conversions dropped, or shares campaign results to review.

Why this skill is useful

Adds three executable Python scripts for campaign performance analysis that provide deterministic analytics without external dependencies.

What it needs

Requires python installed locally. About 4k tokens when loaded. Last updated 2026-08-05. 23,939 stars on the source repository.

What this skill does

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/samplecampaigndata.json for complete examples. Attribution Analyzer Funnel Analyzer Campaign ROI Calculator Input Validation Before running scripts, verify your JSON is valid and matches the expected schema. Common errors: Missing required keys (e.g., journeys, funnel.stages, campaigns) → script exits with a descriptive KeyError Mismatched array lengths in funnel data (stages and counts must be the same length) → raises ValueError Non-numeric monetary values in ROI data → raises TypeError Use python -m json.tool yourfile.json to validate JSON syntax before passing it to any script. --- Output Formats All scripts support two output formats via the --format flag: --format text (default): Human-readable tables and summaries for review --format json: Machine-readable JSON for integrations and pipelines --- Typical Analysis Workflow For a complete campaign review, run the three scripts in sequence: Use attribution results to identify top-performing channels, then focus funnel analysis on those channels' segments, and finally validate ROI metrics to prioritize budget reallocation. --- How to Use Attribution Analysis Funnel Analysis Campaign ROI Calculation --- Scripts 1. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills alirezarezvani/campaign-analytics--b93ae7

View the source on GitHub

Browse the @skills marketplace