remove-analytics
Safely remove Google Analytics from a project. Cleans up all tracking code, dependencies, and environment variables.
Why use this skill?
Safely remove Google Analytics tracking code, dependencies, and environment variables from your projects with the OpenClaw Remove Analytics skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jeftekhari/remove-analyticsWhat This Skill Does
The Remove Analytics skill is a specialized utility designed for OpenClaw AI to systematically scrub Google Analytics (GA) implementations from software projects. As privacy regulations tighten and teams shift toward cookieless or self-hosted analytics platforms, manually hunting down tracking scripts, npm packages, and environment configuration files can be error-prone and tedious. This skill automates the discovery and removal process by scanning for specific patterns like gtag, dataLayer, and various GA-specific package signatures. By providing a structured, step-by-step workflow, it ensures that your codebase remains clean, compliant, and free of unnecessary bloat while preventing accidental removal of critical core logic.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/jeftekhari/remove-analytics
Ensure that your OpenClaw CLI is updated to the latest version to maintain compatibility with the dependency management features of this skill.
Use Cases
- Project Refactoring: During a transition to a new analytics provider (like Plausible or PostHog), use this skill to wipe old GA codebases cleanly.
- Privacy Compliance: Rapidly remove tracking capabilities to align with strict GDPR or CCPA compliance requirements across large repositories.
- Boilerplate Cleanup: When starting a new project from a starter kit that includes pre-configured Google Analytics, use this to strip the code before customization.
- Code Sanitization: Removing legacy tracking code that no longer serves a purpose, thereby reducing bundle size and improving site performance.
Example Prompts
- "Hey OpenClaw, please run the remove-analytics skill to wipe the Google Analytics integration from this React project."
- "Can you help me scrub all references to GA4 and gtag from the current repository?"
- "I need to comply with privacy laws; please use the remove-analytics skill to find and delete every tracking script and environment variable related to Google."
Tips & Limitations
- Pre-execution Backup: Always ensure your project is committed to a version control system like Git before running this skill. Because it modifies multiple files, having a clean checkpoint is vital for safety.
- Environment Variables: While this skill updates
.env.example, it does not have access to your local, ignored.envfiles. You must manually delete those lines in your local environment files after the skill finishes. - Confirmation: This skill is destructive by nature. Pay close attention to the file list shown during Step 3 to ensure no false positives are captured during the search phase.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-jeftekhari-remove-analytics": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read
Related Skills
check-analytics
Audit existing Google Analytics implementation. Checks for common issues, missing configurations, and optimization opportunities.
add-analytics
Add Google Analytics 4 tracking to any project. Detects framework, adds tracking code, sets up events, and configures privacy settings.