google-tag-manager

google-tag-manager is a skill for Claude Code, Codex from thatrebeccarae/claude-marketing. It costs 63 tokens per session (2,158 once invoked), scanned A, original, MIT.

A technical guide for Google Tag Manager, a tool that manages website tracking code without editing the site for every change. It covers tags, triggers, variables, consent settings, and server-side tracking.

In plain words
What is it for?
Use it to audit a Tag Manager container, plan its tracking structure, debug tracking events, add consent mode, or evaluate server-side tagging.
Why use it?
It helps find tracking that fires at the wrong time, duplicate setup, missing data, and consent-related problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Use it to audit a Tag Manager container, plan its tracking structure, debug tracking events, add consent mode, or evaluate server-side tagging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thatrebeccarae/claude-marketing/google-tag-manager
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thatrebeccarae/claude-marketing --skill google-tag-manager
Clone the repo
git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for google-tag-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/thatrebeccarae/claude-marketing/google-tag-manager/github.svg)](https://agentmods.dev/skills/thatrebeccarae/claude-marketing/google-tag-manager)
Your own site
<a href="https://agentmods.dev/skills/thatrebeccarae/claude-marketing/google-tag-manager"><img src="https://agentmods.dev/badge/skills/thatrebeccarae/claude-marketing/google-tag-manager/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for google-tag-manager

Your own site · 80×15
<a href="https://agentmods.dev/skills/thatrebeccarae/claude-marketing/google-tag-manager"><img src="https://agentmods.dev/badge/skills/thatrebeccarae/claude-marketing/google-tag-manager.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,158 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.02158
Opus 5 $0.00032 $0.01079
Sonnet 5 $0.00013 $0.00432
Haiku 4.5 $0.00006 $0.00216

Measured 8d ago against content hash 231c62d4122b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

google-tag-manager scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/google-tag-manager/SKILL.md · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Tag Manager

Expert-level guidance for Google Tag Manager — auditing containers, designing tag and trigger architecture, debugging firing issues, implementing consent mode v2, and advising on server-side tagging.

Install

git clone https://github.com/thatrebeccarae/claude-marketing.git && cp -r claude-marketing/skills/google-tag-manager ~/.claude/skills/

Core Capabilities

Container Auditing and Optimization

Full container audit covering the six core areas: overview stats, tag inventory, trigger review, variable audit, folder organization, and naming convention assessment. Identifies unused tags, duplicate GA4 config tags, over-broad triggers on conversion tags, undefined variable paths, and consent mode gaps. Produces prioritized recommendations ranked by impact and effort.

Tag Architecture

Expert guidance on all common tag types:

  • GA4 Configuration (gaawc) — one per domain, holds measurement ID (always via constant variable), enhanced conversions settings, and shared config. All GA4 event tags must reference this as their Configuration Tag.
  • GA4 Event (gaawe) — fires individual events with parameters sourced from data layer variables. References the gaawc config tag.
  • Google Ads Conversion Tracking — conversion ID + label, value and currency from data layer, deduplication tag ID for enhanced conversions.
  • Google Ads Remarketing — conversion ID, custom parameters for audience building.
  • Meta Pixel — base code + standard events (PageView, ViewContent, AddToCart, InitiateCheckout, Purchase). Use community template from Template Gallery rather than custom HTML.
  • Custom HTML — unsandboxed JavaScript, creates CSP risk. Only use when no Template Gallery alternative exists.
  • Community Templates — vetted third-party templates for Cookiebot, OneTrust, HotJar, Meta Pixel, LinkedIn Insight Tag, and more. Always prefer over Custom HTML.

Trigger Design

Matching triggers to tags with correct scoping is the single biggest factor in data quality. See REFERENCE.md for the full trigger type taxonomy. Key principles:

Read the full file on GitHub · 145 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 145 lines · 63 tokens per session scan A 231c62d4122b

Subscribe to this mod's changes

google-tag-manager is a skill published in the GitHub repository thatrebeccarae/claude-marketing (137 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 2,158 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.