Klaviyo analyst

From thatrebeccarae/claude-marketing · View interactive version

Klaviyo analyst is an AI agent skill from the GitHub repository thatrebeccarae/claude-marketing. Klaviyo marketing operations and analyst expertise. Audit flows, segments, campaigns, deliverability, and revenue attribution. Use when the user asks about Klaviyo marketing strategy, email/SMS automation, customer segmentation, flow optimization, or lifecycle marketing. For API integration, SDK, we

How to use this skill

Skill file

Klaviyo Marketing Analyst

Expert-level guidance for Klaviyo email and SMS marketing from the marketing operations and analyst perspective — auditing, building, and optimizing flows, segments, campaigns, and integrations.

For API integration, SDK usage, event tracking implementation, webhooks, and developer patterns, see the klaviyo-developer skill.

Install

Step 1 — Install the skill

git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/klaviyo-analyst ~/.claude/skills/

Step 2 — Connect the Klaviyo MCP (recommended)

This skill is designed around Klaviyo's official MCP server. Connect Claude to your Klaviyo account through OAuth — no local API key, no Python install. The setup path depends on which Claude surface you're using.

For Claude Chat or Claude Cowork — use the Connector Directory

Klaviyo is listed in Claude's Connector Directory (announced as part of the expanded Klaviyo + Anthropic integration on 2026-05-07). Setup takes about two minutes:

  1. Open Claude → Settings → Connectors → Browse Connectors
  2. Search for Klaviyo
  3. Click Connect and authenticate

Plan requirement: Connectors are available on Claude Pro, Max, Team, and Enterprise plans. Free plan users will need to use Claude Code or the local install path below.

For Claude Code — register the remote MCP
claude mcp add klaviyo --transport http https://mcp.klaviyo.com/mcp

For audit-only sessions, append ?read-only=true to disable all write tools at the protocol layer:

claude mcp add klaviyo --transport http "https://mcp.klaviyo.com/mcp?read-only=true"
For local install (CI containers, offline development)
claude mcp add klaviyo -e PRIVATE_API_KEY=pk_... -e READ_ONLY=true -- uvx klaviyo-mcp-server@latest

Klaviyo-side requirement: Owner, Admin, or Manager role to authorize the connection.

The MCP exposes 40+ tools across Accounts, Campaigns, Catalogs, Events, Flows, Groups, Profiles, Reporting, Templates, and Translations. See REFERENCE.md for the full tool inventory.

Step 3 — Fallback: local CLI scripts (optional)

If you need scripted CLI access for CI, cron, or headless reporting — install the Python requirements and provide a KLAVIYO_API_KEY. See the Scripts (Fallback) section below.

Core Capabilities

Flow Auditing & Optimization

Segmentation Strategy

Campaign Strategy

Deliverability Management

Revenue Attribution & Reporting

Event Schema Auditing

Integration Health Review

Profile Data Utilization Analysis

Key Benchmarks

| Metric | Good | Great | Warning |

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

| Open Rate (email) | 20-25% | 30%+ | <15% |

| Click Rate (email) | 2-3% | 4%+ | <1.5% |

| Unsubscribe Rate | <0.3% | <0.1% | >0.5% |

| Spam Complaint Rate | <0.05% | <0.02% | >0.1% |

| Flow Revenue % of Total | 30-40% | 50%+ | <20% |

| SMS Click Rate | 8-12% | 15%+ | <5% |

| List Growth Rate (monthly) | 3-5% | 8%+ | <1% |

Essential Flows Checklist

  1. Welcome Series (3-5 emails + optional SMS) — triggers on list subscribe
  2. Abandoned Cart (2-3 emails + 1 SMS) — triggers on Started Checkout
  3. Browse Abandonment (1-2 emails) — triggers on Viewed Product, exclude recent purchasers
  4. Post-Purchase (2-4 emails) — triggers on Placed Order, split by first-time vs repeat
  5. Winback (2-3 emails) — triggers on time since last purchase (60-90 days)
  6. Sunset/Re-engagement (2 emails) — targets unengaged 90-180 days, then suppress
  7. Review Request — triggers post-delivery, integrates with review platform
  8. Replenishment (if applicable) — triggers based on expected repurchase cycle
  9. Birthday/Anniversary — triggers on date property
  10. VIP/Loyalty — triggers on high-CLV segment entry

Workflow: Full Klaviyo Audit (4-Phase Deep Framework)

Cowork-ready: the 4-phase audit is built for unattended execution. With the Klaviyo connector active in Cowork (read-only mode), describe the outcome — _"Audit my Klaviyo flows and tell me what's missing,"_ _"Pull last week's campaign and flow performance and write me a Monday digest,"_ _"Flag every flow with open rates under 20% and write a prioritized fix-it list"_ — then step away. Cowork pulls the data, runs the analysis, writes the doc, and saves it to the right folder while you're in other meetings.

When asked to audit a Klaviyo account, follow this 4-phase framework:

Phase 1: Status Inventory

  1. List/Segment/Flow/Campaign Inventory — Count and categorize all objects by status (live, draft, inactive)
  2. Event Schema Inventory — Pull all metrics, categorize by source (built-in, custom API, Klaviyo-internal, forms), flag zero-volume events
  3. Integration Inventory — List all active integrations, identify stale connections
  4. Custom Profile Property Inventory — Document all custom properties with types and usage

Phase 2: Configuration Audit

  1. Per-Flow Configuration Teardown — For each active flow:
  1. Campaign Targeting Audit — Segment exclusivity, frequency capping, send-time optimization
  2. A/B Testing Methodology Audit — Univariate vs multivariate, KPI alignment, statistical significance practices
  3. Deliverability Configuration — Authentication (SPF/DKIM/DMARC), dedicated IP, warmup status

Phase 3: Data Structure Audit

  1. Event Schema Health — Check for duplicates, missing standard events, nested objects blocking segmentation
  2. Profile Data Utilization — What's collected vs what's used in segmentation/personalization
  3. Catalog Sync Health — Product feed freshness, coverage, variant handling

Phase 4: Strategic Recommendations

  1. Three-Tier Recommendations — For each finding:
  1. Sequential Testing Plans — Univariate A/B tests with stat sig framework
  2. Quantified ROI — Expected uplift % x current revenue baseline
  3. Implementation Roadmap — Phased timeline with dependencies mapped

Industry-Specific Benchmarks

B2B / Wholesale E-Commerce

| Metric | Good | Great | Warning | Notes |

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

| Open Rate | 25-35% | 40%+ | <20% | Higher than DTC due to professional relevance |

| Click Rate | 3-5% | 6%+ | <2% | Product-focused CTAs perform well |

| CTOR | 10-15% | 18%+ | <8% | Key diagnostic — content relevance signal |

| Flow Revenue % | 25-35% | 40%+ | <15% | Reorder flows are high-value in B2B |

| Avg Order Value | Varies | — | — | Track by segment (industry, company size) |

| Reorder Rate | 60-70% | 80%+ | <50% | Critical for consumable categories |

DTC (Direct-to-Consumer)

| Metric | Good | Great | Warning |

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

| Open Rate | 20-25% | 30%+ | <15% |

| Click Rate | 2-3% | 4%+ | <1.5% |

| Flow Revenue % | 30-40% | 50%+ | <20% |

| Welcome Series Conv. | 3-5% | 8%+ | <2% |

| Cart Recovery Rate | 5-10% | 15%+ | <3% |

Subscription / Recurring Revenue

| Metric | Good | Great | Warning |

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

| Churn Rate (monthly) | <5% | <3% | >8% |

| Reactivation Rate | 5-10% | 15%+ | <3% |

| Replenishment Flow Conv. | 8-12% | 15%+ | <5% |

| Subscription Upgrade Rate | 3-5% | 8%+ | <1% |

SMS Platform Comparison Framework

When evaluating Klaviyo SMS vs Attentive (common in audits):

| Capability | Klaviyo SMS | Attentive |

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

| Email + SMS unified | Yes (native) | No (separate platform) |

| Shared segments | Yes | Requires sync |

| Unified attribution | Yes | Separate reporting |

| Conversational SMS | Limited | Strong (two-way) |

| Sign-up units | Basic (popup, form) | Advanced (two-tap, link-based) |

| AI features | Predictive analytics, smart send time | AI journeys, smart sending |

| Compliance | Built-in TCPA, quiet hours | Built-in + compliance team |

| Cost | Included in Klaviyo plan (per SMS) | Separate platform fee + per SMS |

| Best for | Unified email+SMS, simplicity | SMS-first strategy, high volume SMS |

Recommendation framework: Use Klaviyo SMS when email is the primary channel and SMS is supplementary (most B2B and mid-market DTC). Consider Attentive when SMS is a primary revenue channel (high-frequency DTC, mobile-first brands).

Repeatable Audit Workflow (Klaviyo MCP Tool Sequence)

When auditing an account via the official Klaviyo MCP server (https://mcp.klaviyo.com/mcp), invoke tools in this order. All tools below are read-only and safe to run against production with the ?read-only=true URL parameter set.

| Step | MCP Tool | Purpose |

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

| 1 | get_account_details | Account config, timezone, integrations |

| 2 | get_metrics | Full event inventory (all metric names and IDs) |

| 3 | get_metric (per metric) | Property structure for key events (Placed Order, Started Checkout, Viewed Product) |

| 4 | get_flows | All flows with status |

| 5 | get_flow (per live flow) | Trigger details, actions, filters |

| 6 | get_flow_report (per flow) | Revenue, conversion, engagement per flow |

| 7 | get_campaigns | Recent campaigns with send dates |

| 8 | get_campaign_report (per campaign) | Open/click/unsub/revenue metrics |

| 9 | get_segments + get_segment | Segment inventory and condition definitions |

| 10 | get_lists + get_list | List inventory |

| 11 | get_catalog_items | Catalog sync health check |

| 12 | query_metric_aggregates | Time-series rollups (mirrors in-app Metric Reporting) for deliverability and revenue trend analysis |

| 13 | get_events (filtered) | Sample recent event payloads to inspect property structure and nested object usage |

After the data pull, analyze using the 4-Phase Deep Framework above.

Note on write tools: the MCP also exposes write tools (create_campaign, create_profile, update_profile, create_email_template, subscribe_profile_to_marketing, assign_template_to_campaign_message, upload_image_from_file, upload_image_from_url, create_event, plus translations). For pure audit work, gate these by connecting with ?read-only=true. Only enable writes if you're acting on a confirmed recommendation (e.g., assigning a template to a campaign you're building together with the user).

Integration Context

E-commerce Platforms

Common Integration Points

How to Use This Skill

Ask me questions like:

Analysis Examples

For complete analysis patterns, worked examples with sample output, and use cases, see EXAMPLES.md.

Scripts (Fallback: Local CLI)

When to use these: scripted CLI access for CI/cron, headless reporting jobs, or environments where you can't connect the Klaviyo MCP (e.g., automated pipelines using KLAVIYO_API_KEY env vars). For interactive analysis in Claude Code/Chat/Cowork, prefer the MCP path above — it's faster, OAuth-authenticated, and exposes the same data.

The skill includes utility scripts for data fetching and analysis:

Fetch Klaviyo Data

# List all flows
python scripts/klaviyo_client.py --resource flows

# List campaigns as table
python scripts/klaviyo_client.py --resource campaigns --format table

# Get flow performance report
python scripts/klaviyo_client.py --resource report --report-type flow --id FLOW_ID

# Export metrics to file
python scripts/klaviyo_client.py --resource metrics --output metrics.json

Analyze and Generate Reports

# Full account audit
python scripts/analyze.py --analysis-type full-audit

# Flow gap analysis
python scripts/analyze.py --analysis-type flow-audit

# Segment health check
python scripts/analyze.py --analysis-type segment-health

# Campaign performance comparison
python scripts/analyze.py --analysis-type campaign-comparison --days 30

# Deliverability diagnostic
python scripts/analyze.py --analysis-type deliverability

# Revenue attribution
python scripts/analyze.py --analysis-type revenue-attribution

The scripts handle API authentication, data fetching, and analysis. I'll interpret the results and provide actionable recommendations.

Troubleshooting

MCP connection issues

MCP not appearing in Claude: Verify the MCP is configured in your client and authenticated. For Claude Code, check ~/.claude.json or your project-level MCP config. For Claude Chat, check Settings → Connectors.

OAuth permission denied: Your Klaviyo user role must be Owner, Admin, or Manager. Lower-permission users cannot authorize the MCP.

Write tools failing: Confirm the connection URL does not have ?read-only=true set. If it does, write tools will be disabled by design — switch to a read-write URL for write actions.

Multi-account confusion: The MCP supports multi-account setups. If Claude pulls data from the wrong account, re-authenticate or check your active account in Klaviyo's UI.

Script (fallback) errors

Authentication Error: Verify that:

No Data Returned: Check that:

Rate Limit Errors: The SDK handles retries automatically (up to 3 retries with 60s max delay). If you still hit limits:

Import Errors: Install required packages:

pip install klaviyo-api python-dotenv pandas

Security Notes

When using the Klaviyo MCP (recommended)

When using the script fallback

Data Privacy

This skill accesses aggregated marketing data only. It does not:

All data is processed locally and used only to generate recommendations during the conversation.

For detailed Klaviyo data model, flow builder reference, segmentation conditions, deliverability, and SMS reference, see REFERENCE.md.

For API integration, SDK usage, and developer patterns, use the klaviyo-developer skill.

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.