This guide gives an overview; it does not replace legal advice suited to your situation.
What server-side tracking is
In classic tracking, the visitor’s browser loads the tags of Google, Meta or an ad network and sends them the data directly. In server-side tracking, the browser sends the events (page view, purchase) to a server you control, often on a subdomain of your site. That server sorts them and passes them on to the platforms.
Two common forms:
- Server-side Google Tag Manager: a “server” container receives requests from the web container and forwards them to Google Analytics, Google Ads or other tools;
- conversion APIs, such as Meta’s Conversions API: your server sends the events to the platform itself, alongside or instead of the pixel in the browser.
The advertised benefits are real: fewer third-party scripts in the page, more control over what leaves, and less data lost to ad blockers.
Why consent is still required
Three reasons, which add up:
- The browser is still the source. To know that a visitor bought after clicking an ad, you have to recognise them: a cookie, a click identifier, data read from the device. Setting or reading it is access to the terminal, covered by Article 5(3) of the ePrivacy Directive (Article 82 of the French data protection act). The EDPB’s Guidelines 2/2023 state that the fact that the information reaches someone other than the party who triggered the request does not prevent the rule from applying.
- The server passes on personal data. A hashed email address, an IP address or an identifier sent to Meta or Google is personal data under the GDPR: you need a legal basis to share it, and for targeted advertising that means consent in practice.
- The platforms require it themselves. Meta lists, among the prerequisites of its Conversions API, appropriate notice to and consent from users for sharing event data, as its Business Tools Terms require.
Moving collection to a server mostly makes it less visible to the visitor and to an auditor who opens the browser tools. That is one more reason to be rigorous, not a loophole.
Passing the visitor’s choice through to the server
The banner collects the choice in the browser. The server only sees requests: the choice has to travel with them.
- Server-side Google Tag Manager. According to Google’s documentation, Consent Mode is set up only in the web container. The Google tag adds the visitor’s choice as parameters to each request sent to the server container, and Google product tags in the server take it into account: for example, when
ad_storageis denied, Floodlight and Google Ads remarketing tags block HTTP requests and cookie use. Google also points out that Consent Mode does not provide a banner: you need a consent solution alongside it. - Non-Google tags (Meta, TikTok, an ad network) do not read those parameters on their own. You have to set a condition in the server container so they only fire when the visitor has accepted the relevant purpose.
- A conversion API called by your own code (after a purchase, for instance) must check the choice recorded for that visitor before sending anything.
Pitfalls to avoid
- The extended “first-party” cookie. A server on your subdomain can set cookies that last longer than script-set ones. They are still trackers, under the same rule and with a reasonable lifetime.
- Double sending. A pixel in the browser and a server-side conversion API for the same event: a refusal must cut both.
- The refusal forgotten on the server. A banner that blocks the pixel properly while the server keeps sending orders to the ad network does not respect the refusal.
- Information. The data recipients (Google, Meta…) must be listed in your banner, your cookie policy and your privacy policy, even if the data passes through your server first.
With Optooki
Optooki does not do server-side tracking: it collects the choice in the browser and makes it available to your setup. It sends the Consent Mode v2 signals, which the Google tag then passes on to your server container, and offers a Google Tag Manager template for the web container. For your own triggers or a conversion API call, the JavaScript API gives you the visitor’s choice category by category. Every choice is kept as a timestamped record for 13 months.