Google Tag Manager and server-side GTM
If you run a server-side Google Tag Manager container, ROASaurus can forward its events to it as GA4 Measurement Protocol requests, so your own server tags receive the same purchases ROASaurus sends.
| Google Tag Manager at a glance | |
|---|---|
| Connection | Your server-side GTM container URL plus the path its Measurement Protocol client claims |
| Events | The same events ROASaurus sends to GA4 |
| Consent | Only events with confirmed marketing consent are forwarded |
| Preview | Optional X-Gtm-Server-Preview header for the container's preview mode |
| Browser data layer | Not pushed: ROASaurus does not write a data layer for browser tags |
How forwarding works
ROASaurus posts the GA4 Measurement Protocol body to your container, where a Measurement Protocol client turns it into event data for any server tag. Only events with confirmed marketing consent are forwarded, because the container's tags can send them anywhere. Add the preview header value to see requests in the container's preview mode.
Do you need GTM at all?
No. ROASaurus sends to 16 ad platforms, GA4 and Klaviyo itself, without a container. Forwarding is for teams who already run server-side GTM for other tags and want the same events there.
Limits
- ROASaurus does not push a data layer for browser tags in web GTM.
- Your container's hosting is yours to run and pay for.
Related
What ROASaurus does with Google Tag Manager
- Forwards consented events to your server-side GTM container as GA4 Measurement Protocol requests.
- Supports the container's preview mode with the preview header.
Status today: Built from server-side Google Tag Manager's official API documentation and tested against simulated responses. It has not carried a customer's traffic yet, so check the first deliveries in the Event log.
How it works
Add a Measurement Protocol client
In your server container, add the client that claims the Measurement Protocol path.
Add the destination
Paste the container URL and path on the server-side GTM card.
Preview
Optionally paste the preview header to watch requests arrive.
Publish
Publish the container and check the first events.

Set it up
The step-by-step guide, with the screens, the settings and what to check afterwards, is in the help centre: set up Google Tag Manager.
Questions about Google Tag Manager
Can I keep using GTM for other tags?
Yes. ROASaurus does not touch your web or server containers; forwarding only adds requests to your server container.
Why only consented events?
Your container's tags can send data to any vendor, so ROASaurus forwards only events of visitors who allowed marketing.
Every sale, traced to the ad that earned it
Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.