Skip to main content
The state of ai impact assessment
Category: Tracking Technologies

Server-Side Tagging

Also known as: Server-side tracking, Server container tagging
Simply put

Server-side tagging is a method of collecting and processing website or app tracking data on a server that the site operator controls, rather than running that collection directly in the user's browser. Because the data first passes through the operator's own server before any is sent onward to third-party vendors, the operator gains more control over what information is shared and with whom. It is often described as shifting tracking from a third-party context to a first-party one.

Formal definition

Server-side tagging relocates the execution of tags, triggers, and variables from the client (browser or app) to a server-side container hosted by or on behalf of the first party, as implemented in platforms such as Google Tag Manager's server-side containers. Instead of loading multiple third-party scripts client-side, the client sends event data to the operator's server endpoint, which then processes and forwards data to downstream vendors. Proponents note it can improve measurement resilience against browser extensions and client-side restrictions, and can give operators greater control over what data is transmitted to third parties, which vendors describe as supporting privacy and compliance objectives. Server-side tagging is a data-architecture technique and does not by itself establish a lawful basis; the placing of or access to information on a user's device and any subsequent processing of personal data remain subject to the ePrivacy Directive (and national implementations) and the GDPR in the EU, and to applicable frameworks in the UK, US states, and other jurisdictions. In particular, moving processing server-side does not remove the need for valid prior consent where required, nor does it convert non-essential tracking into exempt activity; the specific compliance analysis depends on facts not addressed by this definition, and the treatment of data forwarded to third parties may still involve controller/processor and international transfer questions.

Why it matters

Server-side tagging has grown in prominence as browsers, extensions, and client-side restrictions have made traditional in-browser tracking less reliable. By routing event data through a server the operator controls before any of it reaches downstream vendors, organizations can gain finer control over what information is shared and with whom. Vendors frequently describe this as shifting tracking from a third-party context to a first-party one, and some position it as supporting privacy and compliance objectives because the operator can filter or minimize data before forwarding it.

Who it's relevant to

Privacy and data protection officers
Server-side tagging can offer greater control over what data leaves the organization for third-party vendors, but it does not by itself establish a lawful basis or remove the need for valid prior consent where required. DPOs should treat it as a data-architecture technique and assess controller/processor relationships and international transfer questions for data forwarded onward, recognizing that the specific analysis depends on facts not addressed by the architecture itself.
Web developers and analytics engineers
Those implementing tracking need to understand that server-side containers reuse the same tag, trigger, and variable concepts as client-side setups while relocating execution to a server endpoint. This approach is often noted for improved measurement resilience against browser extensions and client-side restrictions, but the technical benefits do not change the underlying consent and compliance obligations.
Legal and compliance teams
Legal counsel should be cautious about claims that server-side tagging inherently ensures better privacy compliance. Moving processing server-side does not convert non-essential tracking into an exempt activity, and in the EU the placing of or access to information on a user's device and any subsequent processing of personal data remain subject to the ePrivacy Directive and the GDPR, with different frameworks applying in the UK, US states, and other jurisdictions.
Marketing and measurement teams
Teams relying on analytics and advertising data may value the improved measurement resilience server-side tagging can provide, but they should coordinate with privacy and legal colleagues before adopting it. The greater control over vendor data flows is a benefit to be configured deliberately, not an automatic compliance outcome.

Inside Server-Side Tagging

Server-Side Tagging Container
A tag management container that runs on a server (often a cloud-hosted endpoint) rather than in the user's browser. Client-side requests are routed to this server endpoint, which then processes and forwards data to third-party destinations, shifting where tags execute away from the user's device.
First-Party Data Collection Endpoint
A collection point served from a domain controlled by the site operator, which receives event data from the client before it is distributed onward. This can change how requests appear to browsers and ad blockers but does not by itself alter the legal characterization of the underlying processing.
Data Forwarding to Third Parties
The server-side process of relaying collected data to analytics, advertising, or other vendors. Because personal data may still be shared with third parties, GDPR obligations relating to that processing, including a lawful basis and transparency, generally continue to apply.
Device Read/Write Operations
The initial reading of or writing to information on the user's device (for example, setting or retrieving identifiers) that typically still occurs on the client side. In most EU jurisdictions this triggers the ePrivacy Directive's consent requirement regardless of whether subsequent processing happens server-side.
Consent Signal Propagation
The mechanism by which a user's consent decision, captured client-side (often via a CMP), is passed to and honored by the server-side container so that tags fire or data is forwarded only where a valid basis exists.

Common questions

Answers to the questions practitioners most commonly ask about Server-Side Tagging.

Does moving to server-side tagging mean I no longer need cookie consent?
No. Server-side tagging changes where tag logic executes, not whether consent is required. In most EU jurisdictions, consent obligations attach to the placing of, or access to, information on a user's device under the ePrivacy Directive and its national implementations, and to any subsequent processing of personal data under the GDPR. Where server-side tagging still results in setting or reading identifiers on the user's device (for example cookies set via a server endpoint on your own domain), or in processing personal data such as IP addresses, the same consent and transparency requirements generally continue to apply. Server-side tagging may relocate processing but does not, by itself, remove the underlying legal basis obligations.
Does server-side tagging make tracking anonymous or automatically compliant?
Not inherently. Server-side tagging does not automatically anonymise data, and no architecture guarantees compliance on its own. Data flowing through a server container can still include identifiers, IP addresses, device information, or other personal data, which remains subject to the GDPR in the EU and to applicable frameworks elsewhere. Any anonymisation or pseudonymisation depends on how you specifically configure the server environment, and pseudonymised data generally remains personal data. Compliance depends on your consent handling, legal bases, transparency, and data governance rather than on the server-side approach itself, so legal judgment remains necessary.
How should consent signals be passed to a server-side tagging setup?
Consent status typically needs to travel from the point where it is captured (often a consent management platform in the browser) to the server environment, so that server-side tags fire only in line with the user's choices. This is commonly done by forwarding consent state alongside the request sent to the server container, and by configuring server-side tags to check that state before executing. The exact mechanism depends on your CMP, tagging platform, and integration. Note that tools support enforcement of consent but do not replace the need to verify that the configuration reflects valid consent as required in the relevant jurisdiction.
Do first-party cookies set through a server endpoint still require consent?
Generally, yes, where they are not strictly necessary. Under EU rules, the obligation to obtain prior consent for the placing of or access to information on a user's device typically applies regardless of whether a cookie is technically first-party or third-party, and regardless of whether it is set client-side or via a server endpoint on your own domain. The relevant question is usually the purpose of the cookie: strictly necessary or essential cookies are generally exempt, while analytics, advertising, and similar cookies typically require consent. Serving cookies through a server-side setup does not change that analysis by itself.
What records should I keep when using server-side tagging?
The consent record-keeping obligations that apply to client-side setups generally continue to apply. In the EU, being able to demonstrate valid consent typically means logging what the user was shown, what they agreed to or declined, and when. With server-side tagging, you should also be able to document how consent state is transmitted to and enforced within the server environment, and which tags fire under which conditions. Because a server container can obscure data flows from browser-based inspection tools, maintaining clear internal documentation of configuration and data handling is particularly important. Specific record-keeping requirements vary by jurisdiction and by the guidance of the relevant authority.
Does server-side tagging affect signals like Global Privacy Control or opt-out requests?
It can, depending on how you handle those signals. In frameworks that rely on opt-out mechanisms, such as certain US state privacy laws, signals like Global Privacy Control may need to be recognised and honoured. If tag execution moves to a server environment, you should ensure that opt-out and preference signals captured in the browser are still detected and enforced before server-side tags fire, rather than being lost in the handoff. As with consent signals more broadly, the responsibility to give effect to these choices remains yours, and the applicable requirements differ between the EU, the UK, and individual US states.

Common misconceptions

Moving tags server-side removes the need for cookie consent.
Server-side tagging changes where processing occurs, not the legal obligations. In most EU jurisdictions, any reading of or writing to information on a user's device still requires prior consent under the ePrivacy Directive, and any resulting processing of personal data remains subject to the GDPR. Consent requirements are generally unaffected by the technical relocation of tags.
Because data is collected from a first-party domain, it is no longer shared with third parties and consent standards no longer apply.
A first-party collection endpoint can still forward personal data to analytics, advertising, or other vendors. Where personal data is shared, transparency and a lawful basis are generally still required, and the same consent standards that apply to client-side tags typically apply to the underlying purposes.
Server-side tagging guarantees compliance by evading ad blockers and browser restrictions.
Evading blocking mechanisms is a technical outcome, not a legal safeguard. Circumventing user or browser choices may raise compliance and enforcement concerns rather than resolve them, and no technical configuration substitutes for a valid legal basis and proper consent management.

Best practices

Treat the initial client-side read/write of information on the user's device as a consent-triggering event in most EU jurisdictions, and ensure prior consent is obtained before it occurs, independently of where subsequent tags execute.
Propagate consent signals from your CMP to the server-side container so that data is only forwarded to destinations for which a valid basis exists, and confirm that tags respect withheld or withdrawn consent.
Maintain transparency about onward data sharing: document which third parties receive data server-side and disclose these purposes, since GDPR obligations generally continue to apply even when data is routed through a first-party endpoint.
Map the geographic scope of your audience and apply the appropriate framework, recognizing that EU, UK, and individual US state requirements differ (for example, opt-in expectations in the EU versus opt-out models in some US states).
Avoid configuring server-side tagging to circumvent ad blockers or browser privacy signals as a compliance strategy, and treat such circumvention as a potential risk rather than a safeguard.
Keep records of consent decisions and how they are enforced at the server layer, and seek legal review of your server-side data flows, since tooling supports but does not replace legal judgment.
Promotional banner for the Pentest Readiness checklist download