Server-Side Tagging vs Client-Side GA4: What Actually Changes
Server-side tagging is not just about bypassing ad blockers. Here is a practical breakdown of when it matters, when it does not, and what the migration actually involves.
How Client-Side Tracking Works
In a standard GA4 implementation, the Google Tag Manager (GTM) container runs in the user's browser. When a user loads your page, their browser downloads the GTM script, executes it, and sends tracking data directly to Google's servers.
This architecture has worked for over a decade. But three things have changed:
- Ad blockers now block 25-40% of tracking requests on many sites, depending on audience demographics.
- Browser privacy features — Safari's ITP, Firefox's Enhanced Tracking Protection — limit cookie lifespans to 7 days or less for third-party scripts.
- iOS 14.5+ App Tracking Transparency means ~75% of iOS users opt out of tracking entirely.
The result is that client-side tracking now misses a significant portion of user behaviour, particularly on mobile and among privacy-conscious audiences.
What Server-Side Tagging Changes
Server-side tagging moves the tracking logic from the user's browser to your own server (typically a Google Cloud Run container). The user's browser sends data to your domain, your server processes it, and then forwards it to Google Analytics and other destinations.
This changes several things:
- First-party context: Data is sent to your domain (e.g., analytics.yoursite.com) rather than google-analytics.com. This means cookies are set in a first-party context, extending their lifespan from 7 days to up to 2 years.
- Ad blocker resistance: Because the request goes to your domain, most ad blockers do not block it. Data recovery rates of 15-30% are common.
- Data control: Your server sees all tracking data before it goes to Google. You can enrich it, redact PII, or route it to multiple destinations.
- Reduced page weight: You can remove third-party scripts from the browser and send all data through one first-party endpoint.
What It Does Not Change
Server-side tagging is not a magic solution. It does not:
- Bypass consent requirements. GDPR and ePrivacy still apply. If a user does not consent to analytics, you cannot track them — server-side or otherwise.
- Recover iOS ATT opt-outs. Users who opt out of tracking at the device level cannot be tracked through any web-based method.
- Fix bad data architecture. If your event taxonomy is inconsistent or your attribution model is flawed, server-side tagging will not help.
- Eliminate sampling. GA4's data sampling occurs at the reporting layer, not the collection layer. Server-side tagging does not affect this.
The Real Business Case
Server-side tagging makes the most sense when:
- Your audience skews toward privacy-conscious demographics (tech, finance, healthcare)
- You are running significant paid media and need accurate conversion data for optimisation
- You want to send data to multiple analytics platforms without adding scripts to your site
- You need to comply with data residency requirements (server can be hosted in EU)
It makes less sense when:
- Your current tracking is already capturing 90%+ of conversions
- You are a small site with low traffic and no attribution complexity
- You do not have the technical resources to maintain the server infrastructure
Implementation Costs
A typical server-side GTM implementation costs:
- Setup: €3,000-€8,000 depending on complexity (number of tags, custom transformations, testing)
- Hosting: €30-€150/month for a Google Cloud Run container (scales with traffic)
- Maintenance: 2-4 hours/month for monitoring and updates
For most eCommerce businesses spending €10,000+/month on paid media, the improved conversion data alone justifies the investment within the first 2-3 months.
Getting Started
Before migrating, measure your current data loss. Compare your GA4 session counts to your server logs or CDN analytics. If you are losing more than 20% of sessions, server-side tagging is likely worth investigating.
Start with your core conversion events (purchases, sign-ups, key page views) and validate that server-side data matches your backend. Once you have confidence in the data quality, migrate additional events and retire the client-side tags.
Want to understand whether server-side tagging makes sense for your business?
Book a free 30-minute session