analytics-tracking by kostja94/marketing-skills
npx skills add https://github.com/kostja94/marketing-skills --skill analytics-tracking指导分析实施:GA4 设置、事件追踪、转化和数据质量。适用于跨营销渠道的网站和应用追踪。
调用时机:在首次使用时,如果适用,用 1-2 句话开头说明此技能涵盖的内容及其重要性,然后提供主要输出。在后续使用或用要求跳过时,直接进入主要输出。
user_id;发送到 GA4追踪关键文章上的 CTA 点击以衡量内容投资回报率:
| 操作 | 目的 |
|---|---|
| 每个 CTA 的事件 | 例如,带有 content_url、content_type 的 cta_click |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 转化 | 在 GA4 中标记为转化以进行归因 |
| 用途 | 比较高绩效与低绩效内容;优化 CTA 位置和文案 |
查看 seo-monitoring 以获取文章数据库和基准背景。
| 组件 | 目的 |
|---|---|
| 数据仓库 | 集中化数据;BI 报告 |
| 事件追踪 | 用户行为;漏斗映射 |
| 归因 | 广告像素;归因模型;从展示到销售的追踪 |
优化流程:清晰的 UTM + 转化事件 → 归因报告 → 优化渠道组合。
G-XXXXXXXXXX)在 管理 > 数据流 > 增强型衡量 中启用,以自动追踪:
| 类型 | 描述 |
|---|---|
| 自动收集 | page_view, first_visit, session_start |
| 增强型衡量 | scroll, click, file_download 等 |
| 推荐事件 | purchase, sign_up, search 等 |
| 自定义事件 | 特定业务操作 |
snake_case,小写download_pdf, submit_form, video_playpricing_page_scroll 对比通用的 scrollgtag('event', '<event_name>', {
<parameter_name>: <value>,
// 例如 value: 99.99, currency: 'USD'
});
放置在 Google 标签代码片段下方。事件在页面加载或用户操作(例如,按钮点击)时触发。
| 事件 | 用途 | 关键参数 |
|---|---|---|
purchase | 电子商务 | value, currency, items |
sign_up | 注册 | method |
login | 登录 | method |
search | 站内搜索 | search_term |
view_item | 商品浏览 | items |
add_to_cart | 加入购物车 | items |
content_type, item_id)归因模型决定了转化功劳如何在各个接触点之间分配。使用归因数据来优化广告和增长渠道。
| 模型 | 用途 |
|---|---|
| 数据驱动 (GA4 默认) | 机器学习根据实际贡献分配功劳;最适合多触点旅程 |
| 最终点击 | 100% 归功于最终接触点;简单但低估了认知/考虑阶段的价值 |
优化流程:清晰的 UTM(来源、媒介、广告系列)+ 转化事件 → GA4 归因报告 → 按归因转化比较渠道 → 将预算重新分配给能带来效果的广告/渠道。不一致的 UTM 会碎片化数据;多触点归因需要可靠的接触点数据。
| 工具 | 用途 |
|---|---|
| 实时报告 | 查看事件触发情况 |
| DebugView | 详细的事件/参数检查;需要调试模式 |
| GA4 调试模式 | gtag('config', 'G-XXX', { 'debug_mode': true }); 或 GTM 预览模式 |
每周安装量
222
代码仓库
GitHub 星标数
237
首次出现
2026年2月27日
安全审计
安装于
kimi-cli207
cursor207
amp206
gemini-cli206
codex206
opencode206
Guides analytics implementation: GA4 setup, event tracking, conversions, and data quality. Applies to web and app tracking across marketing channels.
When invoking : On first use , if helpful, open with 1-2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.
user_id when user is identified (e.g., login); send to GA4Track CTA clicks on key articles to measure content ROI:
| Action | Purpose |
|---|---|
| Event per CTA | e.g., cta_click with content_url, content_type |
| Conversion | Mark as conversion in GA4 for attribution |
| Use | Compare high vs low performers; optimize CTA placement and copy |
See seo-monitoring for article database and benchmark context.
| Component | Purpose |
|---|---|
| Data warehouse | Centralized data; BI reporting |
| Event tracking | User behavior; funnel mapping |
| Attribution | Ad pixels; attribution model; impression-to-sale tracking |
Optimization flow : Clean UTM + conversion events → attribution reports → optimize channel mix.
G-XXXXXXXXXX)Enable in Admin > Data Streams > Enhanced Measurement for automatic tracking of:
| Type | Description |
|---|---|
| Automatically collected | page_view, first_visit, session_start |
| Enhanced measurement | scroll, click, file_download, etc. |
| Recommended | purchase, sign_up, search, etc. |
| Custom | Business-specific actions |
snake_case, lowercasedownload_pdf, submit_form, video_playpricing_page_scroll vs generic scrollgtag('event', '<event_name>', {
<parameter_name>: <value>,
// e.g. value: 99.99, currency: 'USD'
});
Place below the Google tag snippet. Events fire on page load or user action (e.g., button click).
| Event | Use | Key Parameters |
|---|---|---|
purchase | E-commerce | value, currency, items |
sign_up | Registration | method |
login | Login | method |
search | Site search | search_term |
view_item | Product view | items |
content_type, item_id)Attribution models determine how conversion credit is assigned across touchpoints. Use attribution data to optimize ads and growth channels.
| Model | Use |
|---|---|
| Data-driven (GA4 default) | ML assigns credit by actual contribution; best for multi-touch journeys |
| Last-click | 100% to final touchpoint; simple but undervalues awareness/consideration |
Optimization flow : Clean UTM (source, medium, campaign) + conversion events → GA4 attribution reports → compare channels by attributed conversions → reallocate budget to ads/channels that drive results. Inconsistent UTM fragments data; multi-touch attribution requires reliable touchpoint data.
Reference : UTM.io – UTMs for Marketing Attribution, GA4 – Get started with attribution
| Tool | Use |
|---|---|
| Realtime | See events as they fire |
| DebugView | Detailed event/parameter inspection; requires debug mode |
| GA4 Debug mode | gtag('config', 'G-XXX', { 'debug_mode': true }); or GTM preview |
Weekly Installs
222
Repository
GitHub Stars
237
First Seen
Feb 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
kimi-cli207
cursor207
amp206
gemini-cli206
codex206
opencode206
DOCX文件创建、编辑与分析完整指南 - 使用docx-js、Pandoc和Python脚本
44,900 周安装
add_to_cart |
| Add to cart |
| items |