GA4 Ecommerce Tracking, Campaign Attribution & Cookie Consent

This page explains the automatic ecommerce and traffic tracking your marketplace sends to Google Analytics 4 (GA4), including how ad campaign tracking (UTM links) and cookie consent work.

What you need set up

To receive this data, you need a Google Analytics 4 Measurement ID (looks like G-XXXXXXXXXX) added to your marketplace in Management. This is what connects your site's activity to your own GA4 property, where you can build reports and dashboards. If you don't have a GA4 property yet, or need help finding your Measurement ID, see Google's own guide: Find your Measurement ID.

➡️

How to locate Google Analytics 4 ID: Redbox → Marketplaces → Select a Marketplace → Details → Analytics → Google Analytics 4 ID

If you also run a branded mobile app and want app-based reporting, this will be supported in app version 7.0.x once available.

What's tracked

The table below shows what data is sent with each event. Unlike Meta, GA4 includes the item name alongside the item ID on every ecommerce event, not just on view/add-to-cart events.

Event

When it fires

Data included

page_view

Every page a customer visits

Page URL and title. No item or value data.

view_item_list

A customer views your outlet list or an outlet's menu

Name and ID for each outlet or menu item shown in the list.

view_item

A customer views a specific menu item

Item name and ID, price, and currency.

add_to_cart

An item is added to the basket

Item name and ID, price, quantity, currency, and line value.

begin_checkout

A customer starts checkout

Name, ID, price, and quantity for every item in the basket, plus total basket value and currency.

add_payment_info

A customer sets a payment method

Same item-level detail as begin_checkout: name, ID, price, quantity per item, plus total value and currency.

purchase

An order completes, including item-level revenue for each product in the order

Name, ID, price, and quantity for every item in the order, plus total order value, currency, and the order/transaction ID.

Campaign tracking (UTM links)

If you link to your site with UTM parameters (e.g. ?utm_source=facebook&utm_campaign=summer_promo), GA4 automatically reads these on the customer's first visit and credits every event in that visit, including the eventual purchase, to that campaign. You don't need to do anything extra to make this work; it applies for the whole visit automatically, even if the customer takes a while to come back and complete their order (as long as they don't have a 30+ minute gap in activity, which starts a new visit).

Your cookie banner controls how much of this tracking runs for each customer, using Google's Consent Mode. See Google's overview if you'd like the full technical detail: About consent mode.

Customer action

What happens

Accepts cookies

Full tracking, as described above

Declines cookies

No cookies are set and no individual customer is tracked, but Google still receives anonymised, aggregated signal (no personal data) to help model overall campaign performance

Returns later

Their previous choice is remembered, the banner won't reappear, and the matching tracking level applies immediately

How to see these events yourself

  • GA4 → Reports → Realtime: shows activity from the last 30 minutes.

  • GA4 → Explore: for checking that purchases are correctly attributed to a campaign (e.g. by building a report with "Session campaign" against purchase count). Note this can take 24–48 hours to process same-day activity, use Realtime for anything you've just tested.