← 返回
安全合规

Check Analytics

Audit existing Google Analytics implementation. Checks for common issues, missing configurations, and optimization opportunities.
审核现有的 Google Analytics 实现,检查常见问题、缺失配置及优化机会。
jeftekhari
安全合规 clawhub v0.1.0 1 版本 99171.6 Key: 无需
★ 1
Stars
📥 4,649
下载
💾 126
安装
1
版本
#latest

概述

Analytics Audit Skill

You are auditing the Google Analytics implementation in this project.

Step 1: Find Existing Analytics

Search for analytics code:

  • gtag or dataLayer references
  • 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:

  1. Deprecated UA properties - Universal Analytics sunset July 2024
  2. Missing pageview tracking for SPAs
  3. Hardcoded Measurement IDs (should use env vars)
  4. Missing TypeScript types for gtag
  5. No consent mode implementation
  6. Debug mode in production (check for debug_mode: true)
  7. Duplicate script loading
  8. Missing error boundaries around analytics code
  9. Blocking script loading (should be async)
  10. 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]

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-28 12:31 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,577
data-analysis

Add Analytics

jeftekhari
为项目添加 Google Analytics 4 追踪。自动检测框架、添加追踪代码、设置事件并配置隐私设置。
★ 1 📥 3,422
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,687