Ads server side tracking

From shenxingy/Clade · View interactive version

Ads server side tracking is an AI agent skill from the GitHub repository shenxingy/Clade. Server-side tracking pipeline audit covering server-side Google Tag Manager (sGTM), Meta CAPI Gateway, Conversions API health, event deduplication via event_id, server-side hit ratio targets, pixel debugging, and PII hashing discipline. Use when user says server-side tracking, sGTM, server-side GTM,

How to use this skill

Skill file

Server-Side Tracking Pipeline Audit

Audits the entire server-side measurement pipeline that backs every paid

channel's modeled conversion data. Without server-side tracking in 2026,

expect 30-40% conversion data loss from iOS ATT, ITP, and aggressive ad

blockers — that's the gap between what's actually happening and what your

bid algorithms can see.

This sub-skill is technical and deep. It's NOT the same as ads-attribution,

which audits the attribution model sitting on top of these events.

Process

  1. Collect server-side stack inventory: sGTM container info, Meta CAPI

integration method (Gateway / direct / partner integration), event

schema documentation, hosting infrastructure (Cloud Run / GCS / AWS)

  1. Read ads/references/conversion-tracking.md for cross-platform baseline
  2. Test event flow: trigger known events → verify they appear in BOTH

client-side (Pixel Helper / Tag Assistant) AND server-side (Events

Manager test events / GA4 DebugView)

  1. Audit deduplication, hashing, and parameter completeness
  2. Score health PASS / WARNING / FAIL per surface
  3. Generate findings report

What to Analyze

Server-Side Google Tag Manager (sGTM)

custom infrastructure. Self-hosted preferred over Google-managed for cost

and data residency

avoids ITP / ad-blocker blocking that hits googletagmanager.com

preserved

gbraid, wbraid) across cross-domain navigation

to analytics; only hash + forward what's needed for matching

Meta CAPI / CAPI Gateway

hashing, parameter coverage, lower maintenance)

InitiateCheckout, Purchase, Lead, CompleteRegistration

Manager → Overview → Data sources

(phone), fn/ln (name), ct/st/zp (geo), external_id,

client_ip_address, client_user_agent, fbc, fbp

email, system_generated)

Event Deduplication

the CAPI / sGTM payload — Meta + Google both dedupe on this

of client-side counterpart

names as client-side (don't rename in transit)

Server-Side Hit Ratio

lower means iOS / ITP / ad-blocker data loss isn't being recovered

the client-side missed (good — that's what server-side is for)

server-side firing or missing event_id

Pixel / Tag Debug Walkthrough

When deployed, validate every event end-to-end:

client-side with correct event_name + event_id + value + currency

side with matching event_id and customer_information parameters populated

Custom Event Taxonomy

PURCHASE or order_complete)

content_type, num_items

collision with platform-standard params

so downstream platforms can handle the cutover

Hash Quality & PII Handling

sending PII server-side, even hashed

Key Thresholds

| Metric | Pass | Warning | Fail |

|--------|------|---------|------|

| sGTM custom domain | Active | Configured, not active | Not configured |

| CAPI Gateway | Active | Manual CAPI | Pixel-only |

| EMQ (Purchase) | ≥8.0 | 6.0-7.9 | <6.0 |

| Dedup rate | ≥90% | 70-89% | <70% |

| Server / client hit ratio | 80-120% | 50-79% | <50% |

| customer_information completeness | 6+ params | 4-5 params | <4 params |

| Hash convention | Documented + verified | Implicit | Inconsistent |

| Test events validation | All 6 events pass | 3-5 events pass | <3 events pass |

Output

Server-Side Tracking Health Score

Server-Side Tracking Health Score: XX/100 (Grade: X)

sGTM Pipeline:               XX/100  ████████░░  (20%)
CAPI / CAPI Gateway:         XX/100  ██████████  (25%)
Deduplication:               XX/100  █████████░  (15%)
Server-Side Hit Ratio:       XX/100  ████████░░  (15%)
Pixel Debug (6 events):      XX/100  ███████░░░  (10%)
Hash Quality / PII Handling: XX/100  ██████░░░░  (15%)

Deliverables

date, with screenshots from Events Manager / DebugView)

Cloud, Apple Ads, TikTok Events API)

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.