Skip to content
Back to skills

Remove Google Analytics From Project

ASecurity

Safely remove Google Analytics from a project. Cleans up all tracking code, dependencies, and environment variables.

  • 37 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 19, 2026
ai-agentsgoreactvuedocumentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill remove-google-analytics-from-project --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove Google Analytics From Project?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Remove Google Analytics From Project
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-remove-google-analytics-from-project/badge)](https://www.skillsdirectory.com/skills/rondoflow-remove-google-analytics-from-project)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: remove-google-analytics-from-project
description: "Safely remove Google Analytics from a project. Cleans up all tracking code, dependencies, and environment variables."
category: "Data & Analytics"
author: community
version: "0.1.0"
icon: chart-bar
---

# 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)

Files in this skill

  • SKILL.md1.6 KB
  • manifest.json359 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.