Skip to content
reason-machines avatar

Analytics Tracking Automation

Automated GA4 and GTM tracking setup that analyzes a site, designs event schemas, and publishes containers.

CCM score
42 of 100
skills.sh installs
2K
GitHub stars
5
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full workflow: site crawl, page grouping by business intent, event schema design, GTM sync, preview verification, and publishing
  • Runs through the event-tracking CLI with init, resume, audit, sync, verify, and publish commands, plus a Shopify mode for cart, checkout, and purchase flows
  • Keeps reviewable, resumable artifacts such as event-schema.json, page-groups.json, and verification-report.json in a per-site output directory
  • Designed for teams that want Playwright-checked GTM preview verification before a container version goes live

Install

$ npx -y skills add reason-machines/data-skills --skill analytics-tracking-automation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Analytics Tracking Automation

Skill by ara.so — Data Skills collection.

This skill enables AI agents to plan, implement, and deploy GA4 + GTM tracking setups. It automates site analysis, page grouping, event schema design, GTM container synchronization, preview verification, and publishing—supporting both generic websites and Shopify storefronts.

What This Skill Does

The analytics-tracking-automation project provides a local-first workflow that:

  1. Analyzes a website by crawling pages and identifying business intent
  2. Groups pages by purpose (e.g., product, pricing, contact)
  3. Designs event schemas (GA4 events, parameters, triggers) based on site structure
  4. Syncs to GTM by creating/updating tags, triggers, variables via Google Tag Manager API
  5. Verifies in preview using automated Playwright-based checks
  6. Publishes the GTM container version when verification passes
  7. Supports Shopify with specialized tracking for cart, checkout, and purchase flows
  8. Maintains artifacts for resumable, reviewable tracking work

Installation

For Use in AI Agent Environments

Details

Repository
github.com/reason-machines/data-skills
Categories
Marketing, SEO & Ads, Workflow Automation
First seen
Jul 14, 2026

Questions

What does the analytics-tracking-automation skill do?

It is an AI-powered GA4 and Google Tag Manager tracking automation skill that analyzes a site, designs event schemas, syncs GTM containers, runs preview verification, and publishes tracking implementations. It also supports Shopify storefronts with cart, checkout and purchase tracking.

How do I install the analytics-tracking-automation skill?

Run npx -y skills add reason-machines/data-skills --skill analytics-tracking-automation -y in your project. The agent can then plan and deploy GA4 and GTM tracking for a website.

What do I need before using analytics-tracking-automation to sync with GTM?

You need a GA4 Measurement ID and Google OAuth credentials with the Tag Manager API enabled, set as GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET. The first sync opens a browser for OAuth consent and caches the tokens in the artifact directory.

More from reason-machines/data-skills

All 60

Similar to Analytics Tracking Automation

More Marketing, SEO & Ads