How to Test Server-Side Tracking Using Google Tag Manager Preview and Debug Mode

This guide explains how to test Server-Side tracking using the preview and debug tools in Google Tag Manager. Testing your setup ensures that tracking events are correctly sent from your website through the server container to analytics and advertising platforms.

Requirements

  • A website using a Web Google Tag Manager container
  • A deployed Server-Side Google Tag Manager container
  • A configured tracking subdomain (for example: tracking.yourdomain.com)

Step 1 — Open Google Tag Manager

  1. Log in to your Google Tag Manager account
  2. Select your container
  3. Click the Preview button

The GTM preview tool will open the Tag Assistant debugging interface.

Step 2 — Connect Your Website

  1. Enter your website URL
  2. Click Connect

Your website will open in a new tab and connect to the debugging session.

Step 3 — Generate Test Events

Interact with your website to generate events such as:

  • Page views
  • Form submissions
  • Add to cart
  • Purchase events

Step 4 — Inspect Events in Tag Assistant

In the Tag Assistant window you will see a list of triggered events.

Select an event to verify:

  • Tags fired
  • Variables passed
  • Trigger conditions

Step 5 — Check Server Container Debug Mode

To verify server-side processing:

  1. Open your Server GTM container
  2. Click Preview
  3. Enter your server container URL

Example:

https://tracking.yourdomain.com

The server debugger will display all requests received by the server container.

Step 6 — Verify Incoming Requests

In the server debugger verify:

  • Client type (GA4, Measurement Protocol, etc.)
  • Incoming events
  • Tags executed

Step 7 — Validate Platform Delivery

After confirming the event reaches the server container, verify delivery in the corresponding platform:

  • Google Analytics Realtime reports
  • Facebook Events Manager
  • TikTok Events Manager
  • Google Ads conversion diagnostics

Step 8 — Troubleshooting

If events do not appear:

  • Verify the Transport URL in Web GTM
  • Check DNS configuration of your tracking subdomain
  • Confirm the server container is running
  • Ensure triggers are configured correctly

Once events appear in both the server debugger and the target platform, your server-side tracking setup is working correctly.

Was this article helpful?

Share this article