Skip to content

Set up Google Analytics 4

This guide shows how to connect Google Analytics 4 (GA4) to your store using the app.

Step 1: Open the app and go to Pixels from the side menu, then click Add Pixel.

The Pixels page in the app with the Add Pixel button in the top right

Step 2: Select Google Analytics 4.

The Select Pixel Type dialog with the Google Analytics 4 option

Step 3: Under Measurement Settings, enter your Measurement ID and API Secret.

The New Google Analytics 4 screen with Measurement ID and API Secret fields

Step 4: Go to the Events tab and turn on the events you want to track:

  • Search
  • Collection View
  • Product Page View
  • Add to Cart
  • Initiate Checkout
  • Purchase

Step 5: Click Save.

Step 1: Log in to your Google Analytics account.

Step 2: Go to Admin — the gear icon at the bottom left.

The Google Analytics home page with the Admin gear icon at the bottom of the left sidebar

Step 3: Under Data collection and modification, click Data streams.

The Google Analytics Admin page with Data streams highlighted under Data collection and modification

Step 4: Select your web data stream.

The Data streams list with a web stream ready to select

Step 5: Copy the Measurement ID shown at the top. It starts with G-.

The Web stream details panel with the Measurement ID highlighted in the top right

Step 6: Scroll down and click Measurement Protocol API secrets.

The Web stream details panel with the Measurement Protocol API secrets row highlighted

Step 7: Click Create to generate a new secret, then copy it.

The Measurement Protocol API secrets panel with the Create button
  • Measurement ID and API Secret are both required to save the pixel.
  • The Purchase event needs at least one purchase type turned on, or saving will show an error.
  • You can turn the pixel on or off anytime from the Pixels list without losing your settings.