tracking-sync

Sync approved GA4 tracking plans into GTM workspaces via the GTM API.

134|39|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/jtrackingai/analytics-tracking-automation --skill tracking-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tracking-sync
Source: https://github.com/jtrackingai/analytics-tracking-automation/tree/main/skills/tracking-sync
Command: npx skills add https://github.com/jtrackingai/analytics-tracking-automation --skill tracking-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It removes the friction of turning an approved event schema and tracking plan into a working, GTM-synced configuration by handling the generation/sync steps and the required verification artifacts.

Core Features & Use Cases

  • GTM-ready configuration output: Generates or updates the required <artifact-dir>/gtm-config.json plus accompanying context and workflow state files.
  • Workspace sync with guardrails: Synchronizes GTM configuration into the user’s chosen account/container/workspace via the official GTM API flow, without auto-selecting those targets.
  • Schema-approval enforcement & blocking checklist: Prevents bypassing approved schemas unless explicitly forced and treats custom dimensions as blocking items before sync/publish.

Quick Start

Ask the agent to run tracking-sync using your approved <artifact-dir>/event-schema.json and provide the GA4 measurement ID so it can generate <artifact-dir>/gtm-config.json and sync it into your GTM workspace.

Frequently Asked Questions about tracking-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync an approved GA4 event schema to my GTM workspace?

To sync an approved GA4 event schema to your GTM workspace, you need a validated <artifact-dir>/event-schema.json file and a GA4 measurement ID. The process generates a <artifact-dir>/gtm-config.json file and pushes it to your chosen GTM targets via the official GTM API.

Does GTM sync require manual OAuth authentication?

Yes, GTM sync requires interactive OAuth authentication with TTY enabled. This ensures secure authorization when connecting to your GTM account, container, and workspace, preventing automated or unauthorized access to your tracking configuration.

How do I prevent unapproved GA4 tracking plans from syncing to GTM?

To prevent unapproved GA4 tracking plans from syncing to GTM, the workflow enforces schema-approval checks before execution. It blocks the sync unless the schema is explicitly approved or forced, treating custom dimensions as blocking items to ensure data integrity.

Can I generate GTM configuration artifacts for Shopify tracking?

Yes, you can generate GTM configuration artifacts for Shopify tracking. The sync process supports Shopify-specific tracking artifacts, producing the necessary <artifact-dir>/gtm-config.json and accompanying workflow state files for your e-commerce event schema.

Why does GTM sync require interactive workspace selection?

GTM sync requires interactive workspace selection to act as a guardrail against accidental deployment. It prevents the tool from auto-selecting GTM account, container, or workspace targets, ensuring you explicitly verify the destination before pushing live tracking configurations.

What files are generated after syncing GA4 events to GTM?

After syncing GA4 events to GTM, the process generates three primary files: <artifact-dir>/gtm-config.json, <artifact-dir>/gtm-context.json, and <artifact-dir>/workflow-state.json. These files capture the configuration, context, and current workflow status respectively.