十年匠心定制 · 商业建站与技术教学双线并行 咨询热线:400-886-1026 service@lmnt.cn
ARTICLE DETAIL

资讯详情

深耕网站建设与运营推广的一线实战洞察。

analytics - SKILL

analytics - SKILL name: analyticsdescription: When the user wants to set up, improve, or audit analytics tracking and measurement. Also use when the user mentions “set up tracking,” “GA4,” “Google Analytics,” “conversion tracking,” “event tracking,” “UTM parameters,” “tag manager,” “GTM,” “analytics implementation,” tracking…risk: criticalsource: https://github.com/coreyhaines31/marketingskills/tree/main/skills/analyticssource_repo: coreyhaines31/marketingskillssource_type: communitydate_added: 2026-07-01license: MITlicense_source: https://github.com/coreyhaines31/marketingskills/blob/main/LICENSE分析跟踪何时使用当用户需要设置、改进或审计分析跟踪和测量时使用此技能。当用户提到“设置跟踪”、“GA4”、“Google Analytics”、“转化跟踪”、“事件跟踪”、“UTM 参数”、“标签管理器”、“GTM”、“分析实施”、“跟踪”等时也使用此技能。您是分析实施和测量方面的专家。您的目标是帮助建立跟踪系统以提供对营销和产品决策有可操作的洞察。初步评估首先检查产品营销上下文如果.agents/product-marketing.md存在或者.claude/product-marketing.md或者在旧版本中使用的旧文件名product-marketing-context.md在提问前请先阅读它。使用该上下文只询问未涵盖的信息或与此任务特定相关的信息。在实施跟踪之前请了解业务背景- 这些数据将为哪些决策提供依据关键转化指标是什么当前状态- 存在哪些跟踪使用了哪些工具技术背景- 技术栈是什么有没有隐私/合规要求核心原则1. 关注决策而不是数据每一个事件都应该影响决策避免虚荣指标事件的质量比数量更重要2. 从问题开始你需要知道什么你会根据这些数据采取什么行动倒推到你需要跟踪的内容3. 一致地命名事物命名规范很重要在实施之前建立模式记录一切4. 维护数据质量验证实现监控问题干净的数据比更多的数据更重要跟踪计划框架结构Event Name | Category | Properties | Trigger | Notes ---------- | -------- | ---------- | ------- | -----事件类型TypeExamplesPageviewsAutomatic, enhanced with metadataUser ActionsButton clicks, form submissions, feature usageSystem EventsSignup completed, purchase, subscription changedCustom ConversionsGoal completions, funnel stages有关完整活动列表请参见 references/event-library.md事件命名规范推荐格式对象-动作signup_completed button_clicked form_submitted article_read checkout_payment_completed最佳实践小写字母加下划线具体说明cta_hero_clicked与button_clicked将上下文包含在属性中而不是事件名称中避免空格和特殊字符记录决策重要事件营销网站EventPropertiescta_clickedbutton_text, locationform_submittedform_typesignup_completedmethod, sourcedemo_requested-产品/应用EventPropertiesonboarding_step_completedstep_number, step_namefeature_usedfeature_namepurchase_completedplan, valuesubscription_cancelledreason按业务类型查看完整事件库请参阅 references/event-library.md事件属性标准属性CategoryPropertiesPagepage_title, page_location, page_referrerUseruser_id, user_type, account_id, plan_typeCampaignsource, medium, campaign, content, termProductproduct_id, product_name, category, price最佳实践使用一致的属性名称包括相关背景不要重复自动属性在属性中避免使用个人身份信息GA4 实施快速设置创建 GA4 资产和数据流安装 gtag.js 或 GTM启用增强测量配置自定义事件在管理中标记转换自定义事件示例gtag(event,signup_completed,{method:email,plan:free});有关详细的 GA4 实施请参阅 references/ga4-implementation.md谷歌标签管理器容器结构ComponentPurposeTagsCode that executes (GA4, pixels)TriggersWhen tags fire (page view, click)VariablesDynamic values (click text, data layer)数据层模式dataLayer.push({event:form_submitted,form_name:contact,form_location:footer});有关详细的 GTM 实施请参阅 references/gtm-implementation.mdUTM 参数策略标准参数ParameterPurposeExampleutm_sourceTraffic sourcegoogle, newsletterutm_mediumMarketing mediumcpc, email, socialutm_campaignCampaign namespring_saleutm_contentDifferentiate versionshero_ctautm_termPaid search keywordsrunningshoes命名规范把所有字母改为小写始终一致地使用下划线或连字符具体但简明使用blog_footer_cta而不是cta1在电子表格中记录所有 UTM调试与验证测试工具ToolUse ForGA4 DebugViewReal-time event monitoringGTM Preview ModeTest triggers before publishBrowser ExtensionsTag Assistant, dataLayer Inspector验证清单事件在正确的触发器上触发属性值正确填充没有重复事件在各浏览器和移动设备上均可使用转换记录正确无个人身份信息泄露常见问题IssueCheckEvents not firingTrigger config, GTM loadedWrong valuesVariable path, data layer structureDuplicate eventsMultiple containers, trigger firing twice隐私与合规考虑因素在欧盟/英国/加拿大需要Cookie同意分析属性中没有个人身份信息数据保留设置用户删除功能实施使用同意模式等待同意IP 匿名化只收集你需要的与同意管理平台集成输出格式跟踪计划文档# [Site/Product] Tracking Plan ## Overview - Tools: GA4, GTM - Last updated: [Date] ## Events | Event Name | Description | Properties | Trigger | |------------|-------------|------------|---------| | signup_completed | User completes signup | method, plan | Success page | ## Custom Dimensions | Name | Scope | Parameter | |------|-------|-----------| | user_type | User | user_type | ## Conversions | Conversion | Event | Counting | |------------|-------|----------| | Signup | signup_completed | Once per session |特定任务问题你正在使用哪些工具GA4、Mixpanel 等你想跟踪哪些关键操作这些数据将为哪些决策提供参考由谁来实施——开发团队还是市场团队是否有隐私/同意的要求已经追踪了什么工具集成有关实现请参见 工具注册表。主要分析工具ToolBest ForMCPGuideGA4Web analytics, Google ecosystem✓ga4.mdMixpanelProduct analytics, event tracking-mixpanel.mdAmplitudeProduct analytics, cohort analysis-amplitude.mdPostHogOpen-source analytics, session replay-posthog.mdSegmentCustomer data platform, routing-segment.md相关技能AB测试用于实验跟踪SEO 审计用于有机流量分析cro用于转化优化使用此数据revops用于管道指标、CRM跟踪和收入归因限制仅当任务明确符合其上游来源和本地项目环境时才使用此技能。在应用更改之前验证命令、生成的代码、依赖项、凭证和外部服务的行为。不要将示例视为环境特定测试、安全审查或用户对破坏性或高成本操作的批准的替代。
返回列表