What is Stape?
Stape is hosting for server-side Google Tag Manager, often called server-side GTM. Google writes that a server container runs on a server you control, in Google Cloud or in another environment of your choice (Google's introduction to server-side tagging). Stape is one such environment (Stape's page on hosting server-side GTM).
Stape is not a way around consent.
What do you need ready before you start?
You need five things ready: a web container, DNS access, access to the ad accounts, a banner with Consent Mode and a list of events.
- A web container that works. Stape writes that the web container must be set up first. It collects the events and sends them to the server.
- Access to DNS. Your own subdomain requires new DNS records.
- Access to the ad accounts. Google's guide assumes administrator rights in Google Ads and Google Tag Manager. In Meta, the link to the access token the server needs is only visible to users with developer rights.
- A banner with Consent Mode. The rules are in our guide to cookie banners and the Danish cookie rules.
- A short list of events. Purchase, lead and the few others the ads optimise for, with one definition each. That's the foundation of your conversion tracking.
How do you set up Stape step by step?
You set up Stape in ten steps: container in Google Tag Manager, container at Stape, your own subdomain, data from web to server, tags for three platforms, consent, testing and operation. The order follows Stape's getting started guide, and each step links to the vendor's own page for the exact screen.
Step 1: Create the server container in Google Tag Manager
- Choose your account in Google Tag Manager, click Admin, and click + next to Container.
- Give the container a name, choose Server under Target platform, and click Create.
- Choose Manually provision tagging server, and copy the container config. You'll need it in step 2.
- Choose. Create the container in your own account. That way the measurement stays with you.
- Where it goes wrong. If you choose Automatically provision tagging server, Google Tag Manager instead creates a Google Cloud project with a server for you (Google's overview of the setup).
- How you can see it works. The account has a container of the type Server (Stape's step 1).
Step 2: Create the container at Stape, and choose EU
- Create an account with Stape (partner link, Amplify may receive commission if you create an account), and choose EU as the location.
- Click Create sGTM container, and choose Manually.
- Fill in Container name, and connect the container under Container configuration. Choose Automatically with Google Auth, or choose Manually and paste in the config you copied in step 1.
- Choose Server location. Stape Europe has locations in Poland, France, the Netherlands and Italy (Stape's overview of server zones). Stape says that can't be changed on an existing container either.
- Choose a plan, and click Continue. On a paid plan, you fill in billing details and confirm with Subscribe now. The Free plan creates the container straight away.
- Wait for the status Running. Stape says it takes around 5 minutes.
- Choose. EU. You choose the location when you sign up, and you can't change it afterwards (Stape's account overview).
- Where it goes wrong. The account is created as Global. Then you have to create a new account and a new container and make new DNS records.
- How you can see it works. The container shows as Running (Stape's step 2).
Step 3: Set up your own subdomain
- Open the container at Stape, find Domains (Tagging Server URLs), and click +Add new.
- Enter the name in Subdomain name. Stape advises avoiding words from advertising and tracking and mentions ad, gtm, tracking, analytics, metrics, stape and gtag, among others. Google requires the subdomain to be different from the one the site itself runs on.
- Under How to connect, choose Automatically (via Entri) or Manually. With Manually, Stape shows the DNS records you need to create with your DNS provider, usually CNAME records.
- Create the records, go back to Stape, click Verify, and wait until the status changes from Verifying to Ready. It normally takes 2 to 3 hours, and up to 72 hours with some DNS providers.
- Open the server container in Google Tag Manager, go to Admin and Container Settings, change Tagging server URL to the subdomain, and click Save. Google itself calls the field Server container URL.
- Choose. A subdomain is the simple choice. The alternative is same origin, where the server sits on a path under the site's own domain. Google calls same origin best practice, and it requires a CDN or load balancer in front of the site (Google's guide to a custom domain).
- Where it goes wrong. The server stays on the default domain. It then runs in a third-party context and, according to Google, can only set JavaScript cookies.
- How you can see it works. The domain shows as Ready at Stape. Click Preview in the server container, and the debug panel should open (Stape's step 3).
Step 4: Send data from the web container to the server
- Open the web container, and create a variable of the type Google tag: Configuration settings.
- Add the parameter server_container_url, and set the value to the address from step 3.
- Open your Google tag, or create one with your Tag ID, and select the variable under Configuration settings.
- Give the tag the Initialization trigger for All pages, save, and publish the container.
- Choose. Google recommends sending data with the Google tag (Google's guide to sending data to the server). Stape also has its own Data Tag with a Data Client in the server container (Stape's step 4).
- Where it goes wrong. The server container has no direct access to data in the browser. If value, currency or order number are missing from the web container's event, they're missing on the server too.
- How you can see it works. Open preview in both containers. The Google tag should appear under Tags Fired in the web container, and the request should show up on the server (Stape's step 5).
From here it gets technical: three platforms, each with its own requirements for tags, IDs and consent. If you'd rather skip that part, we'll do it. Let Amplify set up Stape.
Step 5: Set up Google Analytics 4 on the server
- Open Clients in the server container, and check that the client Google Analytics: GA4 (Web) exists. Create it if it's missing.
- Create a tag of the type Google Analytics: GA4.
- Give the tag a trigger of the type Custom that fires when Client Name contains the name of your GA4 client.
- Where it goes wrong. Once the web container sends to the server, all traffic goes that way. Without the GA4 tag on the server, data to Google Analytics stops.
- How you can see it works. The GA4 requests appear in both previews, and the events show up in DebugView in GA4 under Admin and Data display (Stape's guide to GA4 on the server).
Step 6: Move the Google Ads conversions to the server
- Create a Conversion Linker tag in the server container. Google says the All pages trigger is the best choice in most cases.
- Create a tag of the type Google Ads Conversion Tracking, and enter the Conversion ID and Conversion Label from the conversion action in Google Ads.
- Give the tag a Custom Event trigger with the event name the web container's GA4 Event tag sends. If the web container doesn't have a Google Analytics: GA4 Event tag for the conversion, create that first.
- Choose. Each conversion should have one source. Once the server's tag works, Google says you can remove the corresponding tags in the web container to avoid duplicate data (Google's guide to Google Ads conversions on the server). Stape writes that Google Ads doesn't deduplicate, so you need to choose either web or server.
- Where it goes wrong. The tag in the web container stays in place, and the purchase can count twice. Or the Conversion Linker is missing, and then the conversion tag doesn't work.
- How you can see it works. The Tags tab in the server's preview shows whether the tag fired, and the Console tab shows errors. Enhanced conversions can follow along and, according to Google, work when consent has been given.
Step 7: Set up Meta Conversions API with deduplication
- Create an access token in Meta's Events Manager: choose the pixel, open the Settings tab, find the Conversions API section, and click Generate access token (Meta's getting started page).
- Find Stape's Facebook Conversions API template in the template gallery in the server container, and click Add to workspace.
- Create the tag, choose Event Name Setup Method, and enter the Facebook Pixel ID and Meta Access Token. Stape prefers Override, which gives full control over the event's content and is more complex. This is also where you choose Event Type. Inherit from client tries to translate the event into Meta's standard events itself and sends the rest as custom events. Choose Action Source as well.
- Give the pixel's tag and the server's tag the same event_id. Add Stape's Unique Event ID variable in the web container. Insert it as eventID in the pixel's call and as the event_id parameter in the event the web container sends to the server, and let the two fire on the same trigger.
- Give the tag a trigger, and save (Stape's guide to Meta Conversions API).
- Choose. Keep the Meta pixel, and run both. Meta recommends the Conversions API together with the pixel and then requires deduplication. Meta recommends the same name and the same event_id and only removes duplicates that arrive within 48 hours of the first (Meta's guide to deduplication).
- Where it goes wrong. The pixel and the server fire on separate triggers and each get their own event_id. Then the purchase can count twice. Or the test code is left in place. Meta writes that it must be removed before the changes are published.
- How you can see it works. Enter the test code from Test Events in the Test ID field. The events should show Server in the Received From column, and Test Events shows whether they're deduplicated (Meta's guide to the Conversions API in server-side GTM).
Step 8: Carry consent all the way through
Consent must follow the event from the banner to the last tag on the server. You turn on Consent Mode through the banner, for example Cookiebot, and the rest is in our article on Consent Mode.
- Check that Consent Mode works in the web container. Google writes that it only needs to be set up there: the Google tag sends the consent along in the request, and Google's own tags on the server follow it (Google's page on server-side tagging and Consent Mode).
- Make sure the web container sends the consent along to the server. If you send with the Google tag as in step 4, the consent follows in the request. If you use Stape's Data Tag, turn on Add consent state.
- Tie all other tags on the server to consent. In Stape's tag for the Conversions API, open Consent Settings and turn on Send data if marketing consent is given. Stape writes that the setting should only be turned on when the web container sends the consent along.
- Where it goes wrong. The banner works in the browser, and tags on the server send anyway. According to Stape, the server container doesn't have the same Consent Mode as the web container, and checking consent is just as mandatory on the server (Stape's guide to consent in the server container).
- How you can see it works. Say no in the banner, or withdraw an earlier yes, and open the event in the server's preview. There must be no request to Meta under Outgoing HTTP Requests. Say yes, and watch it appear. If you run basic Consent Mode, no event reaches the server after a no. That's a pass too. Use the same browser as the preview: Stape says requests from an incognito window usually don't show.
I believe a server without a consent check is worse than no server. It sends data nobody can see in the browser.
Step 9: Test on real data before you trust the numbers
The preview shows that a tag fires. It doesn't show that the platform counts correctly. Publish both containers, and check real data in the right tools. Meta itself asks for this check after the changes are published.
- The server's preview. This shows the incoming requests, which tags fired, and what the platform replied (Google's guide to preview and debugging).
- Google Analytics. You see real visits in the Realtime report. DebugView only shows your own test while preview is turned on.
- Google Ads. Open Summary under Goals, and look at the Status column. Active means everything works. Awaiting conversions means there have been no conversions in the last 7 days (Google's page on conversion status).
- Meta's Events Manager. The events should be visible within 20 minutes. Click Event Details next to the event on the Overview page. The Event Deduplication tab shows the share of deduplicated events, and Event Match Quality runs from 1 to 10 (Meta's page on verifying the setup).
- Your own orders. Check the platform's numbers against the orders you've actually received. This step is our own.
Step 10: Keep an eye on operation
In our experience, you won't see on the site that the server has stopped sending. You'll see it as fewer purchases in the ad account.
- Open the Logs tab at Stape. It shows what the container receives and sends, and it requires a paid plan.
- Open the Monitoring tab, turn on outgoing logs with Activate, open Alerts, and click Create alert. Set an alert, for example, for when the number of purchase events to Meta drops below a threshold. Monitoring requires the Business plan or higher and sends an e-mail when the alert goes off (Stape's guide to alerts).
- Repeat the check from step 9 every time someone changes the banner, the site or a container.
Which mistakes cost the most in a Stape setup?
Five mistakes cost the most:
- Double counting. The same conversion comes from both browser and server.
- Consent that doesn't follow. Tags on the server send after a no.
- Wrong domain. The server sits on the default domain.
- Missing deduplication at Meta. The pixel and the server don't share an event_id.
- Testing that stops at the preview. Nobody looks at real data afterwards.
When should Amplify set up Stape for you?
Let Amplify set up Stape when you'd rather spend your time on the business than on DNS records, tags and consent. The guide has ten steps, and each of them can go wrong in its own way. It takes time to get it right the first time, and Amplify does it every day. Contact Amplify, and we'll take it from there.
Amplify is a partner of Stape and Cookiebot. Stape's partner page lists Amplify as a partner since 1 October 2025, and our own standard for measurement is built on the two.
Here's what you get: The server runs on your own domain. Consent follows the event all the way and is tested with both a yes and a no. Each conversion has one source. The numbers are checked against real orders. And all of it is documented.
Our own AI agent has been through the ad accounts before you get in, and a specialist approves every change. The agent is only as good as the numbers it gets, and that's why we start with measurement.
The price depends on your platform, the number of ad channels and how much is already set up. You get it in black and white before we start.
Stape won't show you every purchase either. A no costs data, and that's the point.
Frequently asked questions about Stape
Does Stape get around cookie consent?
No. Stape itself writes in its help article on consent banners and server-side tracking that server-side tracking doesn't remove the need for consent. If the visitor says no, according to Stape you can neither collect nor send the data that requires consent. Ask a lawyer if in doubt.
Should we use Custom Loader and Cookie Keeper?
Yes, once the basic setup works. Custom Loader is Stape's answer to ad blocking: the add-on sends GTM and GA4 scripts via a path that makes cookies first-party cookies, and according to Stape it reduces the effect of ad blockers on them (Stape's page on Custom Loader). It's also available on the free plan. According to Stape, Cookie Keeper extends the lifetime of first-party cookies in browsers with ITP. Neither of them changes consent: tags that require a yes still wait for it. Set them up and test them separately.
Does the guide also apply to Shopify?
Only partly. The guide applies to a site with Google Tag Manager. Shopify's checkout has its own rules and needs its own setup, for example to carry consent from the shop to checkout. That's one of the tasks we handle.
Your next step
Open Google Tag Manager today, and see whether the account already has a container of the type Server. If it doesn't, start at step 1. If it does, open Admin and Container Settings, and see what's in Tagging server URL. If it shows your own domain, and the container is hosted at Stape, the first three steps are done.
