cyberneticlibrary

Calculate attribution and campaign ROI

campaign-analyticsskillsetup L10
devCharuzu/philfida-taskmanage
What it does

Calculate multi-touch attribution, funnel conversion, and campaign ROI

Best for

Demand-gen and growth teams running multi-channel campaigns who need deterministic attribution without external API dependencies.

Inputs
  • · Attribution journey data (touchpoints, channels, timestamps, conversions, revenue)
  • · Funnel data (stage names, counts per stage)
  • · Campaign data (name, channel, spend, revenue, impressions, clicks, leads, customers)
Outputs
  • · Attribution credit allocation (5 models: first-touch, last-touch, linear, time-decay, custom)
  • · Funnel drop-off analysis (stage-by-stage conversion rates)
  • · Campaign ROI metrics (ROAS, CPA, LTV, CAC payback)
  • · High-signal insights and budget reallocation recommendations
Preconditions
  • · Journey/funnel/campaign data in JSON format matching schema
  • · Minimum 2 data points for time-decay or conversion analysis
  • · Valid JSON and matching array lengths in funnel data
Failure modes
  • · Pure LLM attribution — no ground truth validation
  • · Funnel analysis assumes single-path conversion — does not account for multi-path journeys
  • · No handling of dark social or offline conversions
  • · Time-decay assumptions (default 7-day half-life) may not match actual customer cycle
Trust signals
  • · Three Python CLI tools (attribution_analyzer, funnel_analyzer, campaign_roi_calculator)
  • · Standard library only — no external dependencies or API calls
  • · Five attribution models implemented (first, last, linear, time-decay, custom)
  • · Input validation and error handling specified (KeyError, ValueError, TypeError)