How to Set Up GA4 for an Online Store: First Steps

November 13, 2026

Setting up GA4 for an online store means creating a Google Analytics 4 property, placing the base measurement snippet on every storefront page, and checking that a test visit appears before you start reading reports. Until those three steps are done, the reports have nothing reliable to show.

This article is about that setup, not about which reports to read once data is flowing. For the reports themselves, use Google Analytics for Online Stores: What to Look at First. The steps below stay general, because the screens inside Google Analytics change; follow the current documentation in your Analytics account for the exact clicks.

What a complete first setup includes

A complete first GA4 setup for a store has three parts that depend on each other:

  1. A GA4 property that will receive the store's data, with a measurement ID.
  2. The official base snippet on the storefront, tied to that ID, so a visit can be recorded.
  3. A check that a real visit from you appears in the property.

The base snippet is the starting point. It records that a page was viewed, which is enough to see traffic sources and landing pages later. It is not the same thing as a full purchase-tracking setup. Do not treat a property that only has the base snippet as a complete picture of sales.

RedCart does not send purchase or checkout tracking beyond the official base snippet. In RedCart you enter the measurement ID, and the storefront injects that official snippet. Anything you later want to measure about orders has to be arranged separately, if your tools support it, and should not be assumed.

Create the property and copy the measurement ID

A GA4 property is the container inside Google Analytics that holds one store's data. Create it in your Analytics account and give it a name you will recognise, such as the store's name. If you already use Analytics for another site, add a new property for the store rather than mixing the two, so the numbers stay easy to read.

When the property is created, Analytics gives you a measurement ID. The ID used for GA4 starts with G-, followed by a string of letters and numbers. Copy that ID exactly. You will put it in your store's settings, not a full block of HTML.

Set the property's time zone to match the time zone you use to run the store, so "today" in a report matches your working day. If your Analytics account offers a currency setting for the property, pick the currency you use to think about sales, remembering that this is a reporting setting, not a proof of revenue.

The exact labels on the setup screens belong to Google's current documentation. Use that documentation for the clicks, then come back to the store with the measurement ID in hand.

Add the base snippet to the storefront

The base snippet has to run on the storefront pages buyers actually visit: the home page, category pages, product pages, content pages and checkout. A snippet that lives on only one test page will not describe the store.

Stores add the snippet in one of two ways:

  • A field in the store software that accepts the measurement ID and places the official snippet for you.
  • A manual placement in a theme or tag tool, which you should use only if you understand how to add the official snippet and how to avoid adding it twice.

Adding the snippet twice, once in the software and once in the theme, will double-count visits. After you choose one method, do not also paste the same snippet somewhere else.

How to add the GA4 ID in RedCart

RedCart accepts a Google Analytics 4 ID in the cabinet. According to the announcement on analytics pixels set up with just an ID, you enter the ID that starts with G-, the cabinet checks that the value looks like an ID of that service, and the storefront injects the official snippet for that ID.

Pasted HTML or scripts are rejected, by design. That limit is useful: the storefront only ever adds the known official snippet, not arbitrary code, even when several people can edit the cabinet.

Enter only the ID, publish the setting, then do the test in the next section. Do not assume the presence of the field means purchase tracking is already in place. The announcement describes the official base snippet, and nothing else.

RedCart takes no commission on sales; payment provider fees are separate and not included.

Check that a test visit appears

A setup is unfinished until you can see your own visit. Open the storefront in a browser, visit a few pages, and look in your Analytics property for a fresh visit. If your Analytics account has a realtime or debug view, use it; if the screens have changed, use whatever current check the documentation describes for confirming that data arrives.

If the visit does not appear, work through these checks before you change reports or ads:

  • The ID in the store matches the ID in the property, including the G- prefix.
  • You are looking at the same property you created for this store.
  • The storefront page you visited is a published page, not a private draft.
  • You waited long enough for the interface to show a new visit.
  • A content blocker in your own browser is not stopping the snippet; try a second browser if needed.

When the test visit appears, write down the date you finished setup and what the snippet is known to record. That note stops later confusion between "we have GA4" and "we can already see every order".

Privacy, consent and what not to invent

Analytics on a store can be personal data. Before you switch the snippet on for the public, check whether the rules that apply to your store and your buyers require a notice, a consent choice, or both. This is general information, not legal advice; a qualified adviser can tell you what applies to you. What Legal Pages Does an Online Store Need? Privacy, Terms, Returns explains where a privacy page fits among the other store pages.

Do not invent extra tracking in your own head. If you have only the base snippet, you can read traffic and page views once they arrive. You cannot, from that alone, claim a reliable purchase or checkout count. A later channel comparison only helps if the conversion you use is one you actually record.

Cabinet-level counts of products, orders and revenue are a separate picture. Analytics for a Small Online Store with RedCart and E-commerce KPIs for a Small Store: Which Numbers to Check Every Week cover those store-side numbers, which should be reconciled with Analytics rather than assumed to match.

After setup: stop and read the data you have

Once the test visit is visible, the setup work is done for a first launch. The next job is to read a small set of reports on a fixed rhythm, and to keep a written note of what the property can and cannot measure.

Request early access to RedCart.