Community研究与数据分析github.com

LeoYeAI/openclaw-marketing-skills

当用户希望设置、改进或审核分析跟踪与衡量时使用。也适用于用户提及“设置跟踪”、“GA4”、“Google Analytics”、“转化跟踪”、“事件跟踪”、“UTM参数”、“标签管理器”、“GTM”、“分析实现”、“跟踪计划”、“如何衡量这个”、“跟踪转化”、“归因”、“Mixpanel”、“Segment”、“我的事件是否触发”或“分析不工作”时。每当有人询问如何知道某事是否正常工作时使用。

openclaw-marketing-skills 是什么?

该技能为AI代理提供了全面的分析跟踪实施与衡量专业能力。它专为市场营销、产品决策场景设计,支持GA4、Mixpanel、Segment等多种工具平台。技能的核心原则是“为决策而跟踪,而非为数据”,强调从业务问题出发,逆向设计跟踪计划。它提供了从初始业务评估到事件命名规范、GA4/GTM实施、UTM策略、调试验证以及隐私合规的完整工作流。当用户需要设置转化跟踪、审计现有分析配置或排查跟踪问题时,该技能能够指导代理逐步完成分析实施,确保收集的数据能够驱动有意义的行动决策。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/LeoYeAI/openclaw-marketing-skills/tree/main/skills/analytics-tracking

Installed? Explore more 研究与数据分析 skills: affaan-m/uspto-database, affaan-m/scholar-evaluation, affaan-m/literature-review · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

分析跟踪

您是分析实施与衡量的专家。您的目标是帮助建立跟踪系统,为营销和产品决策提供可操作的洞察。

初步评估

首先检查产品营销上下文: 如果存在 .agents/product-marketing-context.md(或旧版配置中的 .agents/product-marketing-context.md),请在提问前阅读。利用该上下文,仅询问尚未涵盖或此任务特有信息。

在实施跟踪前,请了解:

  1. 业务背景 - 这些数据将用于哪些决策?关键转化是什么?
  2. 当前状态 - 已有哪些跟踪?正在使用哪些工具?
  3. 技术上下文 - 技术栈是什么?是否有隐私/合规要求?

核心原则

1. 为决策而跟踪,不为数据

  • 每个事件都应服务于某个决策
  • 避免虚荣指标
  • 事件质量 > 数量

2. 从问题出发

  • 你需要了解什么?
  • 你将基于这些数据采取哪些行动?
  • 逆向推导你需要跟踪的内容

3. 确保命名一致性

  • 命名规范很重要
  • 先建立模式,再实施
  • 记录所有内容

4. 维护数据质量

  • 验证实施
  • 监控问题
  • 干净数据 > 更多数据

跟踪计划框架

结构

事件名称 | 类别 | 属性 | 触发条件 | 备注
--------- | -------- | ---------- | ------- | -----

事件类型

类型示例
页面浏览自动,带元数据增强
用户操作按钮点击、表单提交、功能使用
系统事件注册完成、购买、订阅变更
自定义转化目标完成、漏斗阶段

完整事件列表:请参阅 参考文献/事件库.md


事件命名规范

推荐格式:对象-动作

signup_completed
button_clicked
form_submitted
article_read
checkout_payment_completed

最佳实践

  • 使用小写和下划线
  • 具体化:cta_hero_clicked 优于 button_clicked
  • 将上下文包含在属性中,而非事件名中
  • 避免空格和特殊字符
  • 记录决策

基本事件

营销网站

事件属性
cta_clickedbutton_text, location
form_submittedform_type
signup_completedmethod, source
demo_requested-

产品/应用

事件属性
onboarding_step_completedstep_number, step_name
feature_usedfeature_name
purchase_completedplan, value
subscription_cancelledreason

按业务类型的完整事件库:请参阅 参考文献/事件库.md


事件属性

标准属性

类别属性
页面page_title, page_location, page_referrer
用户user_id, user_type, account_id, plan_type
推广活动source, medium, campaign, content, term
产品product_id, product_name, category, price

最佳实践

  • 使用一致的属性名称
  • 包含相关上下文
  • 不要重复自动属性
  • 避免在属性中包含个人身份信息

GA4 实施

快速设置

  1. 创建GA4媒体资源和数据流
  2. 安装 gtag.js 或 GTM
  3. 启用增强型衡量
  4. 配置自定义事件
  5. 在管理后台标记转化

自定义事件示例

gtag('event', 'signup_completed', {
  'method': 'email',
  'plan': 'free'
});

详细的GA4实施指南:请参阅 参考文献/ga4-implementation.md


Google 跟踪代码管理器

容器结构

组件用途
代码执行的代码(GA4、像素)
触发器代码触发时机(页面浏览、点击)
变量动态值(点击文本、数据层)

数据层模式

dataLayer.push({
  'event': 'form_submitted',
  'form_name': 'contact',
  'form_location': 'footer'
});

详细的GTM实施指南:请参阅 参考文献/gtm-implementation.md


UTM 参数策略

标准参数

参数用途示例
utm_source流量来源google, newsletter
utm_medium营销媒介cpc, email, social
utm_campaign推广活动名称spring_sale
utm_content区分版本hero_cta
utm_term付费搜索关键词running+shoes

命名规范

  • 全部小写
  • 一致地使用下划线或连字符
  • 具体但简洁:blog_footer_cta,而不是 cta1
  • 在电子表格中记录所有UTM

调试与验证

测试工具

工具用途
GA4 DebugView实时事件监控
GTM 预览模式发布前测试触发器
浏览器扩展Tag Assistant, dataLayer Inspector

验证清单

  • 事件在正确的触发器上触发
  • 属性值正确填充
  • 无重复事件
  • 跨浏览器和移动设备正常工作
  • 转化正确记录
  • 无个人身份信息泄露

常见问题

问题检查项
事件未触发触发器配置、GTM是否加载
值错误变量路径、数据层结构
重复事件多个容器、触发器触发两次

隐私与合规

注意事项

  • 欧盟/英国/加拿大需要Cookie同意
  • 分析属性中不得包含个人身份信息
  • 数据保留设置
  • 用户删除功能

实施

  • 使用同意模式(等待同意)
  • IP匿名化
  • 仅收集必要数据
  • 与同意管理平台集成

输出格式

跟踪计划文档

# [网站/产品] 跟踪计划

## 概述
- 工具:GA4, GTM
- 最后更新:[日期]

## 事件

| 事件名称 | 描述 | 属性 | 触发条件 |
|------------|-------------|------------|---------|
| signup_completed | 用户完成注册 | method, plan | 成功页面 |

## 自定义维度

| 名称 | 范围 | 参数 |
|------|-------|-----------|
| user_type | 用户 | user_type |

## 转化

| 转化 | 事件 | 计数方式 |
|------------|-------|----------|
| 注册 | signup_completed | 每次会话一次 |

任务特定问题

  1. 你正在使用哪些工具(GA4、Mixpanel等)?
  2. 你想跟踪哪些关键操作?
  3. 这些数据将用于哪些决策?
  4. 谁负责实施——开发团队还是营销团队?
  5. 是否有隐私/同意要求?
  6. 已经跟踪了哪些内容?

工具集成

实施请参考 工具注册表。主要分析工具:

工具最佳用途MCP指南
GA4网站分析,Google生态系统✓ga4.md
Mixpanel产品分析,事件跟踪-mixpanel.md
Amplitude产品分析,同期群分析-amplitude.md
PostHog开源分析,会话回放-posthog.md
Segment客户数据平台,数据路由-segment.md

相关技能

  • ab-test-setup:用于实验跟踪
  • seo-audit:用于自然流量分析
  • page-cro:用于转化率优化(使用这些数据)
  • revops:用于管线指标、CRM跟踪和收入归因

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," or "how long should I run this test." Use this whenever someone is comparing two approaches and wants to measure which performs better. For tracking implementation, see analytics-tra

LeoYeAI/openclaw-marketing-skills

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, or full ad variations — for any paid advertising platform. Also use when the user mentions 'ad copy variations,' 'ad creative,' 'generate headlines,' 'RSA headlines,' 'bulk ad copy,' 'ad iterations,' 'creative testing,' 'ad performance optimization,' 'write me some ads,' 'Facebook ad copy,' 'Google ad headlines,' 'LinkedIn ad text,' or 'I need more ad variations.' Use this whenever someone needs to produce ad copy at scale or iterate on existing ads. For campaign strategy and targeting, see paid-ads. For landing page copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize content for AI search engines, get cited by LLMs, or appear in AI-generated answers. Also use when the user mentions 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'generative engine optimization,' 'LLM optimization,' 'AI Overviews,' 'optimize for ChatGPT,' 'optimize for Perplexity,' 'AI citations,' 'AI visibility,' 'zero-click search,' 'how do I show up in AI answers,' 'LLM mentions,' or 'optimize for Claude/Gemini.' Use this whenever someone wants their content to be cited or surfaced by AI assistants and AI search engines. For traditional technical and on-page SEO audits, see seo-audit. For structured data implementation, see schema-markup.

LeoYeAI/openclaw-marketing-skills

When the user wants to reduce churn, build cancellation flows, set up save offers, recover failed payments, or implement retention strategies. Also use when the user mentions 'churn,' 'cancel flow,' 'offboarding,' 'save offer,' 'dunning,' 'failed payment recovery,' 'win-back,' 'retention,' 'exit survey,' 'pause subscription,' 'involuntary churn,' 'people keep canceling,' 'churn rate is too high,' 'how do I keep users,' or 'customers are leaving.' Use this whenever someone is losing subscribers o

LeoYeAI/openclaw-marketing-skills

Write B2B cold emails and follow-up sequences that get replies. Use when the user wants to write cold outreach emails, prospecting emails, cold email campaigns, sales development emails, or SDR emails. Also use when the user mentions "cold outreach," "prospecting email," "outbound email," "email to leads," "reach out to prospects," "sales email," "follow-up email sequence," "nobody's replying to my emails," or "how do I write a cold email." Covers subject lines, opening lines, body copy, CTAs, p

LeoYeAI/openclaw-marketing-skills

When the user wants to create competitor comparison or alternative pages for SEO and sales enablement. Also use when the user mentions 'alternative page,' 'vs page,' 'competitor comparison,' 'comparison page,' '[Product] vs [Product],' '[Product] alternative,' 'competitive landing pages,' 'how do we compare to X,' 'battle card,' or 'competitor teardown.' Use this for any content that positions your product against competitors. Covers four formats: singular alternative, plural alternatives, you v

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content strategy," "what should I write about," "content ideas," "blog strategy," "topic clusters," "content planning," "editorial calendar," "content marketing," "content roadmap," "what content should I create," "blog topics," "content pillars," or "I don't know what to write." Use this whenever someone needs help deciding what content to produce,

LeoYeAI/openclaw-marketing-skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' 'copy sweep,' 'tighten this up,' 'this reads awkwardly,' 'clean up this text,' 'too wordy,' or 'sharpen the messaging.' Use this when the user already has copy and wants it improved rather than rewritten from scratch. For writing new copy, see copywriting.

LeoYeAI/openclaw-marketing-skills

When the user wants to write, rewrite, or improve marketing copy for any page — including homepage, landing pages, pricing pages, feature pages, about pages, or product pages. Also use when the user says "write copy for," "improve this copy," "rewrite this page," "marketing copy," "headline help," "CTA copy," "value proposition," "tagline," "subheadline," "hero section copy," "above the fold," "this copy is weak," "make this more compelling," or "help me describe my product." Use this whenever s

LeoYeAI/openclaw-marketing-skills

When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program. Also use when the user mentions "email sequence," "drip campaign," "nurture sequence," "onboarding emails," "welcome sequence," "re-engagement emails," "email automation," "lifecycle emails," "trigger-based emails," "email funnel," "email workflow," "what emails should I send," "welcome series," or "email cadence." Use this for any multi-email automated flow. For cold out

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize any form that is NOT signup/registration — including lead capture forms, contact forms, demo request forms, application forms, survey forms, or checkout forms. Also use when the user mentions "form optimization," "lead form conversions," "form friction," "form fields," "form completion rate," "contact form," "nobody fills out our form," "form abandonment," "too many fields," "demo request form," or "lead form isn't converting." Use this for any non-signup form tha

LeoYeAI/openclaw-marketing-skills

When the user wants to plan, evaluate, or build a free tool for marketing purposes — lead generation, SEO value, or brand awareness. Also use when the user mentions "engineering as marketing," "free tool," "marketing tool," "calculator," "generator," "interactive tool," "lead gen tool," "build a tool for leads," "free resource," "ROI calculator," "grader tool," "audit tool," "should I build a free tool," or "tools for lead gen." Use this whenever someone wants to build something useful and give

LeoYeAI/openclaw-marketing-skills

Connect GetXAPI to pull public X/Twitter marketing signals into OpenClaw workflows. Use when the user wants social listening, tweet search, reply search, user lookup, or monitor setup driven by a Bearer-auth search backend. Enhances social-content, paid-ads, ad-creative, content-strategy, launch-strategy, and competitor-alternatives with real public conversation data.

LeoYeAI/openclaw-marketing-skills

Connect to Google Ads API to pull real account data — campaign performance, keyword health, wasted spend, search terms, impression share. Use when the user wants to audit their Google Ads account, find wasted budget, optimize keywords, or get data-driven recommendations. Enhances paid-ads and ad-creative skills with real numbers instead of guesswork. Triggers on: 'audit my Google Ads', 'find wasted spend', 'why are my ads not converting', 'Google Ads performance', 'which keywords to pause', 'Goo

LeoYeAI/openclaw-marketing-skills

When the user wants to plan a product launch, feature announcement, or release strategy. Also use when the user mentions 'launch,' 'Product Hunt,' 'feature release,' 'announcement,' 'go-to-market,' 'beta launch,' 'early access,' 'waitlist,' 'product update,' 'how do I launch this,' 'launch checklist,' 'GTM plan,' or 'we're about to ship.' Use this whenever someone is preparing to release something publicly. For ongoing marketing after launch, see marketing-ideas.

LeoYeAI/openclaw-marketing-skills

When the user wants to create, plan, or optimize a lead magnet for email capture or lead generation. Also use when the user mentions "lead magnet," "gated content," "content upgrade," "downloadable," "ebook," "cheat sheet," "checklist," "template download," "opt-in," "freebie," "PDF download," "resource library," "content offer," "email capture content," "Notion template," "spreadsheet template," or "what should I give away for emails." Use this for planning what to create and how to distribute

LeoYeAI/openclaw-marketing-skills

When the user needs marketing ideas, inspiration, or strategies for their SaaS or software product. Also use when the user asks for 'marketing ideas,' 'growth ideas,' 'how to market,' 'marketing strategies,' 'marketing tactics,' 'ways to promote,' 'ideas to grow,' 'what else can I try,' 'I don't know how to market this,' 'brainstorm marketing,' or 'what marketing should I do.' Use this as a starting point whenever someone is stuck or looking for inspiration on how to grow. For specific channel execution, see the relevant skill (paid-ads, social-content, email-sequence, etc.).

LeoYeAI/openclaw-marketing-skills

When the user wants to apply psychological principles, mental models, or behavioral science to marketing. Also use when the user mentions 'psychology,' 'mental models,' 'cognitive bias,' 'persuasion,' 'behavioral science,' 'why people buy,' 'decision-making,' 'consumer behavior,' 'anchoring,' 'social proof,' 'scarcity,' 'loss aversion,' 'framing,' or 'nudge.' Use this whenever someone wants to understand or leverage how people think and make decisions in a marketing context.

LeoYeAI/openclaw-marketing-skills

Connect to Meta Marketing API to pull real Facebook and Instagram ad data — campaign performance, creative fatigue, audience saturation, ROAS by ad set, frequency analysis, and Learning Phase status. Use when the user wants to audit their Meta/Facebook/Instagram ads, diagnose creative fatigue, find wasted budget, or get data-driven optimization. Enhances paid-ads and ad-creative skills with real Meta data. Triggers on: 'audit my Facebook ads', 'Instagram ads performance', 'Meta ads not convertin

LeoYeAI/openclaw-marketing-skills

When the user wants to optimize post-signup onboarding, user activation, first-run experience, or time-to-value. Also use when the user mentions "onboarding flow," "activation rate," "user activation," "first-run experience," "empty states," "onboarding checklist," "aha moment," "new user experience," "users aren't activating," "nobody completes setup," "low activation rate," "users sign up but don't use the product," "time to value," or "first session experience." Use this whenever users are si

相关技能