check-analytics
Audit existing Google Analytics implementation. Checks for common issues, missing configurations, and optimization opportunities.
Why use this skill?
Automate your GA4 and GTM audits with OpenClaw. Detect deprecated tags, fix missing event tracking, and optimize analytics performance in minutes.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/jeftekhari/check-analyticsWhat This Skill Does
The check-analytics skill is a comprehensive diagnostic tool designed for developers and data analysts to automate the audit of Google Analytics (GA4) and Google Tag Manager (GTM) implementations within a codebase. It proactively scans for legacy Universal Analytics (UA) tags, missing TypeScript definitions, hardcoded configuration keys, and common performance anti-patterns like blocking scripts or missing consent mode configurations. By running this skill, users receive a structured, prioritized report that categorizes findings into critical blockers, best-practice warnings, and optimization suggestions, along with a detailed matrix of event coverage.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/jeftekhari/check-analytics
Ensure you have the necessary permissions to read your project's repository files as the agent needs to parse source code, environment variables, and config files to generate an accurate report.
Use Cases
- Pre-launch Audits: Before deploying a new marketing campaign, verify that all conversion tracking and event logging are functioning correctly.
- Migration Projects: Ensure that all legacy Universal Analytics tags have been successfully purged and replaced with modern GA4 tracking methods.
- Technical Debt Cleanup: Identify hardcoded IDs that should be moved into .env files to improve security and environment management.
- Compliance Checks: Verify the presence of consent mode logic to ensure your site adheres to GDPR/CCPA requirements.
Example Prompts
- "Check the current analytics setup in this repository and tell me if I have any deprecated UA properties still lurking."
- "Audit our GA4 implementation. I'm worried our SPA pageviews aren't firing correctly on route changes. Can you check our implementation method?"
- "Run an analytics audit and provide a report on missing event coverage, specifically focusing on our checkout flow and form submissions."
Tips & Limitations
- Context is Key: For the most accurate results, ensure the agent has access to your
package.jsonand any custom analytics wrapper components. - Security: The skill automatically redacts sensitive Measurement IDs, but avoid sharing reports containing full tracking IDs in public channels.
- Limitations: This skill audits the static implementation in the code. It cannot perform a live runtime crawl to verify if pixels are firing correctly in a browser; for that, consider pairing this with browser-automation skills. Always review the output for false positives in custom naming conventions.
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-check-analytics": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
remove-analytics
Safely remove Google Analytics from a project. Cleans up all tracking code, dependencies, and environment variables.
add-analytics
Add Google Analytics 4 tracking to any project. Detects framework, adds tracking code, sets up events, and configures privacy settings.