GA4 setup

How to track across subdomains in GA4 (blog.yoursite.com)

If you have a blog, shop or app on a subdomain, a visitor moving from one to the other can get counted as a brand-new session from a referral. Good news: GA4 usually handles subdomains with almost no setup.

The good news about GA4 and subdomains

Unlike the old Universal Analytics, GA4 handles subdomains automatically as long as both use the same GA4 property and measurement ID. The first-party cookie is set at the top domain level, so moving from www to blog keeps the same session and source. Often there is nothing to configure.

When it still breaks

How to set it up cleanly

Use one GA4 property and the same measurement ID across every subdomain, ideally deployed through one Google Tag Manager container. Confirm the subdomains are not listed as referrals, and if they are, add a referral exclusion. Note subdomains and genuinely different domains are not the same thing: crossing to a separate root domain needs cross-domain tracking, which is a bigger job.

Want us to check your tracking in 10 seconds?

Pop in your domain and we will show you what is firing, what is not, and where data is leaking. Free, no signup.

Check my tracking free

Get a plain-English audit

We check your live GA4, Google Tag Manager and consent setup by hand and tell you exactly what is wrong. The audit comes off any build.

See how it works & pricing

Datahound are analytics and ad-tracking specialists. We fix broken GA4, Google Tag Manager and server-side tracking so every sale, form and call gets counted. Back to datahound.agency · All tracking guides · Cross-domain tracking in GA4