gtm-diff

Compare live GTM container state against a logged baseline to detect drift.

3|1|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/aimonk2025/google-tag-manager-automation --skill gtm-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gtm-diff
Source: https://github.com/aimonk2025/google-tag-manager-automation/tree/main/skills/gtm-diff
Command: npx skills add https://github.com/aimonk2025/google-tag-manager-automation --skill gtm-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Compares the current live GTM container state against the last known implementation to surface drift (added, deleted, or modified elements). Read-only — no changes are made.

Core Features & Use Cases

  • Drift detection across tags, triggers, and variables.
  • Read-only diff report with clear added/removed/modified items and contextual notes.
  • Works with an existing gtm-implementation-log.json baseline and GTM API credentials to guide safe implementations.

Quick Start

Run gtm-diff to generate a diff report between the live GTM container and the last implementation log.

Frequently Asked Questions about gtm-diff

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

FAQPage Schema
How do I detect drift in my live Google Tag Manager container?

GTM drift detection compares your current live container state against a previously logged implementation baseline. This read-only diff surfaces any added, deleted, or modified elements across your tags, triggers, and variables to highlight unauthorized changes.

How do I audit changes in GTM tags, triggers, and variables before a new implementation?

Auditing GTM changes before implementation involves running a diff against your last known baseline. This generates a report highlighting contextual modifications, additions, and deletions across tags, triggers, and variables to guide safe deployments.

Do I need a baseline file to compare my live GTM container state?

Yes, you need an existing gtm-implementation-log.json file as a baseline to compare your live GTM container state against. Without this logged implementation record, there is no reference point to detect drift or generate a diff report.

Can I run a GTM diff without making changes to my live container?

Yes, performing a GTM container diff is strictly a read-only operation. It requires valid GTM API credentials to analyze the live state but makes absolutely no changes to your container, only generating a report of detected drift.

What is container drift in Google Tag Manager and when does it happen?

Container drift in Google Tag Manager happens when elements like tags, triggers, or variables are added, deleted, or modified outside your last logged implementation. It surfaces unauthorized or untracked changes that occurred between audits or deployments.