← Back to Skills Marketplace
jeftekhari

Check Analytics

by jeftekhari · GitHub ↗ · v0.1.0
cross-platform ✓ Security Clean
3884
Downloads
1
Stars
16
Active Installs
1
Versions
Install in OpenClaw
/install check-analytics
Description
Audit existing Google Analytics implementation. Checks for common issues, missing configurations, and optimization opportunities.
README (SKILL.md)

Analytics Audit Skill

You are auditing the Google Analytics implementation in this project.

Step 1: Find Existing Analytics

Search for analytics code:

  • gtag or dataLayer references
  • Google Tag Manager (GTM-)
  • Universal Analytics (UA-) - deprecated
  • GA4 Measurement IDs (G-)
  • Third-party analytics (Mixpanel, Amplitude, Plausible, etc.)

Step 2: Generate Audit Report

Create a report with these sections:

Current Setup

  • Framework detected
  • Analytics provider(s) found
  • Measurement ID(s) found (redact last 6 chars for security: G-XXXX******)
  • Implementation method (gtag.js, GTM, npm package)

Issues Found

Check for:

  1. Deprecated UA properties - Universal Analytics sunset July 2024
  2. Missing pageview tracking for SPAs
  3. Hardcoded Measurement IDs (should use env vars)
  4. Missing TypeScript types for gtag
  5. No consent mode implementation
  6. Debug mode in production (check for debug_mode: true)
  7. Duplicate script loading
  8. Missing error boundaries around analytics code
  9. Blocking script loading (should be async)
  10. No fallback for ad-blocker scenarios

Recommendations

Provide actionable fixes ranked by priority:

  • 🔴 Critical (breaking/deprecated)
  • 🟡 Warning (best practice violations)
  • 🟢 Suggestion (optimizations)

Event Coverage Analysis

List custom events being tracked and suggest missing ones:

  • Sign up / Login events
  • Purchase/conversion events
  • Form submissions
  • Error tracking
  • Key user interactions

Output Format

# Analytics Audit Report

## Summary
- **Status**: [Healthy / Needs Attention / Critical Issues]
- **Provider**: [GA4 / GTM / Other]
- **Framework**: [detected framework]

## Current Implementation
[describe what was found]

## Issues

### 🔴 Critical
[list critical issues]

### 🟡 Warnings
[list warnings]

### 🟢 Suggestions
[list suggestions]

## Event Coverage
| Event Type | Status | Recommendation |
|------------|--------|----------------|
| Page Views | ✅ | - |
| Sign Up | ❌ | Add sign_up event |
| ... | ... | ... |

## Next Steps
1. [ordered action items]
Usage Guidance
This skill is instruction-only and appears internally consistent for auditing analytics code. Before installing or running it: (1) be aware the audit requires reading your project files — run it against a non-sensitive or sanitized copy if you have private data; (2) the SKILL.md is high-level about where to search, so review the agent's reported file paths and results for false positives; (3) the skill does not request network exfiltration or credentials, but the agent runtime may have network access — do not allow the agent to send sensitive findings outside your environment unless you trust the destination; (4) note it recommends redacting measurement IDs (good practice) — verify redaction is actually applied in any exported reports.
Capability Analysis
Type: OpenClaw Skill Name: check-analytics Version: 0.1.0 The skill bundle is benign. The `SKILL.md` instructions clearly define an analytics audit task, guiding the AI agent to search for specific analytics code patterns and generate a structured report on implementation issues and recommendations. There are no instructions for data exfiltration, malicious execution, persistence, or prompt injection attempts against the agent to perform actions outside the stated purpose. The request to redact sensitive IDs further indicates a security-conscious design.
Capability Assessment
Purpose & Capability
Name and description match the instructions: the SKILL.md describes searching a codebase for Google Analytics/GTM/third-party analytics patterns and producing an audit report. It does not request unrelated binaries, credentials, or config paths.
Instruction Scope
Instructions are scoped to locating analytics integrations and producing a report. They imply reading project files (searching for patterns like 'gtag', 'GTM-', etc.), which is appropriate for this audit task. The guidance is somewhat high-level (no exact file-glob commands or paths), so the agent will have discretion about how broadly to scan the repository; that is expected for an audit but worth noting.
Install Mechanism
No install spec and no code files — instruction-only. Nothing will be downloaded or written by the skill itself.
Credentials
The skill declares no environment variables, credentials, or config paths. The checks described (IDs, debug flags, async loading, consent mode, etc.) don't require secrets or external credentials, so no disproportionate access is requested.
Persistence & Privilege
always is false and the skill is user-invocable. The skill does not request permanent presence or modify other skills or system settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install check-analytics
  3. After installation, invoke the skill by name or use /check-analytics
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release of check-analytics skill to audit Google Analytics implementations. - Detects analytics frameworks, providers, and measurement IDs, while redacting sensitive parts for security. - Audits for common issues such as deprecated Universal Analytics, missing tracking, hardcoded IDs, consent, and more. - Generates a markdown audit report with issue severity (Critical, Warning, Suggestion), event coverage table, and actionable recommendations. - Designed to help improve tracking accuracy, privacy compliance, and analytics maintainability.
Metadata
Slug check-analytics
Version 0.1.0
License
All-time Installs 16
Active Installs 16
Total Versions 1
Frequently Asked Questions

What is Check Analytics?

Audit existing Google Analytics implementation. Checks for common issues, missing configurations, and optimization opportunities. It is an AI Agent Skill for Claude Code / OpenClaw, with 3884 downloads so far.

How do I install Check Analytics?

Run "/install check-analytics" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Check Analytics free?

Yes, Check Analytics is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Check Analytics support?

Check Analytics is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Check Analytics?

It is built and maintained by jeftekhari (@jeftekhari); the current version is v0.1.0.

💬 Comments