Tag Pilot
Menu

Web tracking introduction

Server-side tagging and tracking

First-party tracking

The website tracking landscape keeps changing. Cookie banners and privacy features in browsers reduce tracking accuracy, so advertising platforms have come up with ways to limit the data loss.

One of the key technical answers is to stop sending tracking data directly to third-party APIs and platforms and to proxy it through a first-party system instead. In the most basic version, tracking is handled by the same server (or domain) that serves the main website.

The browser then treats this traffic as internal, first-party traffic and may not apply all the limitations that kick in when data is sent directly to Google or Meta servers.

Conversions API

To enable first-party tracking, advertising platforms published Conversions APIs (CAPI). These are data collection endpoints that accept events sent by servers, not by pixels as in traditional tracking.

It is a slight simplification, but a Conversions API is the server-side equivalent of the tracking pixel. It is designed to collect the same events, with more control over the data.

Server-side tagging

A dedicated first-party tracking system brings more benefits. A Google Tag Manager server container, for example, lets you move most of the tagging logic to the backend. The website part is trimmed down to the essentials, and the server container does the heavy lifting of sending data out to the destination services.

When a user adds a product to the cart, the web tag sends one event to the server-side container. The container transforms it and sends that one event to several destination services. In a traditional, browser-only setup many tags run on the same event, and a user navigating away can interrupt some of them before they finish, which reduces tracking coverage.

As a result, server-side setups are lighter for the visitor’s browser and more reliable for data collection.

Server-side tracking (not tagging)

To a non-technical person, first-party tracking, server-side tagging and server-side tracking can all sound like the same thing. There are differences between them:

  • First-party tracking means browser events are sent to a first-party system before being forwarded to a third-party API. This can happen through server-side tagging, but not necessarily: it can also be handled directly by the ecommerce platform.
  • Server-side tagging means using an actual server-side tag manager, which offloads tags from the browser and keeps the tagging logic on the backend.
  • Server-side tracking is the most advanced and complicated of the three. It tracks events outside the context of the user’s browser session, for example an order refund or a lead that converts on a sales call: events triggered by something other than the user’s actions online. It enables advanced scenarios such as handling delayed payments, but it also makes it harder to link those events with the user’s activity on the website.

For a step-by-step look at each of these setups in Google Tag Manager, read Google Tag Manager server-side explained.