---
title: "Server-Side Tracking Checklist: From Event Map to Production Test"
description: "Run a server-side tracking checklist in six stages: map events, size the container, host the tagging server, set dedup IDs, check consent, test live."
url: "https://blog.sofunnels.com/blog/server-side-tracking-checklist"
author: "Lucas Oliveira"
published: "2026-11-25"
updated: "2026-11-25"
category: "Server-Side Tracking"
---

# Server-Side Tracking Checklist: From Event Map to Production Test

## Key takeaways

- Write the event map before provisioning anything: event name, trigger, which side fires it, the `client_id` or `app_instance_id` it carries, and its dedup key.
- Google's default container is a test rig. Run a minimum of 3 instances, cap each server at 1 vCPU, and deploy exactly 1 preview server with no autoscaling, which puts the Cloud Run bill at roughly $90 to $150 a month before traffic.
- Reuse one event ID in both the pixel and the server call, and keep it on the order record: Meta only deduplicates copies that arrive within 48 hours of the first event with that ID.
- Send one event with the vendor test flag on, confirm it in the debug view, then remove `test_event_code` from the production payload. Remove `test_event_code` from the production payload before the server send goes live, or live sends keep arriving marked as test events.
- Reconcile server purchase counts against Stripe orders hour by hour, and run a returning-visitor journey on day eight of Safari use, since ITP deletes script-writable storage after seven days without interaction.

A server-side tracking checklist runs in six stages. First, map every event and its identifier. Next, provision a container sized for live traffic. Then host the tagging server on your own domain. Give each conversion one shared event ID. Confirm consent. Finally, run a production test. It reconciles server counts against browser counts. Most time lost on a server-side tracking checklist goes to defaults, not code. Those defaults include a single-instance container, a preview server that autoscales, or a `test_event_code` left in the live payload.

So the order matters. Each stage below produces something the next one reads. It starts with a one-page event map you can hand to whoever builds the tags. It ends with a count-by-count comparison against your Stripe orders.

You'll get the exact container values Google recommends. You'll also get the field-level rules that keep Meta from double-counting a purchase. The consent checks to run before the first live event are included too. So is a Safari test schedule that catches the gap a Chrome-only test hides.

## Build the event map before you touch a server

Write the event map first: a one-page list of every event you measure, the identifier it carries, and which side fires it. Everything downstream, from dedup to the production test, reads from that list.

[Server-side tagging moves measurement tag instrumentation](https://blog.sofunnels.com/blog/server-side-tracking-vs-browser-side) off your website or app and into a [server-side processing container](https://developers.google.com/tag-platform/tag-manager/server-side/overview). That container can run on Google Cloud Platform or another platform. Google gives two reasons to do it: fewer measurement tags in the browser means [less client-side code to run](https://developers.google.com/tag-platform/tag-manager/server-side/overview). Visitor data is also collected and distributed in a [customer-managed environment](https://developers.google.com/tag-platform/tag-manager/server-side/overview).

For each event, record the identifier the Measurement Protocol will carry: `client_id` for web events and `app_instance_id` for [app events](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events). Then check your names. GA4 caps event and parameter names at [40 characters](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events), so shorten anything close before it ships.

On purchase and add-to-cart events, the `items` array takes up to [27 custom parameters](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events) on top of the prescribed ones. Pick those 27 by what you report on, such as plan tier, product line or margin bucket, not by what's easy to send.

Mark every event that fires on both the browser and the server. Those rows are the only ones dedup has to cover, and they're the ones you'll reconcile in the production test.

**Event map columns with three example rows**

| Event | Trigger | Side | Identifier | Dedup key | Owner |
|---|---|---|---|---|---|
| purchase | Order confirmation page | Browser + server | client_id | event_id | Web dev |
| add_to_cart | Product page button | Browser | client_id | none | Marketing |
| app_open | App launch | Server | app_instance_id | none | Mobile dev |

## The server-side tracking checklist for provisioning a live container

The container Google provisions for you by default is a test rig, not production infrastructure. Its [automatically provisioned single-server deployment restricts the resources available and is recommended for testing limited traffic volumes only](https://developers.google.com/tag-platform/tag-manager/server-side/overview), so real traffic will hit a ceiling. Set these values before the first live event arrives.

- **Instance count.** Run [a minimum of 3 instances per container for redundancy](https://developers.google.com/tag-platform/tag-manager/server-side/overview). One instance means an outage or a capacity spike drops data with nothing behind it to catch the send.
- **Two deployments, one image.** A manual setup means [provisioning the server-side tagging cluster and a preview server separately](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide), both from the same Docker image. Give each its own deployment config.
- **Preview server sizing.** Deploy [exactly 1 preview server and do not configure autoscaling beyond 1 instance](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide). Set the load balancer or CDN in front of it to [a timeout longer than 20 seconds, otherwise preview mode will not work correctly](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide).
- **Environment variables.** Every instance in the cluster must carry [the same CONTAINER_CONFIG and PREVIEW_SERVER_URL values](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide). A stale URL on one instance sends preview traffic to the wrong place.
- **vCPU cap.** Provision [at most 1 vCPU per server, since additional vCPUs are not utilized and affect autoscaling negatively](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide). Adding cores feels safer and makes scaling worse.
- **Health checks.** Point liveness checks at [the existing /healthy endpoint](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide), for example `https://analytics.example.com/healthy`. A non-healthy response should trigger a restart.

> **Note:**
> Budget for scale, not just for one box. Google puts the upgraded Cloud Run environment at [roughly $30 to $50 per server per month, with heavy network traffic pushing costs higher](https://developers.google.com/tag-platform/tag-manager/server-side/overview). At the three-instance minimum, that's about $90 to $150 a month before traffic.

## Host the tagging server on your own domain and connect it

Host the tagging server on your site's origin or a subdomain, such as `example.com/analytics`. That's [Google's recommended setup](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide). Then open Admin > Container Settings, paste that URL into the Server container URL field, and save. [Preview the container](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide) to confirm it reaches the server.

If preview returns nothing, check the URL scheme and the load balancer timeout before changing container tags. Write the final URL into your event map so the next person doesn't have to hunt for it.

Sofunnels gives every workspace a `yourcompany.sofunnels.com` address with hosting and SSL. Basic and Pro also add first-party tracking with server-side Google sends. The subdomain step is already done for funnels built there. See [Plans and pricing](https://sofunnels.com/pricing).

## Write the dedup rule: one event ID, both sides

[Meta deduplicates a pixel event and a server event](https://blog.sofunnels.com/blog/meta-capi-setup-google-tag-manager) only when both the event name and the event ID match. A mismatch on either field counts the same conversion twice.

Generate one ID per conversion and reuse the exact value in the browser pixel and the server call. [Meta lets the advertiser pick any unique string](https://www.metricmaven.io/blog/meta-conversions-api-deduplication). Your order or lead ID works if both sides send the identical value. The dedup window is finite. Copies are [deduplicated only if they arrive within 48 hours of the first event with that event_id](https://www.metricmaven.io/blog/meta-conversions-api-deduplication). A retry queue that holds events longer than that will double-count.

The [field details that cause silent drops](https://blog.sofunnels.com/blog/improve-event-match-quality):

- **action_source:** [set it to `website` for website events](https://www.metricmaven.io/blog/meta-conversions-api-deduplication). Anything else changes how the event is attributed.
- **event_time:** [can be up to 7 days late](https://www.metricmaven.io/blog/meta-conversions-api-deduplication). Send it as close to the real timestamp as your pipeline allows.
- **Contact and profile fields:** [normalize, then hash with SHA-256](https://www.metricmaven.io/blog/meta-conversions-api-deduplication) before sending, or match quality drops.
- **ad_impression:** don't push it through the Measurement Protocol when tagging or the SDK already captures it, since [that duplicates impressions](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events).

Store the event ID on the order record. Two days later, that stored value is how you prove a duplicate claim to Meta or to your own finance team.

If the funnel already runs on Sofunnels, [Meta CAPI and server-side Google tracking](https://sofunnels.com/pricing) are included on Basic and Pro. This becomes a settings check rather than a build.


## Check consent rules before the first production event

Your server container doesn't sit outside consent law. Before the first live event goes out, confirm every tag waits for a clear positive action, such as [ticking a box or clicking a link](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/). If it fires on page load, fix the trigger order first.

- **Homepage, no consent, no tags.** [You cannot set non-essential cookies on your website's homepage](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/) before the user has agreed, so a server event queued from that pageview is out too.
- **Cookies aren't the only thing covered.** [Regulation 6 applies to any method](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/) of storing information on, or gaining access to, a user's device. That includes identifiers your tagging server writes back to the browser.
- **Anonymous data doesn't exempt you.** [PECR applies to all cookies](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/), including ones that process anonymous data.
- **The banner needs a working off switch.** Consent is only freely given when users can [enable or disable non-essential cookies easily](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/).
- **New ad platform, new consent.** [You may need fresh consent if your use of cookies changes](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/), which covers adding a destination to the server container.

> **Watch out:**
> Test in a fresh browser profile where nobody has accepted anything. Open your vendor's debug view on the homepage: only essential events should appear. Anything else means a tag is firing before consent, and that is the costliest thing to find after launch.

## Test the send in the vendor's debug tool, then strip the test flag

Turn on the vendor's test flag and send one server event. Confirm it lands in the debug view. Then remove the flag before you switch the server send on. Skip either half and you get a silent failure, or a test flag that follows you into production.

For Meta, send a request with the `test_event_code` parameter. Then [confirm the event appears in Events Manager](https://www.metricmaven.io/blog/meta-conversions-api-deduplication). That flag marks the payload as a test, so real traffic never sees it. Before you enable the server send, [remove `test_event_code` from the production payload](https://www.metricmaven.io/blog/meta-conversions-api-deduplication). A flag left in place keeps marking every live send as a test event.

If you build a custom server-to-server send instead of a container, Google [recommends the Data Manager API for new integrations](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events). The Measurement Protocol is still safe to build on. Google calls it [mature and finalized with no plans for deprecation](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events).

One ordering rule matters when you test campaign data. `campaign_details` only applies to events with a [timestamp greater than or equal to its own](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events). Send it first in the batch.

- [ ] Send one event with the vendor test flag on and confirm it in the debug view
- [ ] Check event name, timestamp and event ID against your event map
- [ ] Remove the test flag from the production payload
- [ ] Send a second event with no flag and confirm it lands as live traffic
- [ ] Put `campaign_details` before the events it should tag
- [ ] Note the test timestamp so you can spot these events in the production reconciliation

## Run the production test: reconcile counts, timing and Safari

Compare server-side purchase counts to your platform's order count for the same window, not to the pixel count. The pixel is the thing you're replacing, so it can't be the referee. Pull [orders from Stripe and purchases from the vendor](https://blog.sofunnels.com/blog/conversions-api-stripe-checkout). Line them up hour by hour, then look for a gap that grows in one direction.

![Illustration of a woman standing at a desk holding a phone and looking at a laptop with a notebook and coffee nearby.](https://blog.sofunnels.com/media/2026/11/server-side-tracking-checklist-1-1152.avif "Test the same event on a real phone and a desktop before you trust the numbers.")

[Safari is where that gap usually appears](https://blog.sofunnels.com/blog/track-checkout-events-ios-14). [Third-party cookies are blocked by default](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) from iOS and iPadOS 13.4 and Safari 13.1 on macOS. A setup that still depends on a third-party cookie reads clean in Chrome and loses events on Apple devices. [ITP deletes script-writable storage after seven days](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) of Safari use without interaction on the site. Test a returning-visitor journey on day eight, not just a first visit. [Cross-site `document.referrer` is downgraded to the origin](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/), which thins attribution for any event that relied on the full referring URL.

Put the Apple runs on a schedule. [WebKit recommends testing in Safari Technology Preview and the iOS, iPadOS and macOS betas](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) instead of waiting for a release build.

**7 days** of Safari use without site interaction and a site's script-writable storage is deleted ([WebKit](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/))

A third number makes the reconciliation faster. In Sofunnels, [Step-by-step conversion tracking](https://sofunnels.com/pricing) is full on Basic and Pro. Its [UTM attribution covers Facebook, Google and TikTok campaigns](https://blog.sofunnels.com/blog/utm-tracking-landing-pages). That gives you counts of your own to hold against the Stripe order total. A single vendor reporting low then stands out instead of looking normal.

## Frequently asked questions

### Do I still need Google Tag Manager if I build a server-side setup?

Yes. A server-side setup adds a second container, the server container, alongside the web container already running on your site. The web container sends events to the tagging server URL and the tags fire there. You're changing where tags run, not dropping Tag Manager.

### Can one tagging server handle several funnels or domains?

Technically yes: several sites can point at the same server container URL. But Google recommends hosting the tagging server on the site's own origin or a subdomain of it, so one shared server gives up that first-party position for every domain except one. Use separate containers or subdomains when first-party hosting matters.

### Why do my Meta events still show as duplicates after I set up deduplication?

The event name and the event ID both have to match on the pixel copy and the server copy, and a mismatch on either one counts as two conversions. Copies also must arrive within 48 hours of the first event with that event_id, so a slow retry queue reopens the gap. Confirm the production payload no longer carries test_event_code.

### Does server-side tracking get around ad blockers?

Not by itself. Google's stated benefits are less client-side code to run and visitor data collected in a customer-managed environment, not blocker evasion. Same-origin or subdomain hosting is the setup Google recommends, but no tagging server makes your measurement immune to blocking.

### How long does a proper server-side tracking setup take for a small team?

No published benchmark exists, so treat this as an estimate: a day or two to write the event map, provision the container and connect the domain, then one to two weeks of reconciliation before you trust the counts. The Safari returning-visitor check adds a second pass about a week later.

### What should I check first when the tagging server returns errors during a launch?

Start with the connection, not the tags. Confirm the Server container URL matches the deployed host and scheme, that the load balancer timeout is longer than 20 seconds, and that every instance carries the same CONTAINER_CONFIG and PREVIEW_SERVER_URL values. Then hit the /healthy endpoint to see whether an instance needs a restart.

## Sources

- [Server-side tagging](https://developers.google.com/tag-platform/tag-manager/server-side/overview) — Google for Developers
- [Manual setup guide (Server-side tagging, Tag Manager)](https://developers.google.com/tag-platform/tag-manager/server-side/manual-setup-guide) — Google (Google Developers, Tag Platform documentation)
- [Events | Google Analytics 4 Measurement Protocol](https://developers.google.com/analytics/devguides/collection/protocol/ga4/reference/events) — Google Analytics
- [Full Third-Party Cookie Blocking and More](https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/) — WebKit
- [Cookies and similar technologies](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/) — Information Commissioner's Office (ICO)
- [Meta Conversions API Deduplication](https://www.metricmaven.io/blog/meta-conversions-api-deduplication) — Metric Maven
