Server-side GTM (sGTM)
What is a server container?
Google Tag Manager comes in two variants: the classic web container, which runs as JavaScript in the browser, and a server container, which runs on a server. The server container receives a stream of events from the website, processes and enriches them, and forwards them to platforms such as GA4, Meta, and Google Ads.
Client-side vs. server-side tagging
- Client-side: Each platform's script loads in the browser and sends data on its own. Easy to get started with, but vulnerable to ad blockers, cookie restrictions, and slower pages
- Server-side: The browser sends one combined stream of events to the server, which distributes them onward. Fewer scripts in the browser, full control over which data is shared, and a much more reliable data foundation
First-party domain
A key point of sGTM is that the server container is set up on a subdomain of your own store, for example a.yourstore.com. This makes all communication first-party: the tracking script loads from your own domain, and cookies set from there last longer in browsers such as Safari than if they came from a third-party domain.
sGTM in Shoporama
Shoporama's server-side tracking is built on the server-side GTM principle. You activate it under Webshop → Tracking, choose a tracking subdomain, and create the DNS records shown on the page. Shoporama provides a shared, preconfigured tag setup, so you neither need to create a GTM account nor maintain a container yourself. See the full setup in the article on server-side tracking in Shoporama.
How to do it in Shoporama
Guides that show the term in practice
Server-side tracking in Shoporama: GA4, Meta, and Google Ads
A complete guide to server-side tracking in Shoporama. Better data quality, fewer conversions lost to ad blockers,...
Shoporama tracking engine: server-side tracking for all major platforms
Shoporama's tracking engine, developed with the agency 1260 A/S, sends data from your store directly to Facebook,...
HTML fields: add Cookiebot, GTM, and other scripts to your store
How to use HTML fields in Shoporama to add Cookiebot, Google Tag Manager, Facebook Pixel, chat widgets, and other...
We know online marketing at Shoporama
We have worked with online marketing ourselves for decades. As the only e-commerce platform in Denmark, we have spoken several times at conferences such as Marketingcamp, SEOday, Shopcamp, Digital Marketing, E-commerce manageren, Ehandelsdagen, Web Analytics Wednesday, and many more.