LaunchKit · 2026
Back to Skills

remove-analytics

Safely remove Google Analytics from a project.

1
1.5k downloads
by @jeftekhari

Setup & Installation

openclaw skills install @jeftekhari/remove-analytics

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install remove-analytics

What This Skill Does

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.

When to use it

  • 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

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Remove Google Analytics from my project

AGENT
  1. 1Ask user to confirm the destructive action
  2. 2Search codebase for gtag, dataLayer, GoogleAnalytics references, googletagmanager.com scripts, GA_ env vars, and analytics packages
  3. 3Show each finding to the user before removing
  4. 4Delete or modify affected files and clean up orphaned imports
  5. 5Uninstall analytics packages and remove env vars from .env.example
OUTPUT

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