Tracking health

From logly/mureo · View interactive version

Tracking health is an AI agent skill from the GitHub repository logly/mureo. Preventive audit of conversion tracking across all configured ad platforms — Meta pixels + CAPI, Google Ads conversion actions, and final-URL tracking-parameter consistency on every platform — with a GA4 cross-check. Use when the user asks to check tracking, audit conversion measurement, verify pixe

How to use this skill

Skill file

Tracking Health

PREREQUISITE: Read ../_mureo-shared/SKILL.md for auth, security rules, output format, and Tool Selection (Read/Write on Code, mureo_strategy_* / mureo_state_* MCP on Desktop / Cowork).

Tool names below refer to the built-in platforms; a namespaced variant (see _mureo-shared → Namespaced built-in variants) is used with its prefix substituted.

Preventively audit conversion tracking across every configured platform. Measurement breakage is the costliest silent failure in ad ops — spend keeps flowing while the signal the algorithm optimizes toward is wrong or absent — so this skill hunts for it before it shows up as a mysterious CPA spike.

Prerequisites

Steps

Before you start: Run the Diagnostic preamble from ../_mureo-shared/SKILL.md — load learning insights (mureo_learning_insights_get) and consult advisors (mureo_consult_advisor) before drawing conclusions.

  1. Establish today: call mureo_state_get first, on every host (including Claude Code, where you would otherwise Read the file) and take server_now from its response — ISO 8601 with UTC offset, e.g. 2026-07-28T10:12:33+09:00. Its date is the only source of the current date for this run: judging whether a pixel's last_fired_time is "recent" is a comparison against it, and the observation_due you write in step 12 is server_now's date + 7 days. Do not shell out (this skill must run in Bash-less headless hosts) and do not read the date off STATE.json — last_synced_at, reports.*.period and action_log timestamps are history, never evidence of what day it is now. Never write server_now into STATE.json: it is a response field, and a persisted copy becomes tomorrow's stale "today".
  1. Load context: Read STRATEGY.md (especially each Goal's declared conversion definition, Persona, and Operation Mode) and STATE.json (the same mureo_state_get response from step 0 on MCP hosts). Note what the operator considers a real conversion for each platform (a lead form submit, a purchase, a phone call) — the audit below is only meaningful relative to that intent.
  1. Discover available platforms: Identify all configured platforms from STATE.json platforms and which data sources (GA4, Search Console) are accessible. Also enumerate installed plugin platforms (mcp__mureo__<plugin>_* tools) and any hosted official-MCP connector present in the session (e.g. TikTok's tt-ads-* tools, STATE.json key tiktok_ads); include them best-effort — see ../_mureo-shared/SKILL.md → Plugin platforms and Hosted-connector platforms.
  1. Meta Ads — pixel inventory + health (prefer mureo native):
  1. Google Ads — conversion actions + status (prefer mureo native):
  1. Cross-check with GA4 (when available): mureo ships no native GA4 tools — GA4 is reached as a configured data source, so pull the site's conversion count from that source (do not reference a ga4_* tool that does not exist). Compare each platform's ads-reported conversions against GA4's conversions for the same event and window. A divergence > 20 % is a flag — report the likely causes so the operator can triage:

Present the discrepancy as a signal to investigate, not proof one number is wrong — the platforms genuinely count differently.

  1. Search Console: N/A for conversion tracking — Search Console has no conversion signal. Skip it here (organic conversion behavior belongs in daily-check / weekly-report).
  1. Plugin & hosted-connector platforms (best-effort): for a plugin platform (plugin:<dist>:<provider>) or a hosted connector (tiktok_ads), report only the basic tracking status its own tools expose and emit analytics_not_available_for_<platform> for the mureo-only deep checks (pixel health, result_indicator, conversion-action recency) — do not fabricate a tracking verdict from an integration's tool schemas. See ../_mureo-shared/SKILL.md → analytics-module parity and Hosted-connector platforms. The one exception is step 8's tracking-parameter consistency check: it is platform-neutral and analyses ad records you pass in rather than a per-platform analytics module, so it applies to a plugin or hosted platform exactly as it does to Google and Meta — whenever that platform's own tools can list ads with their destination URLs.
  1. Tracking-parameter consistency — every platform (analysis_tracking_consistency_check): steps 3-7 ask whether the conversion signal arrives. This step asks whether the click that produced it lands in the right row of the analytics everyone downstream reads. An ad uploaded into campaign B carrying campaign A's utm_campaign breaks segment-level reporting while delivery, spend and conversions all look perfectly healthy — nothing appears broken, so nobody investigates.
  1. Scorecard: present a per-platform tracking scorecard, one row per check, each rated OK / Watch / Broken:

```

Platform Check Status Evidence

Meta Ads Pixel firing (last_fired_time) OK fired 2h ago

Meta Ads Lead event present Broken no Lead events in 30d

Meta Ads result_indicator vs Goal Watch 2 campaigns on link_click

Meta Ads CAPI present Watch browser pixel only

Meta Ads URL tracking consistency OK 0 findings / 34 ads

Google Ads Primary conversion action ENABLED OK "Purchase" ENABLED

Google Ads Recent conversion data Broken 0 conv in 30d for "Lead"

Google Ads Primary/secondary counting Watch verify PageView not primary

Google Ads Ads CV vs GA4 CV (±20%) Watch Ads 120 / GA4 78 (+54%)

Google Ads URL tracking consistency Broken 16 ads carry campaign A's utm_campaign

Amazon Ads URL tracking consistency n/a not checked — bridge exposes no URL

```

Rate the consistency row Broken when any finding has delivery_state: served (reporting is already wrong), Watch when findings exist but nothing served, and OK only when the platform's ads were all readable and produced no findings.

  1. Fix list — ranked by revenue risk: turn every Broken / Watch into a concrete fix, ordered by how much spend is riding on the broken signal (a broken primary action on the highest-spend campaign is #1; a missing secondary action on a paused campaign is last). For each fix state: what is wrong, the concrete remediation, and the platform/UI or tool that performs it.
  1. Approval gate for any state-mutating fix: most remediations here are operator actions (re-add a tag on the site, flip an action to primary in the Google Ads UI, install CAPI). Where a fix does mutate platform state through a mureo tool (e.g. google_ads_conversions_update to re-enable an action, google_ads_conversions_create to add one, sending backfill events via meta_ads_conversions_send), apply the Confirm Before Write Operations rule from ../_mureo-shared/SKILL.md — show the current value and the proposed change and get explicit approval before the call. For an official/hosted-MCP write, also self-apply the STRATEGY.md ## Guardrails rules yourself (mureo's PolicyGate cannot see that call) — see ../_mureo-shared/SKILL.md → Hosted-connector platforms. A plugin / bridged write (including Amazon Ads) does reach the gate — exactly on the money tools mureo declares paths for (the 13 money-carrying Amazon tools), with the pattern scan still applied underneath as a floor, and best-effort on argument-key patterns alone for anything else — so still state the applicable cap.
  1. Record any change to action_log: for each approved state-mutating fix, log to action_log (via mureo_state_action_log_append) with metrics_at_action (the pre-fix conversions and firing state you could read, with their period) and an observation_due 7 days out from server_now's date, so daily-check's evidence step confirms the fix actually restored the signal. A pure audit with no changes still logs a summary entry (findings + scorecard verdict), with no observation_due. Give every entry a display line: display_title (at most 40 characters) and display_summary (at most 120) — what this action WAS, in the operator's words, as plain text with no markdown (**bold** reaches a person as asterisks). The dashboard row shows those two and stops there; the full summary is drill-down only, so keep writing it as fully as the next agent needs and let the display line be the short one. Over either bound the append is refused, never truncated.
  1. Persist the report summary (best-effort): Call mureo_state_report_set with report="tracking" and a concise summary object so the read-only dashboard can render this audit without re-running you. Follow this convention:

Reflect the FINAL state, and persist this LAST — after every action_log entry and any fix you applied this run. This is best-effort: if mureo_state_report_set is unavailable (e.g. a pure file-mode host without the context MCP), skip it silently — the rest of this skill still works.

  1. Persist the display contract (best-effort): Call mureo_state_display_set with what the DASHBOARD shows. This is a different audience from the summary above — STATE.json is written for the next agent, and this small bounded section is the only thing the operator's screen reads. Write it in the SAME pass as the report, from the SAME figures, and reach no new verdict here: every value below is one you already decided, and this step only renders it.

The bounds, verbatim from the tool: The dashboard reads THIS section and nothing else — keep your reasoning where it already goes. Every bound below refuses the write rather than truncating it, because a sentence cut in half is worse than a long one. nav_message: one line, at most 80 characters. highlights: at most 3 items of {tone, text}, tone one of good/watch/bad, text at most 60 characters. proposals: {title, body, status, date}, title at most 30 and body at most 80 characters, status one of proposed/done. breakdown.campaigns / breakdown.adgroups: rows of {name, spend, mcpa, target_cpa, state, note} — the three figures are raw numbers, state is one of target_met/improving/watch/worsening/no_data, note at most 40 characters. stated_values: {label, value}, label at most 24 characters and value a raw number or a string of at most 12 characters — a sentence there is refused, because it lands in a numeric column. Do NOT write the KPI funnel or the daily chart: mureo computes both from the stored totals.

Over a bound the write is REFUSED — shorten and rewrite, do not re-send the same sentence trimmed. Lead with the point and drop the connectives; a noun phrase is fine (CPA 12% over target, not The CPA is currently running about 12% above the target we agreed). Trimming one character at a time and calling again spends the run's context on a bound one rewrite would have met.

You may not be the first writer today. `display is REPLACED WHOLE and the last writer wins — there is no merge. Before you write it, read the current one (mureo_state_get). Of what another skill wrote TODAY, carry exactly one thing into your own write: its proposals that are still live — not yet done, and not contradicted by what you just found. Everything else you write from your own run alone, because a screen assembled from two runs shows a moment that never happened. And carry over NOTHING ELSE: never copy another skill's nav_message, highlights, breakdown or stated_values, which would put its judgement under your name when you cannot vouch for it. Name yourself in source` so the screen says whose answer it is.

This is best-effort: if mureo_state_display_set is unavailable (e.g. a pure file-mode host without the context MCP), skip it silently — the rest of this skill still works.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.