Token导航 LogoToken导航

Agent Skill · 研究检索

analytics-tracking(分析跟踪)

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

analytics-tracking 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 39,449。

总安装 1,411周安装 60GitHub Stars 103下载 494核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:analytics-tracking(分析跟踪)
来源仓库:https://github.com/borghei/claude-skills
仓库路径:skills/analytics-tracking
安装命令:
npx skills add https://github.com/borghei/claude-skills --skill analytics-tracking
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/borghei/claude-skills --skill analytics-tracking

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

专注营销埋点实施与审计,确保数据整理准确性与合规性。支持 GA4、Google Tag Manager 等平台的事件追踪与转化漏斗分析。提供 UTM 参数校验、去重规则检查与用户同意模式配置指导。涉及敏感数据时应启用脱敏机制,避免泄露用户隐私信息。

analytics-tracking 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/analytics-tracking

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/borghei/claude-skills --skill analytics-tracki…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

analytics-tracking 怎么安装?

在终端执行 npx skills add https://github.com/borghei/claude-skills --skill analytics-tracking。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

analytics-tracking 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

analytics-tracking 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

analytics-tracking 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

analytics-tracking 用的人多吗?

公开数据是累计安装 1,411 次,近一周安装 60 次,下载 494 次,GitHub 103 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

analytics-tracking 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
analytics-tracking

分析跟踪 · 本页

1,411103需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Analytics Tracking - Implementation & Auditing

Category: Marketing Tags: GA4, Google Tag Manager, event tracking, conversion tracking, UTM, analytics audit, consent mode

Overview

Analytics Tracking is the implementation layer for marketing measurement. Bad tracking is worse than no tracking -- duplicate events, missing parameters, unconsented data, and broken conversions lead to decisions based on bad data. This skill covers building tracking right the first time and finding what is broken when it is not.

This skill handles implementation only. For analyzing campaign performance data, use campaign-analytics. For product analytics and in-app behavior, use the product-team skills.


Operating Modes

Mode 1: Build From Scratch

No analytics in place. Build the tracking plan, implement GA4 + GTM, define event taxonomy, configure conversions.

Mode 2: Audit Existing Tracking

Tracking exists but data cannot be trusted. Audit coverage, identify gaps, clean up duplicates, fix consent issues.

Mode 3: Debug Specific Issues

Events are missing, conversions do not match, GTM preview shows fires but GA4 does not record. Structured debugging workflow.


Event Taxonomy Design

Get this right before touching GA4 or GTM. Retrofitting taxonomy is painful and expensive.

Naming Convention

Format: object_action (snake_case, past tense verb)

CorrectWrongWhy Wrong
form_submittedsubmitFormcamelCase, verb-first
plan_selectedclickPricingPlanImplementation detail, not user action
video_startedVideoStartPascalCase, inconsistent tense
checkout_completedpurchaseAmbiguous, not a verb phrase

Rules:

  1. Always noun_verb order, never verb_noun
  2. Snake_case only -- no camelCase, no hyphens, no PascalCase
  3. Past tense verbs: _started, _completed, _failed, _viewed
  4. Specific enough to be unambiguous, not so verbose it is a sentence
  5. Prefix with domain when needed: onboarding_step_completed, billing_plan_selected

Standard Event Parameters

Every custom event should include applicable parameters from this table:

ParameterTypeExampleRequired When
user_idstringusr_abc123Always (if authenticated)
plan_namestringprofessionalBilling/pricing events
valuenumber99.00Revenue events
currencystringUSDAlways with value
content_groupstringonboardingPage/flow grouping
methodstringgoogle_oauthSignup/login events
step_namestringconnect_accountMulti-step flows
step_numbernumber3Multi-step flows
sourcestringpricing_pageCTA click events

SaaS Event Taxonomy (Reference)

Core Funnel:

visitor_arrived              (automatic page_view in GA4)
signup_started               (user clicked "Sign up")
signup_completed             (account created)
trial_started                (free trial began)
onboarding_step_completed    (params: step_name, step_number)
feature_activated            (params: feature_name)
plan_selected                (params: plan_name, billing_period)
checkout_started             (params: value, currency, plan_name)
checkout_completed           (params: value, currency, transaction_id)
subscription_renewed         (params: value, plan_name)
subscription_cancelled       (params: cancel_reason, plan_name)

Micro-Conversions:

pricing_viewed
demo_requested               (params: source)
form_submitted               (params: form_name, form_location)
content_downloaded           (params: content_name, content_type)
video_started                (params: video_title)
video_completed              (params: video_title, percent_watched)
chat_opened
help_article_viewed          (params: article_name)
invite_sent                  (params: recipient_role)
integration_connected        (params: integration_name)

GA4 Configuration

Data Stream Setup

  1. Create property: GA4 Admin > Properties > Create
  2. Add web data stream with your domain
  3. Enhanced Measurement -- review each:

- Page views: Keep enabled - Scrolls: Keep enabled - Outbound clicks: Keep enabled - Site search: Enable if you have search - Video engagement: Disable if tracking videos manually (avoids duplicates) - File downloads: Disable if tracking via GTM (for better parameters)

  1. Configure domains: add all subdomains in your funnel
  2. Data retention: Set to 14 months (maximum for free GA4)

Conversion Events

Mark as conversions in GA4 Admin > Conversions:

  • signup_completed
  • checkout_completed
  • demo_requested
  • trial_started

Rules:

  • Maximum 30 conversion events per property -- curate carefully
  • GA4 conversions are retroactive for 6 months when enabled
  • Do not mark micro-conversions as conversions unless optimizing ad campaigns for them
  • Conversion counting: set to "once per session" for lead events, "every" for purchase events

Custom Dimensions

Register custom dimensions for any event parameter you want to filter/segment by:

ParameterScopeDimension Name
plan_nameEventPlan Name
user_idUserUser ID
content_groupEventContent Group
feature_nameEventFeature Name

Register in GA4 Admin > Custom definitions > Create custom dimension.


Google Tag Manager Implementation

Container Architecture

GTM Container
├── Tags
│   ├── GA4 Configuration (All Pages trigger)
│   ├── GA4 Event Tags (one per custom event)
│   ├── Google Ads Conversion Tags (per conversion action)
│   └── Meta Pixel / LinkedIn Insight (if running ads)
├── Triggers
│   ├── All Pages (Page View)
│   ├── DOM Ready
│   ├── Custom Event triggers (one per dataLayer event)
│   └── Element Click triggers (CSS selector based)
└── Variables
    ├── Data Layer Variables (one per dataLayer key)
    ├── Constants (GA4 Measurement ID, etc.)
    └── Lookup Tables (if needed for mapping)

Implementation Pattern: Data Layer Push

Your application pushes events to the data layer. GTM picks them up and sends to GA4.

Application code:

// Push event when user completes signup
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'signup_completed',
  method: 'email',
  user_id: userId,
  plan_name: 'trial'
});

GTM configuration:

Trigger:
  Type: Custom Event
  Event name: signup_completed

Tag:
  Type: GA4 Event
  Event name: signup_completed
  Parameters:
    method:    {{DLV - method}}
    user_id:   {{DLV - user_id}}
    plan_name: {{DLV - plan_name}}

SPA Handling

Single Page Applications need special attention because page views do not fire automatically on route changes.

Option A: History change trigger (GTM built-in)

  • Enable "History Change" trigger in GTM
  • Fires GA4 page_view on every pushState/popState

Option B: DataLayer push on route change (more control)

// In your router (React Router, Next.js, etc.)
router.events.on('routeChangeComplete', (url) => {
  window.dataLayer.push({
    event: 'page_view',
    page_location: url,
    page_title: document.title
  });
});

Conversion Tracking: Ad Platforms

Google Ads

Recommended approach: Import GA4 conversions into Google Ads (single source of truth).

  1. Link GA4 and Google Ads accounts
  2. In Google Ads > Goals > Conversions > Import > Google Analytics
  3. Select GA4 conversion events to import
  4. Set attribution model: Data-driven (if 50+ conversions/month), otherwise Last-click
  5. Conversion window: 30 days for lead gen, 90 days for high-consideration B2B

Enhanced Conversions: Enable for 15-30% better conversion measurement. Sends hashed first-party data (email, phone) to match conversions that cookies miss.

Meta (Facebook/Instagram)

  1. Install Meta Pixel base code via GTM
  2. Configure standard events: PageView, Lead, CompleteRegistration, Purchase
  3. Conversions API (CAPI): strongly recommended -- client-side pixel loses approximately 30% of conversions due to ad blockers and iOS App Tracking Transparency
  4. Deduplication: when using both pixel and CAPI, send the same event_id to prevent double-counting

LinkedIn Insight Tag

  1. Install via GTM (Tag type: LinkedIn Insight)
  2. Configure conversion events in LinkedIn Campaign Manager
  3. Match events to your taxonomy: signup_completed -> LinkedIn "Sign-up" conversion

UTM Strategy

Convention Enforcement

ParameterConventionExample
utm_sourcePlatform name, lowercasegoogle, linkedin, newsletter
utm_mediumTraffic typecpc, email, social, organic
utm_campaignCampaign identifierq1-trial-push, brand-awareness-2026
utm_contentCreative varianthero-cta-blue, sidebar-text-link
utm_termPaid keyword (search only)saas-analytics-tool

Critical rules:

  • Never tag organic traffic with UTMs (overrides GA4 automatic attribution)
  • Never tag direct/internal links with UTMs
  • Use a UTM builder spreadsheet or tool -- manual entry causes inconsistency
  • Lowercase everything -- Google and google are different sources in GA4

Attribution Windows

PlatformDefaultRecommended for SaaS
GA430 days30-90 days (match your sales cycle)
Google Ads30 days30 days (trial), 90 days (enterprise)
Meta7-day click, 1-day view7-day click only (view-through inflates)
LinkedIn30 days30 days

Cross-Domain Tracking

For funnels crossing domains (e.g., acme.com to app.acme.com):

  1. GA4 Admin > Data Streams > Configure tag settings > Configure your domains > Add both domains
  2. GTM: GA4 Configuration tag > Fields to Set > linker > Add domains
  3. Admin > Data Streams > List unwanted referrals > Add both domains

Verification: Visit domain A, click link to domain B, check GA4 DebugView. The session should NOT restart. If a new session starts, cross-domain tracking is broken.


Consent Management

Consent Mode v2

Required for EU compliance and for maintaining data quality in consent-heavy markets.

SettingNo Consent ModeBasicAdvanced
User declines cookiesZero dataZero dataModeled data (GA4 estimates)
Data quality impact25-40% data loss in EU25-40% data loss5-15% data loss
Implementation effortNoneMediumMedium-High

Recommendation: Implement Advanced Consent Mode v2 via GTM with a CMP (Cookiebot, OneTrust, Usercentrics).

Expected consent rates by region:

  • EU/EEA: 60-75%
  • UK: 70-80%
  • US: 85-95%
  • Rest of world: 80-90%

Implementation via GTM

1. Install CMP tag (fires first, before any other tags)
2. Set default consent state:
   - analytics_storage: denied
   - ad_storage: denied
   - ad_user_data: denied
   - ad_personalization: denied
3. CMP updates consent state on user choice
4. GA4 and ad tags respect consent automatically

Data Quality Auditing

Audit Checklist

Event Quality:

  • No duplicate events (check GTM Preview for double-fires)
  • All custom events have required parameters
  • Event names follow naming convention
  • No PII in event parameters (names, emails, phone numbers)
  • Enhanced Measurement not duplicating GTM custom events

Configuration Quality:

  • Data retention set to 14 months
  • Internal traffic filter enabled (office and developer IPs)
  • Bot filtering enabled (default in GA4)
  • Cross-domain tracking working (if applicable)
  • Custom dimensions registered for filtered parameters
  • Conversion events marked correctly

Consent Quality:

  • Consent Mode v2 implemented (if serving EU users)
  • CMP banner appearing on first visit
  • Tags respect consent state (no firing before consent)
  • Consent state persisting across pages

Common Data Quality Issues

IssueSymptomRoot CauseFix
Inflated page views2x expected volumeGTM page_view + Enhanced MeasurementDisable Enhanced page_view
Missing conversionsGA4 and Ads numbers differAttribution window mismatchAlign windows
(not set) pagesPages show as "/(not set)"SPA routing not handledImplement SPA tracking
Self-referralsOwn domain in referral reportMissing cross-domain configAdd domains to referral exclusion
Direct traffic spikePaid traffic showing as directUTMs missing or strippedAudit UTM usage
Zero EU dataNo traffic from EU marketsConsent blocks all trackingImplement Advanced Consent Mode

Debugging Workflow

Step 1: Open GTM Preview mode
  - Is the tag firing? Check triggers and conditions
  - Is the data layer populated? Check dataLayer in console

Step 2: Check GA4 DebugView (Admin > DebugView)
  - Is the event appearing? If yes, GTM is working
  - Are parameters populated? Check parameter values

Step 3: Check GA4 Realtime report
  - Events appearing with 5-minute delay? Normal
  - Events not appearing at all? Check measurement ID

Step 4: Check Network tab (DevTools)
  - Filter by "collect" or "analytics"
  - Is the request being sent? Check status code
  - Is the request being blocked? Check ad blockers / consent

Proactive Triggers

Surface these findings without being asked:

  • Events firing on every page load with identical parameters: misconfigured trigger causing data inflation
  • No user_id parameter on authenticated events: cannot connect analytics to CRM or understand cohorts
  • GA4 conversion count differs from Google Ads by more than 15%: attribution window or deduplication issue
  • No consent mode in EU markets: legal exposure and 25-40% data underreporting
  • All pages showing as /(not set): SPA routing not handled properly
  • utm_source showing as direct for known paid campaigns: UTMs missing or being stripped by redirects

Related Skills

SkillUse When
campaign-analyticsAnalyzing marketing performance and channel ROI (not implementation)
ab-test-setupDesigning experiments (this skill's events feed A/B tests)
launch-strategyTracking events for product launches
email-sequenceSetting up email click tracking and UTM parameters

Troubleshooting

SymptomLikely CauseResolution
GA4 shows 50% less traffic than expected after privacy changesClient-side tracking blocked by ad blockers and ITP/ETP cookie expiryImplement server-side GTM tagging — recovers 20-40% of lost attribution data within first quarter
Conversion counts differ between GA4 and Google Ads by >15%Attribution window mismatch or deduplication failure between pixel and CAPIAlign attribution windows across platforms and ensure matching event_id for deduplication
Events fire in GTM Preview but do not appear in GA4 reportsMeasurement ID mismatch, consent mode blocking, or data processing delayCheck Measurement ID in GA4 Configuration tag, verify consent state, wait 24-48 hours for standard reports
UTM parameters show as (not set) in GA4UTMs stripped by redirects, social platform link wrappers, or internal links overwritingAudit redirect chains, use UTM-safe shorteners, never tag internal links with UTMs
Server-side container returns 400 errorsMalformed event payload or missing required fields in Measurement Protocol requestsValidate payload against GA4 Measurement Protocol schema, check required client_id and api_secret
Enhanced Measurement duplicating custom GTM eventsBoth Enhanced Measurement and GTM firing the same event type (e.g., page_view, scroll)Disable the overlapping Enhanced Measurement toggle for events you track via GTM
Consent Mode v2 reporting zero EU data instead of modeled dataDefault consent state not set before GA4 tag fires, or CMP not updating consent correctlyEnsure consent defaults fire as the very first tag in GTM before all other tags

Success Criteria

  • All custom events follow consistent noun_verb snake_case naming convention with zero violations in schema audit
  • GA4 conversion counts match ad platform conversion counts within 10% variance
  • Server-side tracking recovers 20%+ of previously lost attribution data within 90 days of deployment
  • UTM parameter validation passes 100% on all active campaigns (no mixed case, no spaces, no missing required params)
  • Consent Mode v2 limits EU data loss to under 15% via behavioral modeling
  • Event parameters contain zero PII violations as verified by automated schema checker
  • Data retention set to 14 months, internal traffic filtered, and cross-domain tracking verified

Scope & Limitations

In Scope: GA4 configuration, GTM implementation, event taxonomy design, conversion tracking setup, UTM strategy, consent management, data quality auditing, server-side tagging architecture, cross-domain tracking, ad platform conversion integration (Google Ads, Meta, LinkedIn).

Out of Scope: Product analytics platforms (Amplitude, Mixpanel), data warehouse configuration, custom ETL pipelines, mobile app tracking (Firebase), marketing attribution modeling (see marketing-analyst skill), A/B test statistical analysis (see ab-test-setup skill).

Limitations: Server-side tracking requires a cloud-hosted GTM container (GCP, AWS, or third-party) with associated infrastructure costs. Privacy-first analytics with Consent Mode v2 produces modeled data for non-consented users — modeled data has 5-15% variance from actual. This skill does not make LLM or API calls; all validation is deterministic.


Scripts

ScriptPurposeUsage
scripts/utm_validator.pyValidate UTM parameters for consistency and naming conventionspython scripts/utm_validator.py urls.csv --json
scripts/event_schema_checker.pyValidate event names and parameters against taxonomy, detect PIIpython scripts/event_schema_checker.py events.json --json
scripts/funnel_drop_off_analyzer.pyAnalyze conversion funnels and identify biggest drop-off pointspython scripts/funnel_drop_off_analyzer.py --stages "Visitors:10000,Signups:1200,Paid:120"

平台分布

Codex

36.41%
按下载量换算180

Claude

30.42%
按下载量换算150

Cursor

18.54%
按下载量换算92

Gemini CLI

9.9%
按下载量换算49

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills