analytics-attribution

analytics-attribution is a skill for Claude Code, Codex from aitytech/agentkits-marketing. It costs 34 tokens per session (1,309 once invoked), scanned A, original, MIT.

Guidance for measuring marketing results, linking outcomes to campaigns, and estimating return on marketing spending. Attribution means estimating which channels or campaigns contributed to a conversion.

In plain words
What is it for?
Use it to set up measurement, analyze campaigns, build attribution models, create reports, and calculate metrics such as customer-acquisition cost and customer lifetime value.
Why use it?
It helps organize tracking and explain differences between traffic, conversions, costs, and revenue. This makes it easier to judge campaign performance and marketing return on investment.

Skill for Claude CodeCodex

Part of the agentkits-marketing plugin — 28 skills, 6 commands, 21 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/aitytech/agentkits-marketing/analytics-attribution
Any agent
npx skills add aitytech/agentkits-marketing --skill analytics-attribution
Clone the repo
git clone --depth 1 https://github.com/aitytech/agentkits-marketing

Made for: Claude Code, Codex.

Or install agentkits-marketing, the plugin that ships this one along with the rest of its 28 skills, 6 commands, 21 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analytics-attribution

README.md
[![agentmods](https://agentmods.dev/badge/skills/aitytech/agentkits-marketing/analytics-attribution.svg)](https://agentmods.dev/skills/aitytech/agentkits-marketing/analytics-attribution)
Your own site
<a href="https://agentmods.dev/skills/aitytech/agentkits-marketing/analytics-attribution"><img src="https://agentmods.dev/badge/skills/aitytech/agentkits-marketing/analytics-attribution.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,309 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00034 $0.01309
Opus 5 $0.00017 $0.00655
Sonnet 5 $0.00007 $0.00262
Haiku 4.5 $0.00003 $0.00131

Measured 4d ago against content hash 328afee8621a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

analytics-attribution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analytics-attribution/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analytics & Attribution

Performance measurement and attribution modeling for data-driven marketing decisions.

Language & Quality Standards

CRITICAL: Respond in the same language the user is using. If Vietnamese, respond in Vietnamese. If Spanish, respond in Spanish.

Standards: Token efficiency, sacrifice grammar for concision, list unresolved questions at end.


When to Use This Skill

Apply analytics expertise when:

  • Setting up marketing tracking and measurement
  • Analyzing campaign or channel performance
  • Building attribution models
  • Creating dashboards and reports
  • Calculating marketing ROI and CAC/LTV
  • Troubleshooting data discrepancies

Core Concepts

Analytics Framework

Dimensions (What you're measuring by):

  • Channel, campaign, source/medium
  • Device, geography, time period
  • Audience segment, persona
  • Content type, landing page

Metrics (What you're measuring):

  • Traffic: Sessions, users, pageviews
  • Engagement: Time on site, bounce rate, pages/session
  • Conversion: Goal completions, conversion rate
  • Revenue: Transaction value, ROAS, ROI
  • Cost: CPC, CPL, CAC

Key Marketing Reports

Report Questions Answered Frequency
Acquisition Where do visitors come from? Weekly
Behavior What do they do on site? Weekly
Conversion Do they complete goals? Daily
Attribution What drove the conversion? Monthly
Funnel Where do they drop off? Weekly
Cohort How do segments perform over time? Monthly

Attribution Models

Model Credit Distribution Best For
Last Click 100% to final touchpoint Short cycles, direct response
First Click 100% to first touchpoint Brand awareness, TOFU
Linear Equal across all Understanding full journey
Time Decay More to recent touches Long sales cycles
Position-Based 40/20/40 first-mid-last Balanced view
Data-Driven ML-based distribution High volume, mature programs

Read the full file on GitHub · 178 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 178 lines · 34 tokens per session scan A 328afee8621a

Subscribe to this mod's changes

analytics-attribution is a skill published in the GitHub repository aitytech/agentkits-marketing (595 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 1,309 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cost-efficiency-analyzer

Analyzes cost structure, cost efficiency, and expense management from P&L data. Use when the user asks about costs, expenses, COGS, operating expenses, cost ratios, cost control, spending efficiency, margin compression from cost side, or wants to understand where money is going. Also use for "are we spending too…

awslabs/agentcore-samples · 98 tokens

executive-financial-briefing

Generates a concise executive-level financial briefing or summary suitable for a CEO, CFO, or board presentation. Use when the user asks for a summary, briefing, executive summary, board update, financial overview, financial health check, or "how is the business doing". Covers the full P&L picture in one page. Also…

awslabs/agentcore-samples · 95 tokens

multi-quarter-trend-analysis

Analyzes financial trends across multiple quarters by comparing P&L metrics over time. Use when the user wants to see trends, patterns, trajectories, or directional movement across 3 or more quarters. Also use for "how are we trending", "show me the trend", "track performance over time", "quarter over quarter…

awslabs/agentcore-samples · 82 tokens

quarterly-kpi-calculator

Calculates quarterly financial KPIs from P&L data. P&L figures can be provided directly by the user or fetched from the financial data MCP server. Use when the user wants KPI calculations such as Gross Margin %, EBITDA Margin %, Operating Expense Ratio, or Revenue Growth % QoQ. Also use for quarterly performance…

awslabs/agentcore-samples · 84 tokens

revenue-growth-analyst

Deep-dives into revenue growth patterns, growth rates, and growth quality. Use when the user asks specifically about revenue growth, top-line performance, sales growth, revenue acceleration or deceleration, growth trajectory, or wants to understand what is driving revenue changes. NOT for cost or margin analysis …

awslabs/agentcore-samples · 72 tokens

portfolio-risk

Assess the risk profile of a set of stocks or a sector allocation, scoring concentration risk, volatility exposure, and overall risk tier.

awslabs/agentcore-samples · 28 tokens