Free template

Google Tag Manager container template

An importable Google Tag Manager web container that sends the ecommerce events ROASaurus pushes to the data layer on to Google Analytics 4.

Free, no form, no email address. Example numbers in the files are fictional.

What is inside

  • A Google tag for your GA4 property
  • One GA4 event tag for eleven ecommerce events, with the items from the data layer
  • The event ID ROASaurus also sends server-side, as an event parameter
  • Tag Manager's own export format, ready to import

The sheets

VariablesThe event ID from the data layer, and a constant for your GA4 measurement ID (G-XXXXXXXXXX until you fill it in).
TriggerOne custom event trigger for the data layer events: page_view, view_item, view_item_list, add_to_cart, remove_from_cart, view_cart, begin_checkout, purchase, search, add_to_wishlist and generate_lead.
TagsA Google tag for GA4 with its own page view off, and one GA4 event tag that sends each event under its own name with the ecommerce data and the event ID.

How to use it

  1. Turn on the data layer in ROASaurus

    In the store's tracking settings, switch on "Push storefront events to the data layer for Google Tag Manager".

  2. Import the container

    In Tag Manager, Admin › Import container: choose the file, a new or existing workspace, and Merge with "Rename conflicting tags, triggers and variables".

  3. Fill in your measurement ID and publish

    Open the variable "Const - GA4 measurement ID", enter your G- ID, preview and publish.

For stores that keep their tags in Tag Manager

ROASaurus can push every storefront event to window.dataLayer in GA4's ecommerce format, with the same event ID it uses for the server-side copy. This container picks those events up in Google Tag Manager and sends them to Google Analytics 4, so GA4 gets the full set of ecommerce events without you building the tags.

What it does not include

The container covers GA4. Tags for Meta, TikTok, Pinterest, Snapchat, Microsoft and other platforms are not in it: ROASaurus sends purchases to those platforms server-side and can load their browser pixels itself after consent, so you do not need them in Tag Manager.

A copy with your ID filled in

Signed in, you can download the same container with your store's GA4 measurement ID already set, from the store's tracking settings. Check consent before you publish: tags in Tag Manager must respect your consent banner, for example with Consent Mode.

The ROASaurus Mac app showing Profit per campaign: ad spend, profit after ads, POAS and the number of losing campaigns, then a card per channel and per campaign. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Profit per campaign: ad spend, profit after ads, POAS and the number of losing campaigns, then a card per channel and per campaign. Fictional demo store, simulated data.
Profit per campaign in the ROASaurus Mac and iPhone apps. Fictional store, simulated data.
Do this automatically in ROASaurus

Or skip the tag work

ROASaurus sends every purchase server-side to 16 ad platforms and GA4, and loads the browser pixels after consent, without a tag manager.

FAQ

Questions, answered

More answers in the FAQ and the help center.

What is in the GTM container?

Two variables, one trigger for eleven data layer events and two tags: a Google tag for GA4 and a GA4 event tag that sends each event with its ecommerce data and event ID.

Do I need Google Tag Manager with ROASaurus?

No. ROASaurus sends purchases server-side and can load the browser pixels itself. The container is for teams that run GA4 through Tag Manager.

Why does it need the data layer option?

The container reads the events ROASaurus pushes to the data layer. That option is off by default; turn it on in the store's tracking settings.

How do I get the file?

Click the download button. There is no form and no email address to enter; the file is yours to change and share.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.