跳到正文
TakoAPI
返回技能列表

check-analytics

由 jeftekhari 提供

Data & Analytics
2.3k下载量由 clawskills.sh 提供
1星标
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Audit existing Google Analytics implementation.

描述

该技能的功能

Audits an existing Google Analytics implementation by scanning the codebase for tracking code, measurement IDs, and configuration issues. Produces a structured report categorizing problems by severity and listing missing event coverage.

Running this against the codebase surfaces configuration issues and missing events in one pass instead of manually grepping and cross-referencing GA4 documentation.

何时使用

  • Catching deprecated Universal Analytics properties before they stop working
  • Finding hardcoded GA4 measurement IDs that should be in env vars
  • Auditing a new codebase before launch to check analytics completeness
  • Identifying missing conversion or sign-up events in an SPA
  • Reviewing consent mode compliance before a privacy audit

示例工作流

输入

User asks: audit the analytics setup in this Next.js project

智能体
  1. 1

    Search codebase for gtag, dataLayer, GTM-, UA-, and G- identifiers

  2. 2

    Detect implementation method (gtag.js, GTM container, npm package)

  3. 3

    Check for deprecated UA properties, missing pageview tracking, hardcoded IDs, and debug mode in production

  4. 4

    Analyze custom events and compare against expected conversion events

  5. 5

    Compile findings into a prioritized report with Critical, Warning, and Suggestion categories

输出

Markdown audit report listing detected provider and measurement IDs, ranked issues, and an event coverage table with next steps

安装

clawhub install jeftekhari/check-analytics

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接