Analytics Tracking Automation for Openclaw

A comprehensive automation skill for managing the end-to-end lifecycle of GA4 and GTM tracking implementations.

jtrackingai
v1.0.14
Apr 21, 2026
1
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install event-tracking-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install event-tracking-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Analytics Tracking Automation?

Analytics Tracking Automation is a robust coordinator designed to handle the complexities of Google Analytics 4 (GA4) and Google Tag Manager (GTM) delivery. It acts as an umbrella Openclaw Skills integration that manages site discovery, schema authoring, GTM synchronization, and live verification. By automating the technical overhead of tracking deployments, it ensures data consistency across web platforms, including specialized support for Shopify environments.

This skill is built for developers and data analysts who need a reliable, repeatable process for tracking audits and deployments. It leverages Playwright for real-browser analysis and interfaces directly with Google's GTM API, providing a bridge between technical site architecture and marketing measurement requirements.

Analytics Tracking Automation Use Cases

  • Implementing a net-new GA4 and GTM setup for a fresh website URL.
  • Updating or extending existing tracking schemas without manual GTM container manipulation.
  • Performing routine health audits and upkeep on live tracking implementations.
  • Resuming interrupted tracking workflows using existing artifact directories.
  • Specialized tracking deployment for Shopify stores including manual verification steps.

How Analytics Tracking Automation Works

  1. Discovery: Initiates a site crawl using Playwright to detect platforms, existing GTM containers, and site structure.
  2. Grouping: Organizes discovered URLs into logical page groups for efficient event mapping.
  3. Schema Generation: Creates and validates an event-schema.json based on site analysis and user requirements.
  4. GTM Sync: Connects to the Google GTM API via OAuth to generate workspaces and inject tracking configurations.
  5. Verification: Provides a preview QA phase to ensure tags fire correctly before final publication.
  6. Publish: Executes the final live deployment of the tracking container after all health checks pass.

Analytics Tracking Automation Setup

To use this Openclaw Skills package, ensure you have Node.js 18+ and Playwright installed. Install the skill via the CLI:

npx skills add jtrackingai/analytics-tracking-automation
# If building from source
npm run build

Note: The sync process requires a local loopback (127.0.0.1) for Google OAuth consent and outbound HTTP access for browser-backed analysis.

Analytics Tracking Automation Data Schema & Taxonomy

The skill maintains a structured artifact directory for each site at <output-root>/<url-slug>. Key files include:

File Purpose
site-analysis.json Stores crawl data, platform detection, and page groups.
event-schema.json The primary blueprint for tracking events and parameters.
gtm-config.json The generated configuration ready for GTM injection.
workflow-state.json Tracks the current phase and approval status of the project.
tracking-health.json Results of the QA and verification phase.

Analytics Tracking Automation Advanced Features

  • Multi-phase routing: Automatically hands off tasks to specialized sub-skills like tracking-shopify or tracking-verify.
  • Smart Resume: Uses workflow-state.json and status commands to pick up exactly where a session left off.
  • Interactive OAuth: Handles secure, user-owned refresh tokens for direct GTM API communication.
  • Shopify Integration: Native handling of Shopify-specific schema rules and installation flows.
  • Automated Health Audits: Specialized mode for assessing live tracking signals without altering existing configurations.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*