Subdomain, same-origin, or default? How to pick the right server-side domain

Written by

Manisha Mistry

Published Apr 30, 2026 comments
GTM documentation

What "domain" actually means in server-side GTM

How client-side tracking works

DevTools → Network

How server-side tracking is different

shop.stape.events

The parts of a domain

Web domain parts

How browsers see your domain: what is an origin?

What is an origin

Why does this matter?

Understanding the three domain options for server-side GTM

Option 1: default domain

Option 2: custom subdomain

One more check for subdomain setups: the IP check

How to run the IP check yourself in DevTools

Find your site's HTML document request by searching for your domain in the filter, for example stape.io
Click it, and under the Headers tab look at Remote Address and note the first two numbers.

Option 3: same-origin path

A decision framework for selecting your server-side domain

Domains

How to explain domain options to your client

Default domain → "send it to the PO box across town"

Subdomain → "send it to the office shed out back"

Same-origin path → "send it to 123 Test Drive, Room 4"

The mail analogy

Wrap up

Want to try the server side?

Try for free

Written by

Manisha Mistry

Content writer

Manisha is a technical marketer with expertise in GA4, GTM, BigQuery, server-side tagging, and AI automations. She makes complex setups easy to follow and immediately usable for marketing teams.

Was this article helpful?

Comments

Recommended for you

Turn better tracking into better marketing performance

Try for free