Debugging a Server-Side GTM Container

Preview mode, request logs and the checks that find why an event is not reaching its destination.

Debugging server-side tagging is harder than client-side because you cannot see the requests in your browser's network tab. The forwarding happens on the server, out of sight.

The tools exist, they are just less familiar.

Preview mode is the main tool

Server containers have their own preview mode. Open it and it shows every incoming request, what the client did with it, which tags fired and what each one sent onward.

The important detail is that you need both previews running at once: the web container preview to see the browser side, and the server container preview to see what arrived. Debugging with only one gives you half the picture.

The order to check things

1. Did the request arrive

Open the server preview and trigger the event. If nothing appears, the problem is upstream: the browser is not sending to your container at all.

Check that your web container's Google tag has the server container URL set as its transport URL, and that the subdomain resolves. A DNS or certificate problem produces exactly this symptom.

2. Did a client claim it

Requests arrive and a client claims them. If the request appears but no client claimed it, the event data never becomes usable.

This usually means the incoming request format does not match what any client expects, often because a custom implementation is sending a payload shape the GA4 client does not recognise.

3. Did the event data look right

Once claimed, inspect the event data object. Check that the parameters you expect are present and named correctly.

A missing value here is almost always a problem in the browser, not the server. The server can only forward what it received.

4. Did the tag fire

Check the tags tab. A tag that did not fire has a trigger problem. A tag that fired but sent the wrong thing has a variable mapping problem.

5. What did the destination say

The outgoing request and its response are visible. A non-success response tells you the platform rejected it, and usually why.

This is the step that does not exist client-side, and it is the most useful one. Instead of guessing why a platform did not record your conversion, you can read its answer.

Debugging without preview

Preview mode only shows your own session. For problems affecting real traffic you need logs.

Configure logging so you can see error rates and response codes over time. A tag failing for ten percent of real traffic will never show up in preview, because your own test is always in the successful ninety. See logging and monitoring.

The problems preview will not find

  • intermittent failures under load

  • events lost during container cold starts

  • consent related differences, because you are one user with one consent state

  • region specific issues

For those, you need monitoring and reconciliation against your backend numbers rather than a debugging session.

Always test the full journey

Test a real conversion end to end rather than firing events in isolation. Most problems live in the joins: the browser to the container, the container to the platform, the deduplication between two copies of the same event.

Individually correct pieces that do not connect is the normal failure mode here.

If you would rather have this done for you, here is the offline conversion tracking service, or just get in touch and I will take a look at your setup.

Need accurate tracking?

Its Free

500+ Happy Clients ⭐️

Keep Reading

See exactly where you’re wasting ad spend and how better tracking can double your sales.

See exactly where you’re wasting ad spend and how better tracking can double your sales.

Tracking in 3 Hours

Tracking in 3 Hours

I Manage Everything

I Manage Everything

24/7 Expert Support

24/7 Expert Support

TESTIMONIALS

Trusted by 500+ satisfied clients

Discover how we’ve driven growth and innovation.

500+ Tracking

500+ Tracking

Adélaïde De Vos

3,922 followers

I had the pleasure to work with Abdul and I can say that he exceeded my expectations. He was professional, patient, and clear in his explanations and committed to client satisfaction. If you're looking for someone who is not only highly skilled but also reliable and committed to client satisfaction, I highly recommend Kayium!

Dean Watson

1,030 followers

Kayium setup our tracking for Google Ads and Meta Ads, which helped us get 20%+ more conversions on the same ad spend. He didn’t just handle the technical setup,he also took the time to explain why it works and how it improves results. If you’re looking for someone skilled, reliable, and committed to delivering real results, I highly recommend him!

David Friend

CEO: Profitable Sites

Kayium set up accurate tracking that helped us scale ads fast and boost conversions by over 25%. He gave us clear insight into which ads drive revenue.

Lalita Sundari

7,924 followers

I've worked with Kayium; his strategic mindset and expertise in GTM, GA4, Pixel & Server Side Tracking, are invaluable! I highly recommend Kayium!

© 2026 Abdul Kayium

Owned by Kayium

© 2026 Abdul Kayium

Owned by Kayium