π¦ ClawHub
Remove Analytics
by @jeftekhari
Safely remove Google Analytics from a project. Cleans up all tracking code, dependencies, and environment variables.
TERMINAL
clawhub install remove-analyticsπ About This Skill
name: remove-analytics description: Safely remove Google Analytics from a project. Cleans up all tracking code, dependencies, and environment variables. disable-model-invocation: true
Remove Analytics Skill
You are removing Google Analytics from this project. This is a destructive action - confirm with the user before proceeding.
Step 1: Confirm Intent
Ask the user to confirm they want to remove analytics:
> "This will remove all Google Analytics tracking from your project. This action will: > - Remove gtag scripts and components > - Remove analytics utility files > - Remove related environment variables from .env.example > - Remove npm packages if any > > Type 'yes' to confirm."
Step 2: Find All Analytics Code
Search for:
gtag, dataLayer, GoogleAnalyticsgoogletagmanager.comGA_, GTAG_, MEASUREMENT_ID@types/gtag.js, react-ga4, vue-gtag, etc.Step 3: Remove Code
For each finding: 1. Show the file and code to be removed 2. Remove the code or file 3. Clean up any orphaned imports
Step 4: Clean Up
npm uninstall @types/gtag.js (or equivalent).env.exampleStep 5: Summary
Provide a summary of: