# Server container hand-off: <web container GTM-XXXXXXX> to <server container GTM-XXXXXXX>

The web container audit cannot see inside the server container. This sheet tells the server owner what the web side sends, what must happen to it, and how to prove it in server Preview and the host's request logs. Fill one block per routed ID from the R13 routing line and stack.md. Never paste credentials, access tokens or API secrets here; name where they are stored instead.

- Prepared from: audit of web version <ID> on <date>, finding IDs <R13 ...>
- Server owner: <role>. Host: <first-party subdomain, for example sgtm.example.com>, provider <name>
- Server version live: <ID "name">, read on <date>

## Routed ID: <G-XXXXXXXXXX>

- Web route: <Google tag "name" [ID] with server_container_url https://sgtm.example.com>; other tags for this ID going direct: <none | list>
- Events expected at the server: <page_view, purchase, generate_lead, ...> with these parameters: <transaction_id, value, currency, items, event_id>
- Client that should claim them: <GA4 client name>; transformations that touch them: <names, or none>
- Destinations the server sends them to: <GA4, Google Ads, Meta Conversions API, ...>
- Vendors also sent from the browser: <Meta Purchase and Lead from tags "..." [ID]>
- Deduplication key per vendor: <Meta: event_name plus event_id from the data layer event_id; Google Ads: transaction ID; GA4: transaction_id for purchases>
- Consent expectation: <server tags read the consent state sent with each request (gcs, gcd); which tags must not send under denied ad_storage or ad_user_data>
- First-party cookies the server sets: <names and lifetimes, or none>

## Test cases for server Preview

1. One page view on a fresh profile with no consent choice: <expected incoming request, claimed by client, outgoing requests per destination>.
2. One test purchase on staging with agreed reference <ACME-TEST-001> after accepting consent: browser Meta request carries eventID <X>; server Meta event carries event_id <X>; Events Manager test events shows the pair deduplicated.
3. The same purchase after rejecting consent: <which server tags must not fire>.
4. A reload of the confirmation page: no second purchase leaves the server.

## Evidence to return

- Server Preview screenshots or exports for each case, with the request IDs.
- Host request log lines for the test window (no IP addresses or user agents pasted).
- Vendor diagnostics: Meta Events Manager test events, Google Ads conversion diagnostics, GA4 DebugView.

## Open questions for the server owner

- <for example: does the server generate its own event_id for Meta, or read the one sent from the browser?>
