跳到正文
TakoAPI
返回技能列表

remove-analytics

由 jeftekhari 提供

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

简介

Safely remove Google Analytics from a project.

描述

该技能的功能

Removes Google Analytics from a project by finding and deleting all tracking code, scripts, utility files, environment variables, and related npm packages. Requires explicit user confirmation before making changes.

Handles the full removal in one pass rather than manually hunting for gtag references scattered across scripts, components, and config files.

何时使用

  • Removing analytics before open-sourcing a private project
  • Stripping tracking from a client handoff
  • Cleaning up after switching from Google Analytics to another provider
  • Auditing a codebase for leftover GA snippets
  • Preparing a GDPR-compliant build without tracking

示例工作流

输入

User asks: Remove Google Analytics from my project

智能体
  1. 1

    Ask user to confirm the destructive action

  2. 2

    Search codebase for gtag, dataLayer, GoogleAnalytics references, googletagmanager.com scripts, GA_ env vars, and analytics packages

  3. 3

    Show each finding to the user before removing

  4. 4

    Delete or modify affected files and clean up orphaned imports

  5. 5

    Uninstall analytics packages and remove env vars from .env.example

输出

Summary listing deleted files, modified files, removed packages, removed environment variables, and any manual steps remaining

安装

clawhub install jeftekhari/remove-analytics

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

链接