data-and-funnel-analytics by manojbajaj95/claude-gtm-plugin
npx skills add https://github.com/manojbajaj95/claude-gtm-plugin --skill data-and-funnel-analytics端到端分析:设置跟踪、解读数据、分析漏斗、衡量产品参与度、验证转化路径并计算投资回报率。
原则: 为决策而跟踪,而非为数据而跟踪——每个事件都应指导一项行动。
格式:使用小写蛇形命名法 object_action。
signup_completed | cta_hero_clicked | checkout_started | onboarding_step_completed
规则:具体优于模糊(使用 cta_hero_clicked 而非 button_clicked),已完成动作用过去时,上下文信息放在属性中而非事件名称里。
| 类别 | 事件 | 关键属性 |
|---|---|---|
| 市场营销 | page_view |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| page_title, page_location, referrer |
cta_clicked | button_text, location, page |
form_submitted | form_type, page |
signup_completed | method, plan |
| 产品 | onboarding_step_completed | step_number, step_name |
feature_used | feature_name, context |
trial_started | plan, source |
purchase_completed | plan, value, currency |
| 电子商务 | product_viewed | product_id, category, price |
product_added_to_cart | product_id, price, quantity |
checkout_started | cart_value, items_count |
// gtag.js custom event
gtag('event', 'signup_completed', {
'method': 'email',
'plan': 'free',
'user_id': userId
});
// GTM dataLayer
dataLayer.push({
'event': 'signup_completed',
'method': 'email',
'plan': 'free'
});
增强型衡量功能(在 GA4 中启用):page_view, scroll, outbound_click, site_search, video_engagement, file_download。
转化: 管理 → 事件 → 切换“标记为转化”。计数方式:每次会话一次(如表单提交)或每次发生都计数(如购买)。
规范:utm_source={channel}&utm_medium={cpc|email|organic|social}&utm_campaign={id}&utm_content={variant}&utm_term={keyword}
| 指标 | 良好 | 警告 | 较差 | 较差时的行动 |
|---|---|---|---|---|
| 平均页面停留时间 | >3 分钟 | 1–3 分钟 | <1 分钟 | 提升内容深度 |
| 跳出率 | <40% | 40–70% | >70% | 增加内部链接,改进引言 |
| 互动率 | >60% | 30–60% | <30% | 审查内容质量 |
| 滚动深度 | >75% | 50–75% | <50% | 添加视觉分隔 |
| 每次会话浏览页数 | >2.5 | 1.5–2.5 | <1.5 | 改进内部链接 |
| 指标 | 良好 | 警告 | 较差 | 较差时的行动 |
|---|---|---|---|---|
| 点击率 | >5% | 2–5% | <2% | 改进标题/元描述 |
| 平均排名 | 1–3 | 4–10 | >10 | 强化内容,建立链接 |
| 展示次数 | 增长 | 稳定 | 下降 | 更新内容 |
高参与度
│
┌──────────────┼──────────────┐
│ 隐藏的宝石 │ 明星 │
│ 低流量 │ 高流量 │
│ → 推广 │ → 维护 │
低 ────────┼──────────────┼──────────────┼─── 高
流量 │ 表现不佳 │ 流失 │ 流量
│ 低流量 │ 高流量 │
│ → 重做 │ → 优化 │
└──────────────┼──────────────┘
│
低参与度
| 指标 | 显著变化 | 警报级别 |
|---|---|---|
| 流量 | 周环比 ±30% | 高 |
| 点击率 | 周环比 ±1 个百分点 | 中 |
| 排名 | ±5 个位置 | 高 |
| 跳出率 | 周环比 ±10 个百分点 | 中 |
代表客户价值的唯一指标:
| 公司 | 北极星指标 |
|---|---|
| Slack | 周活跃用户数 |
| Airbnb | 预订晚数 |
| Spotify | 收听时长 |
| Shopify | 商品交易总额 |
标准:代表客户价值,与收入相关,可频繁测量,能凝聚团队。
| 阶段 | 指标 |
|---|---|
| 获客 | 流量来源,每次点击费用,访客 → 注册转化率 |
| 激活 | 注册 → 首次核心操作,价值实现时间,引导完成率 |
| 留存 | 日活/月活比率(粘性),D1/D7/D30 留存率,流失率 |
| 收入 | 月度/年度经常性收入,每用户平均收入,客户终身价值,LTV:CAC 比率 |
| 推荐 | 病毒系数,推荐注册数,净推荐值 |
| 时间段 | 良好 | 较差 |
|---|---|---|
| D1 | 60–80% | <40% |
| D7 | 40–60% | <10% |
| D30 | 30–50% | <2% |
良好 = 曲线趋于平缓。较差 = 急剧下降。
| 漏斗 | 步骤 |
|---|---|
| 电子商务 | 推广 → 搜索 → 产品浏览 → 加入购物车 → 购买 |
| SaaS 注册 | 着陆页 → 注册 → 邮箱验证 → 引导完成 |
| 内容 | 文章浏览 → 评论 → 分享 → 订阅 |
有关使用 Plotly 可视化的 Python 实现,请参见 examples/。
根据 Russell Brunson 的框架评估现有漏斗:钩子 → 故事 → 提案。
| 维度 | 权重 | 衡量内容 |
|---|---|---|
| 钩子强度 | 2x | 停止滚动,抓住注意力 |
| 故事关联性 | 1.5x | 建立情感联系和信任 |
| 提案清晰度 | 2x | 清晰、有吸引力、不可抗拒 |
| 价值阶梯匹配度 | 1x | 符合升级路径 |
| 流量匹配度 | 1.5x | 与流量温度匹配 |
| 转化路径 | 1x | 下一步清晰且无摩擦 |
| 分数 | 评估 |
|---|---|
| 85–100 | 转化机器 — 准备扩大规模 |
| 70–84 | 强大漏斗 — 修复弱点,然后扩大规模 |
| 55–69 | 泄漏漏斗 — 在扩大流量前修复 |
| 40–54 | 破损漏斗 — 重建关键组件 |
| 0–39 | 功能失效 — 重新开始 |
| 温度 | 他们了解 | 合适的漏斗 |
|---|---|---|
| 冷 | 对你一无所知 | 潜在客户漏斗,价值优先的内容 |
| 温 | 问题 + 你的解决方案 | 低价引流品,网络研讨会,挑战 |
| 热 | 准备购买 | 销售页面,订单表单,通话预约 |
完整的评分标准和示例,请参见 references/full-guide.md。
投资回报率: (净利润 / 总投资) × 100%
盈亏平衡点: 投资 / 月度净利润
投资回收期: 投资 / 月度净利润
始终建模最佳 / 现实 / 最差情况:
| 情景 | 假设 | 收入 | 利润 | 投资回报率 | 评估 |
|---|---|---|---|---|---|
| 最差 | 悲观 | 风险水平 | |||
| 现实 | 预期 | 目标 | |||
| 最佳 | 乐观 | 上升空间 |
决策规则: 如果最差情况下的投资回报率 ≥ 0%,则投资风险较低。
[投资] 在 [转化/增长率] 下实现 [ROI%] 的投资回报率。
盈亏平衡点出现在 [阈值],投资回收期为 [月数]。
投资 [推荐/不推荐],因为 [原因]。
详细公式(净现值、客户终身价值、客户获取成本、敏感性分析),请参见 references/roi-reference.md。
| 类别 | 工具 |
|---|---|
| 事件跟踪 | Mixpanel, Amplitude, PostHog (开源) |
| 会话录制 | FullStory, LogRocket, Hotjar |
| A/B 测试 | Optimizely, VWO |
| 网站分析 | GA4, Google Search Console |
| 标签管理 | Google Tag Manager |
每周安装量
107
代码仓库
GitHub 星标数
18
首次出现
14 天前
安全审计
安装于
opencode107
gemini-cli33
github-copilot33
codex33
amp33
cline33
End-to-end analytics: set up tracking, interpret data, analyze funnels, measure product engagement, validate conversion paths, and calculate ROI.
Principle: Track for decisions, not data — every event should inform an action.
Format: object_action in lowercase snake_case.
signup_completed | cta_hero_clicked | checkout_started | onboarding_step_completed
Rules: Specific over vague (cta_hero_clicked not button_clicked), past tense for completed actions, context in properties not event name.
| Category | Event | Key Properties |
|---|---|---|
| Marketing | page_view | page_title, page_location, referrer |
cta_clicked | button_text, location, page | |
form_submitted | form_type, page | |
signup_completed | method, plan | |
| Product | onboarding_step_completed | step_number, step_name |
feature_used | feature_name, context | |
trial_started | plan, source | |
purchase_completed | plan, value, currency | |
| E-commerce | product_viewed | product_id, category, price |
product_added_to_cart | product_id, price, quantity | |
checkout_started | cart_value, items_count |
// gtag.js custom event
gtag('event', 'signup_completed', {
'method': 'email',
'plan': 'free',
'user_id': userId
});
// GTM dataLayer
dataLayer.push({
'event': 'signup_completed',
'method': 'email',
'plan': 'free'
});
Enhanced Measurement (enable in GA4): page_view, scroll, outbound_click, site_search, video_engagement, file_download.
Conversions: Admin → Events → Toggle "Mark as conversion." Counting: once per session (form submit) or every time (purchase).
Convention: utm_source={channel}&utm_medium={cpc|email|organic|social}&utm_campaign={id}&utm_content={variant}&utm_term={keyword}
| Metric | Good | Warning | Poor | Action When Poor |
|---|---|---|---|---|
| Avg Time on Page | >3 min | 1–3 min | <1 min | Improve content depth |
| Bounce Rate | <40% | 40–70% | >70% | Add internal links, improve intro |
| Engagement Rate | >60% | 30–60% | <30% | Review content quality |
| Scroll Depth | >75% | 50–75% | <50% | Add visual breaks |
| Pages/Session | >2.5 | 1.5–2.5 | <1.5 | Improve internal linking |
| Metric | Good | Warning | Poor | Action When Poor |
|---|---|---|---|---|
| CTR | >5% | 2–5% | <2% | Improve title/meta description |
| Avg Position | 1–3 | 4–10 | >10 | Strengthen content, build links |
| Impressions | Growing | Stable | Declining | Refresh content |
High Engagement
│
┌──────────────┼──────────────┐
│ HIDDEN GEM │ STAR │
│ Low traffic │ High traffic│
│ → Promote │ → Maintain │
Low ───────┼──────────────┼──────────────┼─── High
Traffic │ UNDERPERFORM│ LEAKY │ Traffic
│ Low traffic │ High traffic│
│ → Rework │ → Optimize │
└──────────────┼──────────────┘
│
Low Engagement
| Metric | Significant Change | Alert Level |
|---|---|---|
| Traffic | ±30% WoW | HIGH |
| CTR | ±1pp WoW | MEDIUM |
| Position | ±5 positions | HIGH |
| Bounce Rate | ±10pp WoW | MEDIUM |
The ONE metric that represents customer value:
| Company | North Star |
|---|---|
| Slack | Weekly Active Users |
| Airbnb | Nights Booked |
| Spotify | Time Listening |
| Shopify | GMV |
Criteria: Represents customer value, correlates with revenue, measurable frequently, rallies the team.
| Stage | Metrics |
|---|---|
| Acquisition | Traffic sources, CPC, visitor → signup rate |
| Activation | Signup → first core action, time to value, onboarding completion |
| Retention | DAU/MAU (stickiness), D1/D7/D30 retention, churn rate |
| Revenue | MRR/ARR, ARPU, LTV, LTV:CAC ratio |
| Referral | Viral coefficient, referral signups, NPS |
| Timeframe | Good | Bad |
|---|---|---|
| D1 | 60–80% | <40% |
| D7 | 40–60% | <10% |
| D30 | 30–50% | <2% |
Good = flattening curve. Bad = steep drop-off.
| Funnel | Steps |
|---|---|
| E-commerce | Promotion → Search → Product View → Add to Cart → Purchase |
| SaaS Signup | Landing Page → Sign Up → Email Verify → Onboarding Complete |
| Content | Article View → Comment → Share → Subscribe |
See examples/ for Python implementations with Plotly visualizations.
Score existing funnels against Russell Brunson's framework: Hook → Story → Offer.
| Dimension | Weight | What It Measures |
|---|---|---|
| Hook Strength | 2x | Stops the scroll, grabs attention |
| Story Connection | 1.5x | Creates emotional connection and belief |
| Offer Clarity | 2x | Clear, compelling, irresistible |
| Value Ladder Fit | 1x | Fits the ascension path |
| Traffic Match | 1.5x | Matched to traffic temperature |
| Conversion Path | 1x | Next step obvious and frictionless |
| Score | Verdict |
|---|---|
| 85–100 | Conversion Machine — Ready to scale |
| 70–84 | Strong Funnel — Fix weak points, then scale |
| 55–69 | Leaky Funnel — Fix before scaling traffic |
| 40–54 | Broken Funnel — Rebuild key components |
| 0–39 | Non-Functional — Start over |
| Temperature | They Know | Appropriate Funnel |
|---|---|---|
| Cold | Nothing about you | Lead funnel, value-first content |
| Warm | Problem + your solution | Tripwire, webinar, challenge |
| Hot | Ready to buy | Sales page, order form, call booking |
For complete scoring criteria and examples, see references/full-guide.md.
ROI: (Net Profit / Total Investment) × 100%
Break-Even: Investment / Monthly Net Profit
Payback Period: Investment / Monthly Net Profit
Always model Best / Realistic / Worst:
| Case | Assumptions | Revenue | Profit | ROI | Assessment |
|---|---|---|---|---|---|
| Worst | Pessimistic | Risk level | |||
| Realistic | Expected | Target | |||
| Best | Optimistic | Upside |
Decision rule: If worst-case ROI ≥ 0%, investment is low-risk.
[Investment] achieves [ROI%] ROI at [conversion/growth rate].
Break-even occurs at [threshold], with payback in [months].
Investment is [recommended/not recommended] because [reason].
For detailed formulas (NPV, LTV, CAC, sensitivity analysis), see references/roi-reference.md.
| Category | Tools |
|---|---|
| Event Tracking | Mixpanel, Amplitude, PostHog (open-source) |
| Session Recording | FullStory, LogRocket, Hotjar |
| A/B Testing | Optimizely, VWO |
| Web Analytics | GA4, Google Search Console |
| Tag Management | Google Tag Manager |
Weekly Installs
107
Repository
GitHub Stars
18
First Seen
14 days ago
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode107
gemini-cli33
github-copilot33
codex33
amp33
cline33
DOCX文件创建、编辑与分析完整指南 - 使用docx-js、Pandoc和Python脚本
50,600 周安装
故事创意生成器:基于情感类型的AI写作工具,生成科幻/奇幻/小说灵感
285 周安装
Sentry Android SDK 完整设置指南:错误监控、性能剖析、ANR检测
287 周安装
Claude Reflect - AI代码助手自我学习系统,从用户修正中自动捕获知识
282 周安装
Nx Monorepo 完整指南:TypeScript/JavaScript 项目智能构建与模块联邦
282 周安装
技能编写器 (skill-writer) | 技能创建与优化规范工作流程指南
295 周安装
品牌保护策略指南:如何发现、举报和预防品牌冒用、商标侵权与钓鱼网站
293 周安装