remove-analytics
Safely remove Google Analytics from a project.
Setup & Installation
Install command
clawhub install jeftekhari/remove-analyticsIf the CLI is not installed:
Install command
npx clawhub@latest install jeftekhari/remove-analyticsOr install with OpenClaw CLI:
Install command
openclaw skills install jeftekhari/remove-analyticsor paste the repo link into your assistant's chat
Install command
https://github.com/openclaw/skills/tree/main/skills/jeftekhari/remove-analyticsWhat 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
View original SKILL.md file
# 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: - Files containing `gtag`, `dataLayer`, `GoogleAnalytics` - Import statements for analytics utilities - Script tags with `googletagmanager.com` - Environment variables: `GA_`, `GTAG_`, `MEASUREMENT_ID` - Package.json dependencies: `@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 - Remove analytics-related packages: `npm uninstall @types/gtag.js` (or equivalent) - Remove environment variables from `.env.example` - Update any documentation that references analytics ## Step 5: Summary Provide a summary of: - Files deleted - Files modified - Packages removed - Environment variables removed - Any manual steps needed (like removing actual env values)
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Removing analytics before open-sourcing a private project
- 1Removing analytics before open-sourcing a private project
- 2Stripping tracking from a client handoff
- 3Cleaning up after switching from Google Analytics to another provider
- 4Auditing a codebase for leftover GA snippets
- 5Preparing a GDPR-compliant build without tracking
Safely remove Google Analytics from a project.
Security Audits
These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.