Kai analytics

From cgallic/kai-cmo-harness · View interactive version

Kai analytics is an AI agent skill from the GitHub repository cgallic/kai-cmo-harness. Analytics and attribution setup — tracking plan, UTM conventions, dashboard design, and attribution model selection. Use when "analytics setup", "attribution", "tracking plan", "UTM", "marketing analytics", "dashboard setup", "measurement strategy", "how do I track", "which metrics", or any request

How to use this skill

Skill file

kai-analytics — Analytics & Attribution Setup

Design a complete marketing measurement system: tracking plan, UTM conventions, attribution model, and dashboard specifications.

Non-Negotiable: Revenue Lens

Load the Revenue Lens section of harness/references/audit-data-provenance.md with the provenance rule.

Phase 0: Load Product Context

Check if MARKETING.md exists in the project root (same directory as CLAUDE.md, README.md, package.json).

If it exists: Read it — skip product discovery questions. It has the product name, ICP, value prop, monetization, brand voice, current channels, and competitive landscape.

If it does NOT exist: Auto-explore the codebase to create it in the project root (next to CLAUDE.md). Do NOT ask the user what the product is. Read CLAUDE.md, README.md, PROJECT.md, package.json, landing pages, and any project files. Search for email/ad/analytics config. Then create MARKETING.md using the template from /kai-email-system. Present draft to user for confirmation.


References

Load these files as context before starting:

Phase 1 — Discovery

  1. Read from MARKETING.md. Only ask about things not covered there:
  1. Identify the measurement maturity level:

Phase 2 — Analysis

Measurement Gap Audit

  1. Map the current customer journey: first touch -> conversion -> retention.
  2. Identify blind spots — where do you lose visibility?
  3. Flag conflicting data sources (ad platform vs. GA4 discrepancies).
  4. Assess data quality: are events firing correctly? Are UTMs consistent?

Attribution Model Selection

Recommend the right model based on their business:

| Model | Best For | Limitation |

|-------|----------|------------|

| Last-click | Short sales cycles, ecommerce | Ignores awareness channels |

| First-click | Brand-heavy businesses | Ignores nurture channels |

| Linear | Multi-channel, even contribution | Oversimplifies |

| Time-decay | Long sales cycles, B2B | Complex to implement |

| Position-based (U-shaped) | Most B2B SaaS | Requires multi-touch data |

| Data-driven (GA4) | High-volume businesses | Needs 600+ conversions/month |

Attribution Caveats

State caveats beside every attribution recommendation:

Phase 3 — Produce

Build these deliverables:

Tracking Plan

Structured event taxonomy:

| Event Name | Trigger | Properties | Tool |

|------------|---------|------------|------|

| page_view | Every page load | url, referrer, utm_* | GA4 |

| signup_started | Form opened | source, plan_type | GA4 + Product |

| signup_completed | Account created | method, plan, value | GA4 + Product + CRM |

| [custom events per business] | | | |

UTM Convention Guide

Standardized naming rules:

Include a UTM builder template and naming convention doc.

Dashboard Specifications

Design dashboards for three audiences:

Executive Dashboard (weekly glance)

Marketing Ops Dashboard (daily operations)

Channel-Specific Dashboards (per platform)

Pixel & Tag Setup Guide

Phase 4 — Output

  1. Deliver the tracking plan as a structured table.
  2. Deliver the UTM convention guide as a reference document.
  3. Deliver dashboard specs with metric definitions and data sources.
  4. Provide an implementation checklist ordered by priority.
  5. Include a "data quality audit" checklist for monthly review.

Constraints

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.