Logo van Gtm Monitor

Gtm Monitor

Organisatie
cognyai
gtm-monitor

Wekelijkse controle van een GTM-container — nieuwe, bewerkte en verwijderde tags, niet-gepubliceerde conceptwijzigingen, verweesde tags en werkruimtestatus — met verschillen ten opzichte van de vorige week

Add to TypingMind

Overzicht

Uitgevercognyai
Repositoryclaude-code-marketing-skills
Skillnaamgtm-monitor
Sterren
111
Forks
15
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door cognyai op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Gtm Monitor in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/gtm-monitor
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cognyai/claude-code-marketing-skills.git /tmp/claude-code-marketing-skills
mkdir -p .claude/skills
cp -r /tmp/claude-code-marketing-skills/skills/gtm-monitor .claude/skills/gtm-monitor
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Gtm Monitor in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Gtm Monitor automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Gtm Monitor niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

GTM Monitor

A recurring weekly check on a Google Tag Manager container. Containers don't drift on their own — people change them. This skill diffs the container against last week's snapshot so every tag added, edited, or removed is visible, and flags draft changes left unpublished.

Requires: Cogny Agent subscription ($9/mo) — Sign up

Designed to be scheduled weekly via /loop or /schedule.

Works with

JobPrimaryEnhanced when connected
Container diff, orphans, unpublished changesGTM—
Did a changed tag stop sending data?—GA4 tool_run_report, or Plausible breakdown (event:goal)
Did a new tag break the page?—Microsoft Clarity get_live_insights (Script Error Count)

Prerequisites Check

If no mcp__cogny__* tools exist (no list_integrations, no cogny_status), print this and stop:

GTM Monitor needs your marketing data through Cogny's MCP gateway.

1. Sign up at https://cogny.com and connect Google Tag Manager (GA4, Plausible or
   Microsoft Clarity optional, to check downstream impact).
2. Add Cogny to .mcp.json in your project:
   {"mcpServers": {"cogny": {"type": "http", "url": "https://app.cogny.com/mcp"}}}
3. Restart Claude Code; it opens a browser for the OAuth login on first use.

Nothing to run without Cogny: the container is only readable through the GTM API.

If Cogny is connected but mcp__cogny__mcp__Google_Tag_Manager__tool_list_tags isn't, say "connect Google Tag Manager in Cogny" and stop.

Health check: call list_integrations, then tool_list_accounts as the cheap read. health_status misses revoked tokens, so a 401, Forbidden or scope error is 🔴 "reconnect Google Tag Manager"; don't retry it. If a tool named here is missing, call refresh_mcp_discovery once; new tools only load after the client reconnects, so mark that check ⚠ "needs reconnect" for this run.

Usage

/gtm-monitor — weekly change + health check on the connected container.

For a full one-time review, run /gtm-audit. This is the light weekly rhythm.

Steps

1. Read the prior snapshot

Call read_context_node on insights/gtm/monitor/latest. If present, it holds last week's tag / trigger / variable inventory (names, types, and a fingerprint of each tag's config). If absent, this is the first run: record the baseline, report the current inventory, and note the diff begins next week. The snapshot also holds the account_id, container_id and workspace_id used last week; reuse them in Step 2.

2. Pull the current container state

Pick the container. If the snapshot has account_id and container_id, use them, and skip discovery. Otherwise:

tool_list_accounts                                  → account_id (ask if several)
tool_list_containers   (account_id)                 → container_id

Pick the container whose usageContext contains web. If there are several web containers, ask which one to monitor (show name and publicId, e.g. GTM-XXXX). Server, iOS and Android containers are out of scope here.

tool_list_workspaces   (account_id, container_id)   → workspace_id (snapshot's, else Default Workspace)
tool_list_tags         (account_id, container_id, workspace_id)
tool_list_triggers     (account_id, container_id, workspace_id)
tool_list_variables    (account_id, container_id, workspace_id)
tool_get_workspace_status   (account_id, container_id, workspace_id)

3. Diff against last week

Compare current vs the snapshot:

  • Added — tags / triggers / variables that did not exist last week
  • Removed — items that existed last week and are now gone
  • Edited — items whose fingerprint changed (tool_get_tag for detail)

Use GTM's own fingerprint field on each tag, trigger and variable as its fingerprint. GTM changes it on every edit, so don't hash the config yourself.

For every change, name the item and what changed.

🔴 Flag as critical when the change touches a measurement-critical tag:

  • A GA4 configuration tag edited or removed
  • A Google Ads conversion tag edited or removed
  • A consent-related tag or trigger changed
  • A new analytics/marketing tag added with no consent check

4. Standing health checks

Re-run the fast checks from /gtm-audit:

  • Tags with no firing trigger (orphaned — fire nothing)
  • More than one GA4 config tag for the same Measurement ID
  • Paused tags that were live last week (someone turned tracking off?)

4b. Downstream impact (enhanced when connected)

Only when Step 3 found a changed or removed measurement-critical tag. Call list_integrations once and use what is healthy:

CheckCallFlag
Event still arrivingGA4 tool_run_report (property_id, last 7d vs prior 7d, dimensions: [eventName], metrics: [eventCount], filtered to the tag's event)🔴 event at zero or down >50% since the change
Same, on Plausiblebreakdown (site_id, dimension: event:goal, date_range per week)same
Pages breakingClarity get_live_insights (num_of_days: 3, metrics: [Script Error Count, Dead Click Count], dimensions: [URL]), against last week's get_insights_history🟡 script errors up on the pages the new tag fires on

Clarity allows 10 live requests a day per project; one call per run is enough. If nothing is connected, say "downstream impact not verified" next to the change.

5. Unpublished changes

From tool_get_workspace_status: if the workspace has changes not yet published, the live site is behind the container. Flag it — and if those changes have been sitting unpublished for more than a week (compare to the snapshot), say so loudly.

tool_get_workspace_status has no timestamps. Each changed entity's fingerprint is a millisecond Unix epoch of its last edit, so use it as the change date (e.g. 1760000000000 → 2025-10-09). The oldest fingerprint among unpublished changes tells you how long they've waited; save it in the snapshot so next week can compare.

6. Output

GTM Monitor — [Container Name]
Week of [YYYY-MM-DD] – [YYYY-MM-DD]

⚠️  Needs attention this week
- [Critical/important first, or "No changes — container stable."]

Changes since last week
- Added:   [N]  — [names]
- Edited:  [N]  — [names + what changed]
- Removed: [N]  — [names]

Health
- Orphaned tags: [N]
- Duplicate GA4 config: [yes/no]
- Unpublished changes: [yes — N changes, oldest X days / no]

Inventory: X tags · X triggers · X variables

Recommended actions
1. ...

7. Save this week's snapshot

Call write_context_node on insights/gtm/monitor/latest with account_id, container_id and workspace_id, plus the full current inventory (id, name, type and GTM fingerprint of every tag, trigger and variable) and the oldest unpublished-change fingerprint, so next week can diff. Also write a dated copy to insights/gtm/monitor/<YYYY-MM-DD>.

8. Record findings — selectively

Only file a create_finding for genuine concerns — a measurement-critical tag changed, an orphaned tag, changes stuck unpublished. A stable week files nothing.

json
{
  "title": "GA4 config tag edited this week — verify it was intentional",
  "body": "'GA4 - Config' was modified since last week's snapshot: the Measurement ID field changed. If unplanned, every GA4 hit may be routing to the wrong property. Confirm with whoever owns the container and check GA4 DebugView.",
  "action_type": "tag_change_review",
  "expected_outcome": "Change confirmed intentional, or reverted",
  "estimated_impact_usd": 0,
  "priority": "high"
}

On Cloud, create_ticket takes the same content with the fields mapped per section 2 of the routing guide.

Action types: tag_change_review, tag_fix, trigger_fix, consent_configuration, publish_pending.

Recording findings

Use create_ticket when the workspace has it (Cloud) and create_finding otherwise (Solo). The fields differ; see section 2 of ../marketing-engineer/references/mcp-routing.md.

Critical rules

  1. The diff is the point. Always compare to last week's snapshot; a bare inventory with no diff is not a monitor.
  2. Changes to GA4 config / Ads conversion / consent tags are critical — verify every one was intentional.
  3. Lead with what changed and what's broken. A stable week is one short line.
  4. Read-only. Never edit or publish the container.

Veelgestelde vragen

Wat doet de AI-skill Gtm Monitor?

Wekelijkse controle van een GTM-container — nieuwe, bewerkte en verwijderde tags, niet-gepubliceerde conceptwijzigingen, verweesde tags en werkruimtestatus — met verschillen ten opzichte van de vorige week

Waarom Gtm Monitor gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Gtm Monitor bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Gtm Monitor in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/cognyai/claude-code-marketing-skills/tree/main/skills/gtm-monitor. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Gtm Monitor gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Gtm Monitor gebruiken?

Zoveel als je wilt. Je kunt Gtm Monitor gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Gtm Monitor gratis?

Deze skill is door cognyai op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇