Home › Integrations › Google Analytics 4

Google Analytics 4 for Shopify.

To set up Google Analytics 4 on Shopify, install the Tagbreeze tag, then connect GA4: 3 steps, a few minutes, two snippets to paste.

01

Set it up

  1. Add your store in Tagbreeze and paste the theme line given by the Install screen in your theme.
  2. In Shopify, open Settings, Customer events, and add the custom pixel given by the Install screen.
  3. Open Destinations, sign in with Google and pick the GA4 property. No property yet? Tagbreeze can create one in your account.

Check it works. Open the Realtime report in GA4 and place a test order.

02

What reaches GA4

purchase, begin_checkout, add_to_cart, view_item and generate_lead arrive from the browser with the names and parameters GA4 expects, including order number, value and currency.

The custom pixel is what captures checkout and purchase, because a theme cannot run code on Shopify’s checkout.

03

Event by event

On Shopify, Tagbreeze reads 7 moments of a visit. All of them reach GA4, under the names it expects.

On your siteRead byIn GA4
A product page is openedThe theme line, on the product pageview_item
A product is added to the cartThe theme line, on the add-to-cart formadd_to_cart
Checkout startsThe custom pixel, on Shopify’s checkoutbegin_checkout
Payment details are enteredThe custom pixel, on Shopify’s checkoutadd_payment_info
An order is placedThe custom pixel, when checkout completespurchase
A form is sentThe theme line, when the form is sentgenerate_lead
A phone, e-mail or WhatsApp link is clickedThe theme line, on the clickcontact

04

What to know

GA4 receives its events from the browser. Before consent, no advertising identifier is used.

More: Google Analytics 4 · Shopify · Server-side tracking · Pricing

Questions

Before you ask.

Why two pieces on Shopify?

A theme cannot run code on Shopify’s checkout. The theme line covers the storefront; the custom pixel, added under Settings, Customer events, covers checkout, payment and the order.

Do I need Shopify Plus?

No. Custom pixels under Customer events are available on every Shopify plan.

Do I need a developer?

No. Each step is done from an admin screen, without code.

Is GA4 fed from the server too?

No. GA4 receives its events from the browser. Server-side delivery exists for Meta and TikTok.

I already have GA4 on the site. Will it clash?

When the same GA4 ID is already on the page, Tagbreeze leaves the browser side to it, so nothing is counted twice.

Know what your ads really bring in.

It takes a few minutes. Nothing is changed on your site until you install the tag.

Add your site
Hands on a laptop beside parcels ready to ship