A comprehensive automation skill to intelligently detect web frameworks and implement Google Analytics 4 tracking with best practices.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install add-analytics
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install add-analytics using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Google Analytics 4 Setup skill is a specialized tool within the Openclaw Skills ecosystem designed to eliminate the manual overhead of implementing web analytics. It intelligently scans your project's architecture to identify the specific framework being used—ranging from Next.js and Nuxt to Astro and SvelteKit—and applies a tailored integration strategy. By automating the creation of components, plugins, and environment configurations, it ensures that your tracking is both robust and performant.
Beyond basic page views, this skill addresses modern development needs such as TypeScript support, environment variable management, and Single Page Application (SPA) route tracking. Using this skill ensures that your analytics implementation follows the latest Google standards, helping you avoid common pitfalls like duplicate tracking or incorrectly formatted IDs that often plague manual setups.
To initiate the setup using Openclaw Skills, provide your Measurement ID and optional flags for enhanced functionality:
openclaw run add-analytics "G-XXXXXXXXXX" --events --consent --debug
Ensure you have your GA4 Measurement ID from the Google Analytics dashboard before starting the process.
The skill organizes its output based on the detected environment, ensuring a clean and maintainable file structure:
| Component | Location | Description |
|---|---|---|
| Environment Config | .env, .env.local |
Stores the framework-specific Measurement ID variable. |
| Tracking Component | app/layout.tsx or components/ |
The core script injection component for React/Next.js/Astro. |
| Event Utilities | lib/analytics-events.ts |
Shared functions for tracking clicks, scrolls, and conversions. |
| Consent Logic | lib/analytics-consent.ts |
Wrapper for managing analytics_storage and ad_storage states. |
| Type Definitions | types/gtag.d.ts |
TypeScript global declarations for the window.gtag object. |
Loading
Clawvicular automates the delivery of trending looksmaxxing slang and real-time influencer news using an authentic, extremely online community voice.

A benign memetic experiment and AI safety demonstration that uses the concept of an AI religion to highlight information propagation in autonomous Openclaw Skills.

A streamlined CLI tool that brings ElevenLabs generative text-to-speech to AI workflows with a macOS-style say interface.

A dual-purpose voice solution providing high-fidelity text-to-speech synthesis and accurate speech-to-text transcription powered by ElevenLabs.

A professional-grade auditing tool designed to verify Google Analytics implementations and identify optimization opportunities within codebase.

A specialized automation for purging Google Analytics tracking code, dependencies, and environment variables from any codebase.








































