
In short
Server-side tagging sends website data to a server you control before it reaches analytics and ad platforms such as GA4, Google Ads and Meta. For ecommerce stores, that means fewer lost purchases from ad blockers and browser limits, lighter pages and more control over what is shared. This guide covers how it works, setup steps, costs and challenges.
Contents12 sections
What is server-side tagging?
Server-side tagging (SST) is a way of collecting website data in which the data first goes to a server you control, and only then to analytics and advertising platforms. In client-side tracking, the shopper's browser sends data straight to each platform. The server step gives businesses more control over their data, better privacy and more reliable tracking of the customer and product journey.
Key takeaways
- Server-side tagging sends data through a server before it reaches analytics and advertising platforms.
- It reduces data loss caused by browser restrictions, ad blockers and privacy updates, which matters most for ecommerce data such as transactions and revenue.
- Businesses gain more control over how data is collected, processed and shared.
- More accurate data leads to better reporting, better campaign optimisation and better marketing decisions.
- Server-side tagging works with tools such as Google Analytics 4 (GA4) and Google Ads. It improves data collection; it doesn't replace them.
Why do ecommerce numbers stop matching?
You launch a campaign and see hundreds of visitors. Products are viewed and orders placed. But in your GA4 reports the numbers don't match: some conversions are missing, others are misattributed, and revenue doesn't line up with your store.
This is common. Privacy updates, browser restrictions and ad blockers often stop businesses from collecting complete data. Server-side tagging is one of the main ways stores close that gap.
How does server-side tagging work?
With server-side tagging, your website's data makes a quick stop at a server before it goes to analytics and advertising platforms. The browser sends one stream of data to your server container, which runs the tags and forwards the right data to each platform on the browser's behalf.
- Client-side tracking: the browser sends data directly to each platform.
- Server-side tracking: the server receives, reviews and manages the data before it is shared.
You can see the difference in your browser's network tab. On a site with server-side tagging, analytics requests go to the site's own server domain first instead of straight to third-party domains.
Why has server-side tagging become important?
A few years ago, cookies and browser scripts captured most customer activity. Today:
- Safari and Firefox block third-party cookies by default.
- Browsers keep tightening what tracking scripts are allowed to do.
- Shoppers expect more privacy.
- Businesses still need accurate measurement to know what's working.
An illustrative example
Imagine an online clothing brand running a weekend sale that takes 100,000 orders. The next morning GA4 shows around 40% fewer purchases than the store. The missing orders didn't disappear; they weren't tracked because of browser restrictions, ad blockers, cookie limits or shoppers leaving the page before the tracking request was sent.
With server-side tagging, purchase data goes to the brand's server first and is then forwarded to GA4 and the ad platforms. In this example, the share of orders recorded rises to around 90%, giving a much more accurate view of sales. These figures are illustrative; the real gap varies by store.
Missing orders are not the only kind of discrepancy. Our guide to finding and fixing duplicate transactions in GA4 covers the opposite problem.
What are the problems with client-side tracking?
1. Missing customer data
A shopper clicks your Meta ad, lands on your store and buys something. But a browser restriction, a blocked script or a strict privacy setting means:
- the purchase might not be recorded properly,
- advertising platforms may get only half the picture,
- your analytics reports skip part of the purchase journey.
The campaign looks like it didn't work, when in fact the data went missing on the way.
2. Website performance issues
Most stores run several tracking tools at once: GA4, Meta Pixel, Google Ads, LinkedIn Insight Tag and whatever else has been added over the years. Every one of those scripts runs in the shopper's browser, which means more background requests and a real chance of slower product and checkout pages.
3. Wrong marketing decisions
Incomplete data misleads. A team may conclude "Meta ads aren't generating enough sales" when the real issue is "some conversions weren't tracked". Wrong insights lead to wrong decisions and weaker results.
How does server-side tagging improve ecommerce tracking?
- More accurate conversion tracking: purchase and checkout events are captured more reliably, so reported conversions sit closer to actual orders.
- Less data loss: more interactions survive browser restrictions, privacy updates and ad blockers.
- Better attribution: a clearer picture of which campaigns, channels and ads drive sales.
- More reliable reporting: more accurate revenue, purchase and behaviour data.
- Faster pages: less tracking work in the browser.
- Stronger first-party data: better support for audience targeting and remarketing.
- Validated transactions: check transaction IDs, order values and currencies before data is sent, which reduces duplicate or incorrect purchases.
- Cleaner data: filter bot traffic, spam and invalid events before they reach your tools.
- Less wasted ad spend: better conversion data helps Google Ads, Meta and other platforms optimise toward real sales.
- Better match rates: send higher-quality first-party data to Google enhanced conversions and the Meta Conversions API.
Client-side vs server-side tagging
| Client-side tagging | Server-side tagging |
|---|---|
| Data goes directly from the browser to each platform | Data goes to a server first, then to each platform |
| Less control over data handling and privacy | More control over what is collected and shared |
| Many scripts can slow product and checkout pages | Lighter browser load |
| Tracking disrupted by cookie limits and ad blockers | More consistent conversion tracking |
| Data more exposed in the browser | Data can be filtered before it reaches third parties |
How do you implement server-side tagging?
With Google Tag Manager (GTM), a typical setup has four steps.
1. Set up a server container
Create a new container in GTM and choose Server as the target platform.
Then set up the tagging server that runs the container: provision it automatically on Google Cloud, or manually on another hosting provider.
2. Configure clients and tags
As in web GTM, you set up tags, triggers and variables in the server container. The difference is that clients receive the incoming data from the website, and tags then process it and forward it to third-party services. In the example below, a Meta (Facebook) Conversions API tag fires on data received from GA4.
3. Send data from the website to the server
Change your website tagging so requests go to your server endpoint instead of directly to third-party services. In web GTM, that means setting the server_container_url parameter on the Google tag to your tagging server domain.
4. Secure the data in transit
Make sure data moving between the browser, your server and third-party services is secure, starting with HTTPS throughout.
Server-side tagging works with major ecommerce platforms such as Shopify, Magento, WooCommerce and BigCommerce, and with custom-built sites, though the setup differs by platform. The server container and DNS setup is best handled once by a developer or analytics specialist. Many stores have a working setup within a few days to a couple of weeks, depending on how many events and platforms move over; starting with the most important conversion events shows benefits early.
What are the challenges of server-side tagging?
- Complexity: setting up and maintaining server-side infrastructure takes more technical skill than client-side tagging and may need ongoing IT support.
- Cost: the server costs money to run, and the cost grows with data volume and traffic.
- Compliance: server-side tagging gives you more control, but also more responsibility for managing and securing user data. GDPR and CCPA still apply, and the server must honour consent choices.
Best practices
- Start from a well-structured GA4 setup. Server-side tagging improves data collection but can't fix an incomplete tracking plan.
- Respect consent and privacy rules. Configure the server to honour consent choices and send only data users agreed to share. Tools like GA4 data redaction help keep personal data out.
- Use first-party data where possible. It measures more reliably as browser privacy rules change.
- Monitor data quality. Compare analytics data with real business numbers to catch gaps early.
- Review the setup as you grow. New campaigns, platforms and site changes affect tracking.
Conclusion
Most ecommerce businesses aren't short of data. What they lack is better quality data and more control over how it is used. Server-side tagging won't increase sales on its own, but it makes sure the data behind your decisions actually arrives. See how a server-side tracking setup fits with your conversion tracking.


