What Is Server-Side Tagging?
Server-side tagging is a way of collecting website and app events in which the browser sends data to a server the business controls, and that server then forwards the data to analytics, advertising, and other vendors. In client-side tagging, each vendor's script runs in the visitor's browser and sends data directly to that vendor.
What does server-side tagging mean in practice?
With client-side tagging, a page loads a tag management container, and the container loads a script or pixel for each vendor. Every script collects what it can from the page and sends it from the browser to the vendor's servers.
With server-side tagging, the page sends a single stream of events to an endpoint on infrastructure the business operates, often on a subdomain of its own site. Software on that server, usually called a server container, receives each event and decides which vendors get it, in what form. The vendor connections then happen server to server instead of from the browser.
A lightweight client-side tag still runs on the page to capture the event and send it to the server, so server-side tagging moves part of the work and does not remove the browser from the process.
What does server-side tagging change compared with client-side tagging?
- Page weight: fewer vendor scripts load in the browser, which can reduce page load work.
- Data control: the business can filter, rename, or redact fields before any vendor receives them.
- Consent enforcement: the server can check a visitor's consent state and decline to forward data to vendors the visitor has not agreed to.
- Cookie handling: cookies set from the business's own domain can behave differently from third-party cookies, and browser rules on how long they last vary and change over time.
- Cost and effort: the business pays to host and maintain the server and needs engineering time to set up each vendor connection.
- Debugging: a problem can now sit in the browser tag, the server, or the vendor connection, which adds steps to troubleshooting.
What are the common misconceptions about server-side tagging?
Server-side tagging is often described as a way around browser tracking restrictions or consent rules. Privacy law and consent requirements apply to the data collected and the purposes it is used for, wherever the processing happens, so moving a tag to a server does not change what a visitor must be told or asked.
It is also sometimes treated as a replacement for a tag management system. It is better understood as a deployment option that many tag management products now support, alongside client-side containers. For the product category around it, see What Is a Tag Management System (TMS)?.
CartographAI is a free tool brands and agencies use to research tag management vendors, with independent assessments across the field.