Skip to content
Menu
Skip to Content
CookieROAS

GA4 purchases from the server

Send orders your GA4 tag missed to Google Analytics 4 through the Measurement Protocol.

CookieROAS sends orders from every order connection as a purchase to your GA4 web stream, with the order number as the transaction id, the value, currency, tax, shipping and products. With consent for analytics, the purchase gets the visitor's GA4 client and session, so GA4 links it to the visit. Refunds and cancellations go as a GA4 refund. A refusal never goes along; unknown consent only if you allow that at Consent delivery in All settings.

What you need

Steps

Open the GA4 page

Open your site in the dashboard and go to Setup. Under Connections, on the GA4 card, click Review GA4.

The Connections page with the ad platforms

Fill in the details

Open Connect GA4 and fill in:

FieldWhere to find it
Measurement idGA4 › Admin › Data streams › your web stream: G-XXXXXXXXXX. Use the stream your GA4 tag sends to.
Measurement Protocol API secretThe same web stream › Measurement Protocol API secrets › Create.

Click Connect (stays paused).

Connect GA4, with measurement id and API secret

Choose which orders

At Which orders, choose:

  • Only orders your GA4 tag missed (recommended): after 30 minutes, CookieROAS skips orders your GA4 tag already sent from the browser. That way nothing counts twice.
  • Every order: only if you removed the purchase from your browser tag. GA4 doesn't reliably deduplicate a transaction that comes from both sides.

Switch on sending

Click Switch on. Only orders from that moment on go to GA4.

Check that it works

GA4 doesn't confirm what it receives. So after a new order, look in GA4 at Realtime or DebugView. On the GA4 page in CookieROAS, Last sent to GA4 shows when the last order was sent.

If it doesn't work

Read more