Attribution Model logo

Attribution Model

Community
indranilbanerjee
attribution-model

Design an attribution model and credit rules. Real path data → attribution-report. "set up multi-touch attribution"

Overview

Publisherindranilbanerjee
Repositorydigital-marketing-pro
Skill nameattribution-model
Stars
866
Forks
138
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by indranilbanerjee on GitHub. Read the source before you install it.

Installation

Install the Attribution Model AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/indranilbanerjee/digital-marketing-pro/tree/main/skills/attribution-model
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/indranilbanerjee/digital-marketing-pro.git /tmp/digital-marketing-pro
mkdir -p .claude/skills
cp -r /tmp/digital-marketing-pro/skills/attribution-model .claude/skills/attribution-model
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Attribution Model in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Attribution Model on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Attribution Model is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/digital-marketing-pro:attribution-model

Purpose

Design and recommend a multi-touch attribution model with implementation guidance, credit distribution rules, and platform-specific configuration. Produces a complete attribution strategy tailored to the business's data maturity, sales cycle, and analytics infrastructure.

Input Required

The user must provide (or will be prompted for):

  • Sales cycle length: Average number of days from first touchpoint to conversion (e.g., 7 days for e-commerce, 90+ days for B2B enterprise)
  • Active marketing channels: All channels currently running — paid search, paid social, organic search, email, display, video, affiliate, direct mail, events, referral, content marketing, etc.
  • Conversion types: The key conversion events being tracked — lead form, MQL, SQL, opportunity, customer, revenue, or e-commerce purchase
  • Data maturity level: Current analytics sophistication — beginner (basic GA4, limited tagging), intermediate (UTM tracking, CRM integration, multi-platform), or advanced (data warehouse, CDI, unified user IDs)
  • Current analytics tools: Platforms in use — GA4, HubSpot, Salesforce, Adobe Analytics, Mixpanel, custom data warehouse, or third-party attribution tools
  • Touchpoint volume: Approximate monthly interactions across all channels (thousands, tens of thousands, hundreds of thousands)
  • Offline touchpoints: Whether offline channels (trade shows, phone calls, direct mail, in-store visits, sales meetings) play a role in the customer journey
  • Budget allocation philosophy: How budget decisions are currently made — gut feel, last-click data, blended ROAS, executive direction, or existing attribution data
  • Previous attribution approach: Any existing attribution model in use and its known shortcomings or limitations
  • Key business questions: What specific decisions attribution data needs to inform — budget allocation, channel investment, campaign optimization, executive reporting, or vendor evaluation

Process

  1. Load brand context: Read ~/.claude-marketing/brands/_active-brand.json for the active slug, then load ~/.claude-marketing/brands/{slug}/profile.json. Apply brand voice, compliance rules for target markets (skills/context-engine/compliance-rules.md), and industry context. Also check for guidelines at ~/.claude-marketing/brands/{slug}/guidelines/_manifest.json — if present, load restrictions and relevant category files. Check for custom templates at ~/.claude-marketing/brands/{slug}/templates/. Check for agency SOPs at ~/.claude-marketing/sops/. If no brand exists, ask: "Set up a brand first (/digital-marketing-pro:brand-setup)?" — or proceed with defaults.
  2. Assess data maturity and touchpoint landscape: Map all active touchpoints across channels, evaluate tracking coverage (what percentage of interactions are captured), identify user identity resolution capabilities (logged-in vs. anonymous, cross-device stitching), and score overall data readiness on a 1-5 scale.
  3. Evaluate attribution model options: Score each model in the canonical taxonomy — see skills/funnel-architect/attribution-models.md (the single source for model definitions, the selection decision tree, and platform implementation notes) — against the business context on data requirements, accuracy, actionability, and implementation complexity. Do not re-derive the model list here; consume it from that reference.
  4. Recommend primary model with rationale: Select the best-fit model based on sales cycle length, data maturity, touchpoint volume, and business questions. Provide a clear explanation of why this model fits and where it will still have blind spots. If data maturity is low, recommend a phased approach starting with a simpler model and graduating to data-driven as tracking matures.
  5. Define credit distribution rules: Specify exactly how conversion credit is allocated — percentage per touchpoint position, time-decay half-life window, position-based weight splits (e.g., 40% first, 40% last, 20% distributed across middle), and rules for single-touch conversions vs. multi-touch journeys.
  6. Design lookback window: Set the attribution lookback window based on sales cycle data — typically 1.5-2x the average sales cycle length. Define separate windows for click-through and view-through attribution. Justify the window length with sales cycle analysis and explain the tradeoffs of shorter vs. longer windows.
  7. Map implementation steps per analytics platform: Create platform-specific configuration guides — GA4 attribution settings and conversion path reports, HubSpot multi-touch revenue attribution setup, Salesforce campaign influence configuration, and custom data warehouse query logic. Include step-by-step setup instructions for each tool in the stack. GA4 truth (state this to the user): GA4 exposes only data-driven and last-click as configurable models (the linear / time-decay / position-based / first-click menu was removed in 2023) — any other credit rule must be modelled in the warehouse/BI layer, not GA4. Also account for GA4's new "AI Assistant" default channel (referrals from ChatGPT, Gemini, Copilot, Perplexity, etc.) in the channel breakdown so AI-sourced conversions aren't misfiled under Referral/Direct.
  8. Identify data gaps and tracking requirements: Audit current tracking against the recommended model's requirements — missing UTM parameters, untagged campaigns, broken cross-domain tracking, absent offline touchpoint capture, incomplete CRM integration, and consent management gaps. Prioritize fixes by impact on attribution accuracy.
  9. Create attribution reporting framework: Design the reporting structure — attribution dashboard layout, key metrics (attributed revenue per channel, cost per attributed conversion, ROAS by model), comparison views (model A vs. model B side-by-side), trend analysis over time, and executive summary format.
  10. Define model evaluation criteria: Set review cadence (quarterly) and criteria for reassessing the model — changes in channel mix, sales cycle shifts, new touchpoint types, data maturity improvements, or significant discrepancies between attributed performance and actual business outcomes.
  11. Document limitations and known blind spots: Explicitly state what the model cannot capture — cross-device gaps, walled garden limitations (Meta, Google self-reporting), view-through estimation inaccuracies, offline-to-online stitching failures, privacy regulation impacts on tracking, and the inherent impossibility of perfect attribution. Frame expectations for stakeholders.

Output

A structured attribution model recommendation containing:

  • Attribution model recommendation with detailed rationale connecting the model choice to sales cycle, data maturity, and business questions
  • Credit distribution rules — percentage allocation per touchpoint position with examples showing how a sample multi-touch journey would be credited
  • Lookback window recommendation with sales cycle justification, click-through vs. view-through windows, and tradeoff analysis
  • Implementation guide per platform — step-by-step GA4 attribution setup, HubSpot multi-touch configuration, Salesforce campaign influence settings, and custom warehouse query templates
  • Touchpoint taxonomy — standardized hierarchy of channel, source, medium, and campaign with naming conventions for consistent tracking
  • Data requirements checklist — what must be tracked, tagged, and integrated for the model to function accurately
  • Tracking gap analysis — identified gaps ranked by impact on attribution accuracy, with fix recommendations and effort estimates
  • Attribution reporting dashboard spec — metrics, dimensions, filters, visualizations, comparison views, and executive summary format
  • Model comparison table — 6-7 models compared side-by-side on pros, cons, data requirements, best-fit scenarios, and implementation complexity
  • Evaluation framework — quarterly review criteria, model reassessment triggers, and maturity graduation path from simple to advanced models
  • Known limitations and blind spots — explicit documentation of what the model cannot measure with stakeholder expectation-setting guidance
  • Cross-device and cross-platform considerations — user identity resolution approaches, deterministic vs. probabilistic matching, and platform-specific limitations
  • Offline-to-online stitching recommendations — methods for incorporating trade shows, phone calls, direct mail, and in-person interactions into the digital attribution model

Agents Used

  • analytics-analyst — Data maturity assessment, attribution model evaluation, credit distribution design, lookback window analysis, platform implementation guidance, tracking gap identification, reporting framework design, and limitation documentation

Frequently asked questions

What does the Attribution Model AI skill do?

Design an attribution model and credit rules. Real path data → attribution-report. "set up multi-touch attribution"

Why use Attribution Model on TypingMind?

Because you install it once and use it with any model. Attribution Model is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Attribution Model in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/indranilbanerjee/digital-marketing-pro/tree/main/skills/attribution-model. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Attribution Model?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Attribution Model?

As many as you like. As long as a model supports skills, you can use Attribution Model with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Attribution Model AI skill free?

Yes. It is published on GitHub by indranilbanerjee under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇