Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

ga4GA4 工具

Agent Skill

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

总安装

119

周安装

5

GitHub Stars

公开资料未说明

下载量

42
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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"

简介

ga4 用于发现并安装 AI 代理的技能,支持 Google Analytics 4 数据分析。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中分析用户行为和流量数据的场景。
  • 通过 npx skills add 命令从 henkisdabro/wookstar-claude-code-plugins 安装。
  • 安装前需配置 GA4 凭据并确保 API 访问权限正确授予。
  • ga4 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenCode

36.83%
按下载量换算15

Cursor

26.11%
按下载量换算11

Codex

17.95%
按下载量换算8

Claude Code

7.29%
按下载量换算3

安全审计

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

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills