← 返回 Skills 市场
Check Analytics
作者
jeftekhari
· GitHub ↗
· v0.1.0
3884
总下载
1
收藏
16
当前安装
1
版本数
在 OpenClaw 中安装
/install check-analytics
功能描述
Audit existing Google Analytics implementation. Checks for common issues, missing configurations, and optimization opportunities.
使用说明 (SKILL.md)
Analytics Audit Skill
You are auditing the Google Analytics implementation in this project.
Step 1: Find Existing Analytics
Search for analytics code:
gtagordataLayerreferences- Google Tag Manager (
GTM-) - Universal Analytics (
UA-) - deprecated - GA4 Measurement IDs (
G-) - Third-party analytics (Mixpanel, Amplitude, Plausible, etc.)
Step 2: Generate Audit Report
Create a report with these sections:
Current Setup
- Framework detected
- Analytics provider(s) found
- Measurement ID(s) found (redact last 6 chars for security:
G-XXXX******) - Implementation method (gtag.js, GTM, npm package)
Issues Found
Check for:
- Deprecated UA properties - Universal Analytics sunset July 2024
- Missing pageview tracking for SPAs
- Hardcoded Measurement IDs (should use env vars)
- Missing TypeScript types for gtag
- No consent mode implementation
- Debug mode in production (check for
debug_mode: true) - Duplicate script loading
- Missing error boundaries around analytics code
- Blocking script loading (should be async)
- No fallback for ad-blocker scenarios
Recommendations
Provide actionable fixes ranked by priority:
- 🔴 Critical (breaking/deprecated)
- 🟡 Warning (best practice violations)
- 🟢 Suggestion (optimizations)
Event Coverage Analysis
List custom events being tracked and suggest missing ones:
- Sign up / Login events
- Purchase/conversion events
- Form submissions
- Error tracking
- Key user interactions
Output Format
# Analytics Audit Report
## Summary
- **Status**: [Healthy / Needs Attention / Critical Issues]
- **Provider**: [GA4 / GTM / Other]
- **Framework**: [detected framework]
## Current Implementation
[describe what was found]
## Issues
### 🔴 Critical
[list critical issues]
### 🟡 Warnings
[list warnings]
### 🟢 Suggestions
[list suggestions]
## Event Coverage
| Event Type | Status | Recommendation |
|------------|--------|----------------|
| Page Views | ✅ | - |
| Sign Up | ❌ | Add sign_up event |
| ... | ... | ... |
## Next Steps
1. [ordered action items]
安全使用建议
This skill is instruction-only and appears internally consistent for auditing analytics code. Before installing or running it: (1) be aware the audit requires reading your project files — run it against a non-sensitive or sanitized copy if you have private data; (2) the SKILL.md is high-level about where to search, so review the agent's reported file paths and results for false positives; (3) the skill does not request network exfiltration or credentials, but the agent runtime may have network access — do not allow the agent to send sensitive findings outside your environment unless you trust the destination; (4) note it recommends redacting measurement IDs (good practice) — verify redaction is actually applied in any exported reports.
功能分析
Type: OpenClaw Skill
Name: check-analytics
Version: 0.1.0
The skill bundle is benign. The `SKILL.md` instructions clearly define an analytics audit task, guiding the AI agent to search for specific analytics code patterns and generate a structured report on implementation issues and recommendations. There are no instructions for data exfiltration, malicious execution, persistence, or prompt injection attempts against the agent to perform actions outside the stated purpose. The request to redact sensitive IDs further indicates a security-conscious design.
能力评估
Purpose & Capability
Name and description match the instructions: the SKILL.md describes searching a codebase for Google Analytics/GTM/third-party analytics patterns and producing an audit report. It does not request unrelated binaries, credentials, or config paths.
Instruction Scope
Instructions are scoped to locating analytics integrations and producing a report. They imply reading project files (searching for patterns like 'gtag', 'GTM-', etc.), which is appropriate for this audit task. The guidance is somewhat high-level (no exact file-glob commands or paths), so the agent will have discretion about how broadly to scan the repository; that is expected for an audit but worth noting.
Install Mechanism
No install spec and no code files — instruction-only. Nothing will be downloaded or written by the skill itself.
Credentials
The skill declares no environment variables, credentials, or config paths. The checks described (IDs, debug flags, async loading, consent mode, etc.) don't require secrets or external credentials, so no disproportionate access is requested.
Persistence & Privilege
always is false and the skill is user-invocable. The skill does not request permanent presence or modify other skills or system settings.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install check-analytics - 安装完成后,直接呼叫该 Skill 的名称或使用
/check-analytics触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
- Initial release of check-analytics skill to audit Google Analytics implementations.
- Detects analytics frameworks, providers, and measurement IDs, while redacting sensitive parts for security.
- Audits for common issues such as deprecated Universal Analytics, missing tracking, hardcoded IDs, consent, and more.
- Generates a markdown audit report with issue severity (Critical, Warning, Suggestion), event coverage table, and actionable recommendations.
- Designed to help improve tracking accuracy, privacy compliance, and analytics maintainability.
元数据
常见问题
Check Analytics 是什么?
Audit existing Google Analytics implementation. Checks for common issues, missing configurations, and optimization opportunities. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 3884 次。
如何安装 Check Analytics?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install check-analytics」即可一键安装,无需额外配置。
Check Analytics 是免费的吗?
是的,Check Analytics 完全免费(开源免费),可自由下载、安装和使用。
Check Analytics 支持哪些平台?
Check Analytics 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Check Analytics?
由 jeftekhari(@jeftekhari)开发并维护,当前版本 v0.1.0。
推荐 Skills