Token导航 LogoToken导航

Agent Skill · 研究检索

ga4(GA4 工具)

ga4 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

ga4 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 73,226。

总安装 119周安装 5GitHub Stars 公开资料未说明下载 42核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add henkisdabro/wookstar-claude-code-plugins --skill "ga4"

这个 Skill 是做什么的

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

ga4 用于发现并安装 AI 代理的技能,支持 Google Analytics 4 数据分析。适用于 Codex、Claude、Cursor、Gemini CLI 中分析用户行为和流量数据的场景。

通过 npx skills add 命令从 henkisdabro/wookstar-claude-code-plugins 安装。安装前需配置 GA4 凭据并确保 API 访问权限正确授予。ga4 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/ga4

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add henkisdabro/wookstar-claude-code-plugins --skill "ga4";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

ga4 怎么安装?

在终端执行 npx skills add henkisdabro/wookstar-claude-code-plugins --skill "ga4"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

ga4 支持哪些 AI 工具?

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

ga4 需要什么权限?

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

ga4 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

ga4 用的人多吗?

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

ga4 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 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调用外部服务未明确有提醒
ga4

GA4 工具 · 本页

119—需要联网MIT未收录

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

SKILL.md 原文

Google Analytics 4 Complete Guide

Overview

Google Analytics 4 (GA4) is Google's event-based analytics platform for measuring user interactions across websites and applications. This comprehensive skill provides guidance on all aspects of GA4 - from initial property setup through advanced analysis, implementation methods, and compliance.

GA4 uses an event-based data model where every user interaction is tracked as an event with associated parameters. This differs from the session-based model of Universal Analytics, providing more flexibility and cross-platform measurement capabilities.

When to Use This Skill

Invoke this skill for any GA4-related task, including:

Setup and Configuration:

  • Creating GA4 properties and data streams
  • Configuring Measurement IDs (G-XXXXXXXXXX)
  • Setting up data retention and collection settings
  • Managing property access and permissions

Implementation:

  • Installing GA4 via gtag.js, GTM, or CMS plugins
  • Implementing event tracking (automatic, recommended, custom)
  • Setting up ecommerce tracking
  • Configuring cross-domain measurement

Events and Tracking:

  • Understanding event architecture and parameters
  • Implementing recommended events (purchase, login, sign_up)
  • Creating custom events for business-specific tracking
  • Working with event parameters and limits

Analysis and Reporting:

  • Using standard reports and Explorations
  • Building funnel and path analyses
  • Creating audiences and segments
  • Exporting data to BigQuery

Advanced Topics:

  • Measurement Protocol for server-side tracking
  • User ID and cross-device tracking
  • Privacy compliance and Consent Mode
  • DebugView testing and validation

Quick Start

1. Create GA4 Property

  1. Navigate to analytics.google.com
  2. Admin -> Create -> Property
  3. Enter property name, timezone, currency
  4. Create web data stream
  5. Note your Measurement ID (G-XXXXXXXXXX)

2. Install Tracking (Choose One Method)

Option A: Google Tag Manager (Recommended)

1. Install GTM container on website
2. Create Google Tag with GA4 Measurement ID
3. Trigger: Initialisation - All Pages
4. Publish container

Option B: gtag.js Direct

<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'G-XXXXXXXXXX');
</script>

3. Verify Installation

  1. Enable Google Analytics Debugger extension
  2. Admin -> DebugView
  3. Confirm events appearing: session_start, page_view
  4. Check Realtime reports for active users

4. Send Custom Events

gtag('event', 'button_click', {
  'button_name': 'Subscribe',
  'button_location': 'header'
});

Decision Tree: Which Reference Do I Need?

What are you trying to do?

Setting up GA4 for the first time?
  -> references/setup.md

Understanding how events work?
  -> references/events-fundamentals.md

Implementing standard tracking events?
  -> references/recommended-events.md

Creating business-specific custom events?
  -> references/custom-events.md

Making parameters appear in reports?
  -> references/custom-dimensions.md

Implementing User ID / cross-device tracking?
  -> references/user-tracking.md

Building audiences for remarketing?
  -> references/audiences.md

Analysing data in GA4 reports?
  -> references/reporting.md

Exporting to BigQuery for SQL analysis?
  -> references/bigquery.md

Installing via gtag.js directly?
  -> references/gtag.md

Setting up GA4 in Google Tag Manager?
  -> references/gtm-integration.md

Sending events from server/backend?
  -> references/measurement-protocol.md

Testing and debugging implementation?
  -> references/debugview.md

Implementing GDPR/Consent Mode?
  -> references/privacy.md

Configuring Admin settings?
  -> references/data-management.md

Core Concepts

Event-Based Model

GA4 tracks everything as events. Four categories:

CategoryDescriptionExamples
AutomaticFire without configurationsession_start, first_visit
Enhanced MeasurementToggle on/off in settingsscroll, click, file_download
RecommendedGoogle-defined with standard parameterspurchase, login, sign_up
CustomBusiness-specific trackingdemo_requested, trial_started

Key Limits and Constraints

LimitValue
Event names per property500 distinct
Parameters per event25
Event name length40 characters
Parameter name length40 characters
Parameter value length100 characters
Custom dimensions (event-scoped)50
Custom dimensions (user-scoped)25
Custom dimensions (item-scoped)10
Audiences per property100

Measurement ID Format

  • Format: G-XXXXXXXXXX (G- prefix + 10 alphanumeric characters)
  • Location: Admin -> Data Streams -> Web Stream
  • Used in: gtag.js config, GTM tags, Measurement Protocol

Topic Overview

Setup and Installation

Reference: references/setup.md

Create GA4 accounts, properties, and data streams. Covers account hierarchy, property configuration, data stream setup for web/iOS/Android, and initial configuration settings.

Events Fundamentals

Reference: references/events-fundamentals.md

Understand GA4's event-based architecture. Covers the four event categories, event structure, parameter scopes (event/user/item), naming conventions, and limits.

Custom Events

Reference: references/custom-events.md

Create business-specific events beyond recommended events. Covers naming conventions, parameter design, industry patterns (SaaS, education, media), and implementation examples.

Recommended Events

Reference: references/recommended-events.md

Implement Google-defined recommended events. Covers engagement events (login, sign_up), monetisation events (purchase, add_to_cart), and the items array structure for ecommerce.

Custom Dimensions

Reference: references/custom-dimensions.md

Transform event parameters into reportable dimensions. Covers registration workflow, scope selection (event/user/item), custom metrics, calculated metrics, and troubleshooting.

User Tracking

Reference: references/user-tracking.md

Implement User ID and cross-device tracking. Covers User ID setup, user properties, Reporting Identity options, cross-domain tracking, and data deletion.

Audiences

Reference: references/audiences.md

Create segments for analysis and remarketing. Covers audience conditions, predictive audiences, sequence conditions, membership duration, and Google Ads export.

Reporting

Reference: references/reporting.md

Analyse data using standard reports and Explorations. Covers report types, exploration techniques (funnel, path, cohort), segments, comparisons, and attribution models.

BigQuery Export

Reference: references/bigquery.md

Export raw event data to BigQuery for advanced analysis. Covers linking setup, table schema, SQL query patterns, UNNEST operations, and cost optimisation.

gtag.js Implementation

Reference: references/gtag.md

Implement GA4 directly using gtag.js without GTM. Covers installation, gtag commands (config, event, set), common patterns, and framework integration.

GTM Integration

Reference: references/gtm-integration.md

Implement GA4 using Google Tag Manager. Covers configuration tags, event tags, triggers, variables, data layer integration, and Preview mode testing.

Measurement Protocol

Reference: references/measurement-protocol.md

Send events server-side using the Measurement Protocol API. Covers authentication, request format, validation, Python/Node.js/PHP examples, and best practices.

DebugView

Reference: references/debugview.md

Test and validate GA4 implementation. Covers enabling debug mode, reading DebugView interface, validation workflows, and troubleshooting common issues.

Privacy Compliance

Reference: references/privacy.md

Implement GDPR/CCPA compliance. Covers Consent Mode v2, consent parameters, regional settings, data deletion, and integration with consent management platforms.

Data Management

Reference: references/data-management.md

Configure GA4 Admin settings. Covers data retention, data filters, user permissions, property settings, enhanced measurement, and key events (conversions).

Common Workflows

Implementing Ecommerce Tracking

  1. Review recommended events: references/recommended-events.md
  2. Implement the purchase funnel:

- view_item -> add_to_cart -> begin_checkout -> purchase

  1. Structure items array correctly:

- Required: item_id OR item_name - Recommended: price, quantity, item_category

  1. Test with DebugView: references/debugview.md
  2. Register custom item parameters: references/custom-dimensions.md

Setting Up Cross-Device Tracking

  1. Implement User ID: references/user-tracking.md
  2. Configure Reporting Identity: Admin -> Data Settings -> Reporting Identity
  3. Set user properties: references/custom-dimensions.md
  4. Build cross-device audiences: references/audiences.md

Implementing GDPR Compliance

  1. Set up Consent Mode: references/privacy.md
  2. Configure default consent state (denied)
  3. Integrate with CMP (OneTrust, Cookiebot, etc.)
  4. Update consent on user acceptance
  5. Test consent implementation: references/debugview.md

Building Custom Reports

  1. Understand available data: references/reporting.md
  2. Register custom parameters as dimensions: references/custom-dimensions.md
  3. Create Explorations for custom analysis
  4. For unsampled data, export to BigQuery: references/bigquery.md

Best Practices

Naming Conventions

  • Use snake_case for event names: video_tutorial_watched
  • Be descriptive and action-oriented
  • Keep under 40 characters
  • Avoid generic names (event1, click, data)

Implementation Strategy

  1. Start with Enhanced Measurement (automatic events)
  2. Add recommended events for standard tracking
  3. Create custom events only when needed
  4. Register parameters as custom dimensions for reporting
  5. Test thoroughly with DebugView before production

Data Quality

  • Create separate properties for test/production
  • Set up internal traffic filters from day one
  • Document all custom events and parameters
  • Regularly audit implementation with DebugView
  • Export to BigQuery for data backup

References

平台分布

OpenCode

36.83%
按下载量换算15

Cursor

26.11%
按下载量换算11

Codex

17.95%
按下载量换算8

Claude Code

7.29%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills