Analytics integration

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
ConnectionYour server-side GTM container URL plus the path its Measurement Protocol client claims
EventsThe same events ROASaurus sends to GA4
ConsentOnly events with confirmed marketing consent are forwarded
PreviewOptional X-Gtm-Server-Preview header for the container's preview mode
Browser data layerNot 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

  1. Add a Measurement Protocol client

    In your server container, add the client that claims the Measurement Protocol path.

  2. Add the destination

    Paste the container URL and path on the server-side GTM card.

  3. Preview

    Optionally paste the preview header to watch requests arrive.

  4. Publish

    Publish the container and check the first events.

The ROASaurus Mac app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Tracking health: a card per destination, Purchase accuracy per day for Meta, GA4 and TikTok, and accuracy per payment method. Fictional demo store, simulated data.
Tracking health: for every destination, how many paid orders were expected and how many it accepted. Demo store, fictional data.

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.

Start freeOpen the live demo

Questions about Google Tag Manager

FAQ

Questions, answered

More answers in the FAQ and the help center.

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.