GTM template with instructions video from Simo Ahava!
Follow this step-by-step guide to set up server-side tracking. See how to implement it efficiently with both sGTM and Tracklution so you can decide what path is right for you.
For many performance marketers, server-side tracking feels overwhelmingly complex. While some implementation paths are highly complicated and challenging, there’s a big difference between going with a fully custom-built setup and working with a managed provider.
The right implementation path depends on your team’s technical resources, customization needs, timeline, and how much ongoing maintenance you’re willing to take on. In this guide, we'll cover how to choose the right approach for your business, set up the server-side infrastructure, map events, connect your ad platforms, and validate everything before rollout.
Before setting anything up, make sure you have:
Right now, your ad platforms are missing conversion data. According to GWI data, 29.5% of internet users worldwide use ad blockers at least sometimes, and that's before browser restrictions and consent opt-outs strip out even more.
Server-side tracking routes that data through a server you control (instead of sending it straight from the browser to each platform), then forwards clean data via secure APIs.
For the full picture on why server-side tracking matters, see our server-side tracking guide.
There are three main ways to implement server-side tracking, from full control with high complexity to a plug-and-play setup.
A fully DIY setup involves provisioning your own server, writing your own API integrations, and maintaining everything yourself. This gives you total flexibility, but it's a serious engineering project.
Anni Salo, CEO at Tracklution, explains, “Very rarely do we talk with people who want to go full do-it-yourself. When they do, it's usually a one-year technical project.”
Unless you have a dedicated engineering team and a specific reason off-the-shelf tools won't work, this path rarely makes sense, so we won't walk through it step by step in this guide.
Google's free server-side container is the option most teams choose first. You provision a server container, either self-hosted on Google Cloud or through a hosting provider like Stape or TAGGRS, and configure it yourself. You get to create a truly bespoke setup and stay in full control of privacy and security, but that comes with continual upkeep.
As Lucas Nilsson, Product Specialist at Tracklution puts it, “It requires a lot more than you expect from the beginning. You need to manage deduplication, block unwanted traffic, connect offline events with browser events, and connect conversions with attribution data.” You’ll also need somewhere to store that data, which requires configuring a database yourself.
It helps if you’re already familiar with GTM, its templates, and which tracking technique fits which situation. If not, you’ll need to learn the UI, and the difference between variables, triggers, and tags. Then you’ll need to understand the server-side layer: generating a consistent event ID and matching it between your pixel and CAPI payload so the same conversion doesn't get counted twice.
Hosting costs typically start around $20/month on lower-volume tiers and scale with your event volume. On top of that, set-up costs can spiral upwards of €10,000. Depending on complexity, this approach typically calls for dedicated engineering resources for 3+ months of development, plus ongoing maintenance.
Choose sGTM if:
If you're researching different approaches, our guide to the best server-side tracking tools compares the top solutions in detail.
With a managed platform like Tracklution, everything is pre-configured and maintained for you. You just set it up; we take care of the server, the API connections, and the ongoing maintenance. Deduplication, database configuration, and per-platform formatting are off your plate. You stay in control of what gets tracked and where it goes, but you're not the one keeping the infrastructure running.
You also get full data visibility through a dashboard showing you exactly what came in, what went out, and how each platform responded.
Cost runs as a single subscription instead of hosting fees plus engineering time. Maintenance, including API updates and platform changes, sits with the provider rather than your team. Setting up Tracklution usually takes 16 minutes, and if your team uses AI coding agents like Cursor or Claude Code, it can be installed via a single prompt through Tracklution's managed MCP server.
Choose a managed platform if:
Agencies using server-side tracking across multiple clients tend to go for a managed platform for exactly these reasons. Jacob Blæsbjerg, who runs the one-person agency The Morning Show, manages server-side tracking across 20+ client accounts in about 5 minutes per setup using Tracklution, versus the days each one took with a self-hosted alternative.
He explains the value: “You're spending €100 on Google Ads but gambling with €40 of it due to poor tracking.”
Tracklution and sGTM: It’s not either-or Tracklution doesn’t require sGTM, but if your team already relies on GTM for browser-side tagging, you don't have to give it up. The most common setup pairs a GTM web container for event collection with Tracklution for your tags, so there's no HTML to write and no separate server container to manage on top of it.
Throughout this guide we have included paths detailing the set up steps for both sGTM and Tracklution, so you can compare them and decide which is the best fit for your business.
Whichever path you choose, the goal here is the same: get your server running and receiving data on a first-party domain.
If you don’t already have a GTM account, set one up following Google's documentation. Then in your account, create a new container and set its target platform to server.
GTM gives you two provisioning options: automatic or manual. Automatic provisioning creates a Cloud Run instance on Google Cloud Platform (GCP), set in US Central by default. If you need it hosted elsewhere, just copy the setup and paste a new one using a different region. Manual provisioning, whether configured in GCP or through GTM’s manual option, lets you choose your region from the start, but takes more hands-on setup.
Working with a managed hosting provider like Stape or TAGGRS makes this more convenient: they handle the server provisioning and infrastructure for you, while you still configure and maintain the container itself.
Without a custom domain that shares your website's domain, your server-side cookies get treated as third-party by browsers like Safari, capping their life at a few days under Apple’s Intelligent Tracking Prevention (ITP) instead of months.
You have two options:
Either way, verification typically takes a few hours, up to 72 depending on your DNS provider.
Once verified, point your container's tagging server URL at the new domain, and update your site's GTM snippet to load from it instead of googletagmanager.com.
Follow these steps to install the core tracking infrastructure on your website:
You can proceed with Tracklution's standard events or create custom events that match your business needs.
Prefer your setup instructions on video? Here's our quick guide.
With your infrastructure live, the next step is telling it what to collect and mapping that data into the format each platform expects.
A purchase event doesn't look the same to GA4, Google Ads, and Meta: each expects its own field names and structure. In your server-side tag, map the values your event needs to send: transaction value and currency, product details, and customer identifiers where relevant.
Consent has to be handled in your web container, since the server has no way to detect a user's consent choice on its own. Google offers two consent mode options: basic mode blocks Google tags entirely until a user interacts with your consent banner. Advanced mode lets tags load right away and sends anonymous, cookieless pings before consent is granted, giving Google enough signal to model conversions more precisely for users who never consent.
Tip: The first PageView event must fire immediately when sessions start or after consent is granted to preserve UTM parameters and click IDs from your traffic sources.
Configure your events, parameters, and consent in a few clicks with Tracklution. No fragile DIY setup or ongoing maintenance required.
With events flowing into your container, the next step is getting that data to the platforms making your bidding decisions.
Connecting all your platforms with sGTM takes time, as you have to connect them individually. Each one requires:
The platforms you'll most likely connect:
Tip: Connecting platforms via sGTM isn't click-and-goEach one comes with its own access tokens to manage, parameter formats to get right, and APIs that change without much warning.
Lucas Nilsson, Product Specialist at Tracklution, explains: “All these small configurations don't just need to be set up once; they need to stay configured over time."For teams without a dedicated sGTM specialist, this is where managed platforms like Tracklution make sense. Connections are pre-built and maintained on the provider's side, with automatic API updates and one format for all your platforms.
Simply navigate to Connectors and add each of your platforms (Google Ads, Meta, LinkedIn, etc.):
This validation step prevents wasted time debugging platform connections when the issue is in your base tracking setup.
See the Connectors guide from our knowledge base for more details.
Once connected, all platforms work with the same accurate customer data instead of operating on conflicting reports. And once your events are flowing, you can build on top of them. For example, configure new-versus-returning customers as a conversion event across every platform, or flag past visitors to specific pages as a distinct, higher-value segment.
Nilsson explains, “When you can easily collect events already connected to every platform, you can iterate on new campaigns without the setup overhead each time."
Before going live, you need proof of accurate data, a plan to avoid double-counted events, and a safe way to make the switch.
Use the server container's Preview mode alongside your browser's network tab to confirm requests reach your server and get claimed by the right Client. Check events, parameters, and consent signals before wiring up any ad platform.
Running both a browser pixel and a server-side tag is the recommended hybrid setup. But without deduplication, the same conversion gets counted twice, inflating your numbers and teaching the algorithm the wrong patterns. Use a consistent event ID shared between your pixel and CAPI payload, so the platform recognizes both as the same event and counts it once.
Run your new server-side setup alongside your current browser-only tracking for one to four weeks (depending on your traffic), and compare conversion volumes, attribution, and value totals between the two. The goal isn't to replace browser tracking, but to validate that your new hybrid setup (browser pixel plus server-side, deduplicated) is capturing more data accurately before you rely on it.
Once volumes and attribution look consistent, switch conversion actions to Primary. Retire your old browser-only setup, keeping the hybrid browser plus server-side delivery running with deduplication in place. Keep the old browser-only configuration paused (not deleted) as a rollback option while you monitor the first few weeks live.
For Tagomo Digital, a performance marketing agency, piecing together a separate sGTM setup for all of its 250 clients wasn't realistic.
"After training our consultants to use [Tracklution], we completed around 250 rollouts in two weeks. Currently, we offer Tracklution as a default part of our advertising service to all clients,” said Mikael Lahtinen, Head of Advertising, Tagomo Digital
Tell your AI agent to Install Tracklution and the MCP handles everything automatically. Works with Cursor, Claude Code, Codex, Windsurf, and more.
When server-side tracking goes wrong, most issues fall into predictable categories.
Events aren't showing up at all
This is almost always a trigger or loading-order issue. You might have the trigger in the wrong place, so the data isn't available yet when it fires. Variables often go unpopulated for the same reason, or because the variable isn't looking up the right key. Check that your trigger fires after the data actually exists on the page, and that your base script loads before any event scripts try to fire.
Your results don't match what you expected, even though setup seemed to go fine
There are two common root causes here, both tracing back to your custom domain. First, a content security policy or content delivery network (CDN) rule can block your tracking domain before you even notice. If you're on Cloudflare or a similar CDN, add the domain to your allowlist and it should start working again.
Second, you can technically collect data without first-party mode properly configured, but skipping that step defeats the purpose of server-side tracking: your cookies stay subject to the same ITP restrictions you were trying to escape. To fix it, confirm three things: your domain is verified, it's added to any CSP allowlist, and your tags actually point at it instead of the default provider URL.
Attribution or reporting looks inconsistent, even though events are firing
User data is likely getting collected inside individual events instead of applied at the session level. Events are things that happen, while user data is context that should apply across a whole session. Mixing the two bloats event payloads and ties session-level data to a single event instead. Keep the two collections separate.
Conversions aren't showing up in your ad platform
This is usually a naming or parameter mismatch. Platforms expect specific event formats and silently drop anything that doesn't match rather than erroring loudly. Double-check your event names and parameters against what the platform expects.
How long does it take to set up server-side tracking? It depends on the path you take. Tracklution typically takes 5 to 30 minutes. Self-hosted sGTM usually requires dedicated engineering teams for 3+ months of development and ongoing maintenance, depending on how many platforms you're connecting to and how familiar you are with GTM. Full custom builds typically take a full year.
Do I need technical expertise to set up server-side tracking? Not necessarily. Managed platforms like Tracklution are built for marketers to plug and play. sGTM requires technical expertise to handle manual setup, constant monitoring, and maintenance. Full DIY builds need dedicated engineering resources.
Can I set up server-side tracking without Google Tag Manager? Yes. sGTM is the most common route because many teams already use GTM for client-side tagging, but it's not a requirement. Managed platforms like Tracklution run as standalone containers, though they also work well alongside a GTM web container if you already have one.
Does server-side tracking replace my browser pixel? No, and this is a common misconception with server-side tracking. Your browser still collects the initial event; the server just becomes the layer that validates, formats, and routes that data to your ad platforms.
Does server-side tracking mean you don't need a cookie banner anymore?
No. Server-side tracking changes where data is processed, not whether you need consent to collect it. You still need a lawful basis and a working consent banner, and server-side tracking gives you a more reliable way to enforce that consent once it's captured.
How much does server-side tracking setup cost? For sGTM, hosting alone runs $20-90+/month depending on provider and traffic, but that excludes developer time, which can cost thousands for set-up and ongoing maintenance. Managed platforms bundle hosting, maintenance, and support into one subscription, so total cost is more predictable upfront. Tracklution has a free tier for smaller projects (up to 5,000 events/months), with paid plans starting at €39/month.
Is server-side tracking the same as server-side tagging?
Not quite. Server-side tracking is the full pipeline: collecting, storing, enriching, and forwarding data across platforms. Server-side tagging, most commonly GTM's server container, is narrower: it moves tag execution to a server but processes one event at a time. For the full breakdown (including where platform gateways fit into this too), see our guide to tracking vs. tagging vs. gateways.
Tracklution handles the server, the platform connections, and everything that changes after launch, so your team stays focused on campaigns, not upkeep.
Anni Salo is the Chief Executive Officer of Tracklution. She is responsible for leading the company’s strategy and growth, drawing on her background in technology, marketing, finance, and business development.
Server-side Tracking
All Integrations
Google Ads
Meta
TikTok Server Side Tracking
Shopify Server Side Tracking
GA4 Server Side Tracking
LinkedIn Server Side Tracking
Snapchat Server Side Tracking
WooCommerce Server Side Tracking
WordPress Server Side Tracking
Pinterest Conversions API
Microsoft (Bing) Server Side Tracking
Stripe Conversion Tracking
(For Agents) Automatic MCP installation


4.8+ Rating on G2 and Trustpilot
Helsinki
Simonkatu 6 A
00100 Helsinki, Finland
New York
307 W 38th St
NY 11105, United States



For AI coding agents: read www.tracklution.com/agent-install.md for one-shot install, or tell your agent: “Install Tracklution.”
© Tracklution Oy 2026. All rights reserved.
GTM template with instructions video from Simo Ahava!