Analytics - Performance Analysis - Tag Manager

A Rough Guide To: Server-Side Tracking

server side tracking

TL;DR:

Server-side tracking routes analytics and marketing data through a server-side endpoint before it’s sent to platforms such as Google Analytics and advertising systems. This gives you greater control over what data is collected, processed and shared, and can improve the resilience and quality of your tracking. It isn’t a replacement for consent, doesn’t automatically eliminate cookies, and usually works alongside rather than completely replacing client-side tracking. This guide explains how server-side tracking works, its benefits and limitations, what you need to implement it, and when it’s worth using.

What is server-side tracking?

Server-side tracking is a method of collecting and processing analytics and marketing data through a server-side environment rather than sending every tracking request directly from the user’s browser to third-party platforms.

With traditional client-side tracking, the browser might communicate directly with Google Analytics, Google Ads, Meta and other platforms.

With a server-side implementation, data can instead be sent to an endpoint you control, processed there and then forwarded to the platforms that need it.

This gives you considerably more control over what information is collected, how it’s processed and what is subsequently shared with third parties.

As a server-side tracking consultant, I generally see server-side tracking as an extension of a good analytics implementation rather than a complete replacement for browser-side measurement.

In many implementations, the browser still detects what the user is doing. The difference is that the resulting data is routed through the server-side setup before being sent onwards.

How does server-side tracking work?

A typical server-side tracking implementation introduces an additional layer between the website and the analytics or advertising platforms receiving the data.

In a traditional client-side setup, the flow might look like this:

User’s browser → Google Analytics

With server-side tracking, it might instead look like:

User’s browser → your server-side endpoint → Google Analytics

The server receives the request, processes it and can then decide what information should be forwarded to Google Analytics, Google Ads, Meta or another destination.

For example, with server-side Google Tag Manager you can send website events to a server container. The server container receives those events, processes them using clients, tags and other configuration, and then sends the appropriate data onwards. Google supports sending website events to a server container using either Tag Manager or gtag.js.

This additional processing layer is where much of the value comes from. Rather than allowing every third-party tracking platform to receive information directly from the browser, you have an opportunity to control and transform the data before it leaves your server-side environment.

Diagram showing how server-side tracking works

Client-side vs server-side tracking: what’s the difference?

The main difference between client-side and server-side tracking is where and how the tracking data is processed and sent to analytics and advertising platforms.

With client-side tracking, the user’s browser communicates directly with those platforms. With server-side tracking, an additional server-side layer sits between the browser and the platforms receiving the data.

Diagram comparing client-side vs server-side tracking

Here’s how the two approaches compare:

Client-side trackingServer-side tracking
ProcessingPrimarily in the browserAdds server-side processing
RequestsBrowser communicates directly with platformsData can be routed through your endpoint
Data controlLess control before data reaches vendorsGreater control before forwarding
Browser restrictionsMore exposed to browser-side restrictionsCan make measurement more resilient
PerformanceThird-party scripts execute in browserSome processing can move away from browser
ComplexityGenerally easierRequires additional infrastructure and configuration
CostOften minimal infrastructure costHosting/server costs may apply
ConsentStill required where applicableStill required where applicable

In practice, it isn’t always a choice between one or the other. Many server-side implementations are hybrid, with browser-side tracking identifying interactions and a server-side environment controlling how the resulting data is processed and distributed.

What are the benefits of server-side tracking?

Server-side tracking can offer several advantages over a purely client-side implementation, particularly when you need greater control over the data being collected and sent to analytics and advertising platforms.

The main benefits include:

Greater control over your data
Because tracking data passes through your server-side environment, you have an opportunity to inspect, modify and control the information before it is forwarded to third-party platforms.

More resilient tracking
Client-side tracking is increasingly affected by browser restrictions, blocked scripts, ad blockers and other technologies that can prevent tracking requests from being completed. Server-side tracking can reduce some of this dependency on browser-side requests and help make data collection more resilient.

Better data quality
Having greater control over how events and parameters are processed can help you standardise, validate and enrich data before sending it to platforms such as GA4. This can help reduce some of the reporting inaccuracies caused by poor-quality traffic and tracking problems such as missing events.

Greater control over third-party data sharing
Rather than allowing multiple third-party platforms to receive data directly from the browser, the server-side environment gives you another point at which you can determine what information is forwarded to each destination.

Potential performance benefits
Some tracking and processing can be moved away from the browser, potentially reducing the amount of work performed client-side. However, server-side tracking doesn’t automatically make a website faster. The performance benefit depends on what browser-side scripts and requests the implementation actually replaces or reduces.

These benefits are why server-side tracking has become an increasingly important part of more advanced analytics implementations. But they don’t mean server-side tracking is automatically the right choice for every website.

What are the limitations of server-side tracking?

Server-side tracking also introduces additional complexity, so the benefits need to be weighed against the cost and effort of implementing and maintaining it.

Some of the main limitations include:

More complicated implementation
You’re adding another layer to your tracking architecture. That means configuring the server-side environment, connecting it to your existing tracking and making sure data is correctly received, processed and forwarded.

Additional cost
Unlike a straightforward client-side GTM implementation, server-side tracking normally requires hosting or cloud infrastructure. The cost will depend on the technology used and the volume of traffic and requests being processed.

Ongoing maintenance
Server-side tracking isn’t necessarily something you configure once and forget about. Changes to your website, analytics setup, consent configuration and destination platforms can all require changes to the implementation.

More difficult troubleshooting
With another processing layer between the website and the destination platform, there are more places where tracking can go wrong. Debugging can involve checking both browser-side and server-side requests rather than simply looking at what happened in the browser.

It doesn’t solve every tracking problem
Server-side tracking shouldn’t be treated as a way to magically recover all missing data or bypass users’ privacy choices. Consent requirements still apply where relevant, and the quality of the resulting data still depends on the quality of the underlying tracking implementation.

This is why I wouldn’t recommend implementing server-side tracking simply because it’s perceived as the more advanced option. There needs to be a clear measurement, data quality, privacy or performance reason for introducing the additional complexity.

How can server-side tracking improve data accuracy?

Server-side tracking can improve data accuracy by making data collection less dependent on what happens entirely within the user’s browser.

Client-side analytics can be affected by browser restrictions, ad blockers, tracking prevention and scripts that fail to load or execute correctly. This can result in interactions being missed and discrepancies appearing between your analytics data and what actually happened on the website.

Routing data through a server-side environment can make tracking more resilient to some of these problems and give you greater control over the information eventually sent to platforms such as Google Analytics.

It also gives you an opportunity to validate, transform and standardise data before forwarding it. For example, you may be able to remove unwanted parameters, enrich events with additional information or make sure data is formatted consistently before it reaches your analytics and advertising platforms.

However, server-side tracking doesn’t automatically make your data accurate.

If an event is configured incorrectly, the wrong information is sent to the server, or the implementation creates duplicate events, those problems can still appear in your reporting. A server-side implementation is only as reliable as the tracking architecture feeding it.

That’s why I see server-side tracking as one part of a wider measurement setup. It works best alongside properly configured GA4 events and key events and thorough testing of both the browser-side and server-side implementation.

Does server-side tracking improve website performance?

Server-side tracking can improve website performance, but simply implementing it doesn’t automatically make a website faster.

With traditional client-side tracking, analytics and advertising platforms often rely on JavaScript running in the user’s browser. The more third-party scripts you load, the more work you’re potentially asking the browser to perform.

A server-side implementation can move some of that processing away from the browser and reduce the number of direct requests being made to third-party platforms. Where this genuinely allows browser-side scripts or processing to be reduced, there can be a performance benefit.

However, it’s important not to overstate this.

If you implement server-side tracking while continuing to load exactly the same collection of third-party scripts in the browser, you shouldn’t expect a significant performance improvement simply because a server container now exists.

The impact therefore depends on how the server-side implementation is designed, which browser-side requests it replaces or reduces, and what still needs to happen on the user’s device.

Performance is a potential benefit of server-side tracking, but for me it isn’t usually the sole reason to implement it. Greater control over data collection, improved data quality and more resilient measurement are generally more important considerations.

Does server-side tracking use cookies?

Yes, server-side tracking can still use cookies. Moving tracking to a server-side environment doesn’t automatically make an implementation cookieless.

Cookies may still be used to maintain identifiers, sessions and other information required by analytics and advertising platforms. The difference is that a server-side setup can give you greater control over how those cookies and identifiers are handled.

For example, rather than relying entirely on third-party requests made directly from the browser, a server-side implementation can use a first-party endpoint on your own domain and manage how information is subsequently passed to other platforms.

Server-side tracking can also work with other sources of first-party data and identifiers, depending on the platform and implementation.

The important distinction is that server-side tracking and cookieless tracking aren’t the same thing. You can have a server-side implementation that uses cookies, just as you can design measurement approaches that reduce reliance on them.

Moving the processing server-side also doesn’t remove your responsibilities around consent and privacy. How data is collected and used matters more than whether the request happens in the browser or on a server.

Do you need consent for server-side tracking?

Server-side tracking doesn’t remove the need to consider user consent. Whether consent is required depends on what data you’re collecting, how you’re collecting it, what you’re using it for and the privacy laws that apply to your users.

Moving a tracking request from the browser to a server doesn’t fundamentally change the purpose of the data collection. If you’re using analytics or advertising technologies that require consent, routing that data through a server-side environment doesn’t provide a way around those requirements.

In fact, one of the advantages of server-side tracking is the additional control it can give you over what data is processed and which platforms receive it once a user’s consent choices are known.

For Google-based measurement, tools such as Google Consent Mode can form part of this wider consent and measurement setup.

The important point is that server-side tracking should be used to give you greater control over responsible data collection, not as a mechanism for bypassing consent choices or browser privacy protections.

How does server-side tracking impact user privacy?

Server-side tracking can give you greater control over the data collected from users and subsequently shared with third-party platforms.

With traditional client-side tracking, a website may send requests directly from the user’s browser to multiple analytics, advertising and marketing platforms. Depending on the implementation, those platforms may receive information contained within the request directly from the browser.

A server-side environment introduces an additional layer where you can decide what information should be retained, modified, removed or forwarded before data is sent onwards.

For example, you may be able to remove parameters that aren’t required by a particular platform or prevent certain information from being forwarded at all.

This doesn’t make server-side tracking inherently private or privacy-compliant. A poorly designed server-side implementation can still collect or share more information than necessary.

The privacy benefit comes from the additional control the architecture provides, and how you choose to use that control.

Is server-side tracking GDPR compliant?

Server-side tracking isn’t automatically GDPR compliant simply because data is processed through a server rather than directly in the user’s browser.

GDPR compliance depends on the data you’re collecting, your purpose for collecting it, your lawful basis for processing it, how long it’s retained, who it is shared with and the safeguards you have in place.

What server-side tracking can provide is greater control over that data processing.

Because data passes through an environment you control before being forwarded to analytics and advertising platforms, you can potentially restrict unnecessary data, remove or transform certain parameters, and control which platforms receive particular information.

This can make server-side tracking useful as part of a privacy-conscious analytics architecture, but the technology itself doesn’t make an implementation compliant.

You still need to consider consent where applicable, data minimisation, transparency, retention and the requirements of the platforms you’re sending data to.

So I’d treat server-side tracking as a tool that can support a more controlled approach to data collection, rather than a solution to GDPR compliance in itself.

What do you need for server-side tracking?

The exact requirements for server-side tracking depend on the platforms you’re using and what you want to measure, but a typical implementation needs several components working together.

A browser-side data collection setup
In many implementations, you still need something on the website to identify interactions such as page views, form submissions, ecommerce events and other user activity. This might be handled using gtag.js, a data layer or Google Tag Manager.

A server-side endpoint
Instead of sending every tracking request directly from the browser to analytics and advertising platforms, data needs somewhere to go for server-side processing. This is commonly configured using a first-party subdomain associated with your website.

A server-side environment
The endpoint needs an environment capable of receiving and processing the incoming data. For Google Tag Manager server-side tracking, this means creating a server container and deploying the infrastructure needed to run it.

Clients, tags and configuration
Within a GTM server container, clients receive and interpret incoming requests. Tags can then take that data and send the appropriate information to destinations such as GA4, Google Ads or other platforms.

Hosting or cloud infrastructure
The server-side environment needs to run somewhere. Depending on the implementation, this could involve Google Cloud or another hosting solution designed to work with server-side tagging.

Consent configuration
Your server-side implementation also needs to respect the consent choices applicable to the data you’re collecting. Moving tracking to a server doesn’t remove those requirements.

Testing and debugging
You need to verify that events are being collected correctly, received by the server, processed as expected and forwarded to the correct destination without missing or duplicating data.

You don’t necessarily need every component above for every form of server-to-server measurement. But for a typical website analytics implementation using server-side GTM, these are the main building blocks you’ll be dealing with.

Diagram showing the requirements for a server-side tracking implementation

How do you implement server-side tracking?

The exact implementation will depend on your analytics stack and the platforms you need to send data to, but the basic process is broadly the same.

1. Decide what you actually need to track

Before configuring anything server-side, define the events and data you need to collect and where that information ultimately needs to go.

For example, you might need to send page views and ecommerce events to GA4 while also sending conversion data to Google Ads or Meta.

Starting with the measurement requirements helps avoid building an unnecessarily complicated server-side setup.

2. Make sure your client-side tracking is working correctly

Server-side tracking doesn’t compensate for a badly configured website tracking setup. The events and parameters being generated in the browser need to be accurate before you start routing them through another processing layer.

This might involve configuring your website’s data layer, gtag.js or Google Tag Manager to collect the required events.

3. Create the server-side environment

If you’re using Google Tag Manager, you’ll need to create a server container and provision somewhere for that container to run.

You’ll also normally configure a first-party endpoint or tagging domain so that tracking requests can be routed through your server-side environment.

4. Send your tracking data to the server

Your browser-side tracking then needs to be configured to send the appropriate requests to the server-side endpoint rather than simply sending everything directly to third-party platforms.

The server container receives those requests and determines how they should be handled.

5. Configure where the data should be sent

Once the server is receiving the data correctly, you configure the tags and destinations that need to receive it.

That might include GA4, Google Ads, Meta or other analytics and advertising platforms.

This is also where you can control which information is forwarded, transform data where necessary and prevent unnecessary parameters from being shared.

6. Apply your consent requirements

Your server-side setup needs to respect the consent choices relevant to your implementation. Don’t assume that moving data processing server-side changes whether you’re allowed to collect or send that information.

7. Test the entire data flow

Don’t just check that an event appears in GA4 and assume everything is working.

Test the complete journey:

Website → browser-side tracking → server endpoint → server-side processing → destination platform

Check that the correct events and parameters are being received, that values haven’t been changed unexpectedly, and that events aren’t being lost or duplicated.

8. Publish and monitor the implementation

Once the setup has been thoroughly tested, it can be published, but that isn’t the end of the job.

Changes to the website, consent setup, tags, APIs and destination platforms can affect server-side tracking over time, so the implementation should be monitored and periodically reviewed.

Server-side tracking implementation checklist

Before putting a server-side tracking implementation live, I recommend checking the entire data flow rather than simply confirming that events are appearing in your analytics platform.

Use this checklist as a final review:

  • Measurement requirements defined – you know which events, parameters and conversions you actually need to collect.
  • Client-side tracking validated – the website is generating the correct events and values before they’re sent server-side.
  • First-party endpoint configured – tracking requests are being routed to the intended server-side endpoint.
  • Server container receiving data – incoming requests are being correctly recognised and processed.
  • Tags and destinations configured – the right data is being forwarded to GA4, Google Ads, Meta or other required platforms.
  • Event parameters checked – important values such as event names, transaction IDs, revenue, currency and other relevant parameters are correct.
  • Consent behaviour tested – data collection and forwarding respects the consent choices applicable to your implementation.
  • Unnecessary data removed – you’re not forwarding parameters or information that the destination platform doesn’t need.
  • Duplicate events checked – the same event isn’t accidentally being sent both client-side and server-side when it shouldn’t be.
  • Test transactions or conversions completed – important conversion journeys have been tested from beginning to end.
  • Destination platforms checked – don’t stop at the server container. Confirm that the resulting data actually arrives correctly in the platforms that use it.
  • Monitoring in place – you have a way of identifying when changes to the website or tracking configuration cause the implementation to stop behaving as expected.

A server-side implementation can look perfectly healthy at one stage of the process while something is going wrong elsewhere. That’s why I prefer to test from the original website interaction all the way through to the final analytics or advertising platform.

Does server-side tracking require ongoing maintenance?

Yes. Server-side tracking should be treated as an ongoing part of your analytics infrastructure rather than a one-off implementation.

Even if everything is working correctly when the setup goes live, changes elsewhere can affect the data being collected and processed.

For example, maintenance may be required when:

  • Your website or ecommerce platform changes how events or data are generated.
  • New events, conversions or tracking requirements are introduced.
  • GA4, Google Ads, Meta or another destination changes its requirements.
  • Your consent management setup changes.
  • Tags, templates or server-side configurations are updated.
  • Hosting, DNS or the first-party tracking endpoint changes.
  • Unexpected increases or decreases in traffic affect hosting requirements or costs.

I also recommend periodically comparing the data reaching your server-side environment with the data arriving in the final analytics and advertising platforms. This can help identify missing events, duplicate conversions, incorrect parameters and other discrepancies before they become a significant reporting problem.

You don’t necessarily need to be constantly changing a stable implementation, but you do need to know when something has changed that affects it.

For larger or business-critical tracking setups, monitoring and regular validation should therefore be considered part of the implementation rather than an optional extra.

Can server-side tracking work with client-side tracking?

Yes. In fact, many server-side tracking implementations still rely on client-side tracking as part of the overall setup.

The browser is particularly useful for detecting what a user is doing on a website, such as viewing a page, clicking a button, submitting a form, adding a product to a basket or beginning the checkout process.

Rather than removing that browser-side measurement completely, server-side tracking can change what happens to the resulting data.

A typical hybrid setup might work like this:

User interaction → client-side tracking → server-side environment → analytics and advertising platforms

The client-side implementation identifies the interaction and sends the relevant data to the server-side environment. The server can then process that information, apply any necessary controls or transformations, and forward the appropriate data to its final destinations.

There can also be situations where events originate directly from a backend system rather than the browser. For example, a completed transaction or another business event might be generated by the website’s server or another system and sent server-to-server.

The right approach therefore depends on where the most reliable source of each event exists and what you need to do with the data afterwards.

Server-side tracking shouldn’t be viewed simply as a replacement for client-side tracking. In many cases, the strongest implementation uses both approaches where each is most appropriate.

Diagram showing client-side and server-side tracking working together

When should you use server-side tracking?

Server-side tracking is most useful when there is a clear reason for adding the extra infrastructure and complexity to your analytics setup.

I’d consider it when:

  • Data quality is becoming a problem. Browser restrictions, blocked requests or limitations in your existing tracking are creating meaningful gaps in the data you rely on.
  • You need greater control over the data you share. A server-side environment gives you an additional opportunity to control, transform or remove information before it’s forwarded to third-party platforms.
  • Analytics and advertising data is business-critical. If GA4, Google Ads, Meta or other platforms are important to how you measure and optimise marketing activity, improving the resilience of that data can justify the additional complexity.
  • You have a more advanced ecommerce or lead-generation setup. Businesses relying heavily on accurate conversion and revenue measurement are more likely to benefit than a simple website collecting basic page-view data.
  • You want to reduce reliance on browser-side tracking. Moving appropriate processing and requests server-side can reduce some of the dependency on scripts executing entirely within the user’s browser.
  • You need to integrate website and backend data. Server-side tracking can be particularly useful when measurement needs to combine browser interactions with transactions, CRM activity or other events generated outside the browser.
  • You have the resources to maintain it properly. There’s little value in introducing a sophisticated tracking architecture if nobody is going to monitor or maintain it afterwards.

On the other hand, a small website with relatively simple measurement requirements may gain very little from introducing a server-side environment.

If your existing GA4 implementation reliably provides the information you need, I wouldn’t implement server-side tracking simply because it’s perceived as a more advanced way of doing things.

The decision should ultimately come down to whether better data quality, greater control or more resilient measurement justifies the additional implementation and maintenance involved.

Is server-side tracking worth it?

For many businesses with important analytics, ecommerce or advertising requirements, server-side tracking can be worth the additional investment, but it isn’t something every website needs.

The strongest case for implementing it is when you’re experiencing meaningful limitations with a purely client-side setup, or when greater control over the collection and distribution of your data has real value to the business.

A good server-side implementation can provide more resilient measurement, greater control over data processing and sharing, and opportunities to improve the quality of the data reaching your analytics and advertising platforms.

Those benefits come with trade-offs. You have additional infrastructure to configure, hosting costs to consider, a more complicated tracking architecture and an implementation that needs to be tested and maintained.

For a simple website with basic measurement requirements, that additional complexity may be difficult to justify.

For an ecommerce site, lead-generation business or organisation heavily reliant on accurate analytics and advertising data, the calculation can be very different.

Ultimately, the question isn’t whether server-side tracking is technically better than client-side tracking. It’s whether the problems it solves are important enough to your business to justify the additional cost and complexity.

Need help with server-side tracking?

Server-side tracking can quickly become complicated once you’re dealing with client-side events, server containers, first-party endpoints, consent requirements and multiple analytics and advertising platforms.

I help businesses design, implement, test and troubleshoot server-side tracking setups, including integrations with Google Tag Manager, GA4 and advertising platforms.

If you’re considering server-side tracking, already have an implementation that isn’t behaving as expected, or simply want to understand whether it’s worthwhile for your measurement setup, take a look at my server-side tracking consultancy.

I also provide broader analytics and tracking consultancy where server-side tracking forms part of a wider measurement or attribution problem.




About The Author

I'm Dave Ashworth, a freelance SEO and website optimisation consultant with a background in development and a focus on fixing what's broken, improving what's working, and helping businesses grow through clear, practical SEO.

I combine hands-on technical know-how with years of experience in analytics, content strategy and platform optimisation. Whether it's an audit, a migration, or ongoing performance support, my work's about making websites stronger, faster, and easier to understand for - users, search engines and AI platforms.

When I'm not writing guides or sharing insights, I'm working directly with clients to solve problems, track results, and keep their sites moving in the right direction.

Dave Ashworth

get in touch

If you need some expert website optimisation and configuration, want to find out more, or even just have a question, fill in the form below as I will always be happy to help