Analytics

Ecommerce segments in GA4

How to build user, session and event segments in GA4 explorations, with ten segments a webshop can use and the limits to keep in mind.

·7 min read·By the ROASaurus team

Key takeaways
  • A GA4 segment is a subset of users, sessions or events that you apply to an exploration; segments only exist in Explore.
  • The scope decides what you see: a user segment keeps all activity of matching users, a session segment only the matching sessions, an event segment only the matching events.
  • Segments are retroactive and apply to the whole date range; audiences are not, and only collect users from the day you create them.
  • GA4 allows 10 segments per exploration, 4 applied to one technique at a time and 50 saved segments per standard property.
  • New versus returning in GA4 is based on the browser, not the customer; send a customer_type parameter with each purchase to segment on real purchase history.

A segment in GA4 is a filter that keeps a subset of your users, sessions or events, so you can compare groups such as new and returning buyers, mobile and desktop shoppers, or customers of one product line. You build segments in Explore: open an exploration, click + next to Segments, choose the scope, set the conditions and apply. Segments do not exist in the standard reports, which use comparisons instead.

This guide explains the three segment types, the steps to build one, ten segments that answer common webshop questions, and the limits that trip people up.

What segments are in GA4

Google describes a segment as a subset of your Analytics data for use in explorations. Its scope decides how much of a matching user's activity stays in the result.

TypeWhat it keepsUseful for a webshop when
User segmentAll activity of users who match, across their sessions in the date rangeYou study customers: loyalty, repeat buying, long decision times
Session segmentOnly the sessions that matchYou study visits: campaigns, landing pages, cart behaviour
Event segmentOnly the events that matchYou study single actions: product views, adds to cart, purchases of one category
The three scopes. Conditions combined with AND and OR, or a sequence of steps, make any of them more specific.

Google gives an example that makes the difference clear. A shopper browses on day one without buying and buys on day two. With a date range covering both days, a user segment for purchasers returns both days of activity, a session segment returns only the second day's session, and an event segment returns only the purchase event.

How to create a segment in GA4

  1. Open an exploration

    Click Explore in the left menu and open an exploration, or start a new free-form exploration.

  2. Add a segment

    In the Variables column, click + next to Segments. Choose a custom segment, a suggested segment you can adapt, or right-click a value in the table and choose Create segment from selection.

  3. Pick the scope

    Choose user, session or event segment. Give it a name you will recognise later, such as "Users – bought twice".

  4. Set the conditions

    Click Add new condition and choose a dimension, a metric or an event, an operator and a value. Combine conditions with AND or OR. For user segments, you can also add a sequence: step A, then step B.

  5. Apply or save to the property

    Click Apply to use it in this exploration only. Click Save to property to make it available to everyone in the property; that needs the Editor role or higher.

  6. Compare

    Drag the segment to the Segment comparisons area in Tab Settings. Add a second segment to see the groups side by side.

Segment types for an online store

The scope you choose follows the question. Start with one condition, check that the segment holds the users you expect, and only then add more.

Questions about people
  • Who buys again, and what did they buy first?
  • How many visits does a buyer need?
  • Which devices and countries do customers use?
  • Who browsed a category but never bought?
Questions about visits and actions
  • Which campaign brings sessions that add to cart?
  • Which landing page starts sessions that buy?
  • Which products are viewed but rarely added?
  • What do people search for before they leave?
User segments answer the left column; session and event segments answer the right.

Ten ecommerce segments worth building

SegmentScopeConditions
PurchasersUserEvent purchase, event count ≥ 1
Repeat purchasersUserEvent purchase, event count ≥ 2 in the date range
High-value ordersEventEvent purchase with parameter value > 150
Cart abandonersUserIncludes add_to_cart, excludes purchase
Checkout abandonersSessionIncludes begin_checkout, excludes purchase
Paid social visitsSessionSession default channel group exactly matches Paid Social
Mobile buyersUserDevice category = mobile AND event purchase
International shoppersUserCountry is not your home country
Site searchersSessionIncludes view_search_results
Category browsersEventEvent view_item with item category = the category you study
Example definitions. Adjust thresholds such as the order value to your own store.

Geography and time

Segments by country or region show where each product line sells and how buyers abroad behave: their order values, the share that reaches checkout and the devices they use. For timing, add the Hour or Day of week dimension to an exploration with a purchasers segment applied, rather than building one segment per hour. That shows when buyers are active, which is useful for email send times and promotion starts.

New and returning customers

GA4's New / returning dimension describes the browser, not the customer. A loyal customer on a new phone, or one who cleared cookies or declined consent, shows up as new. For a segment on real purchase history, send a customer_type parameter with each purchase, with the value new or returning. Google's purchase event example includes this parameter. Register it as a custom dimension and segment on it.

Segment (customer_type)PurchasersPurchasesPurchase revenueRevenue per purchase
new820840$56,280$67.00
returning410560$44,800$80.00
Example store, one month, two event segments on the purchase event. Returning customers buy more often and spend more per order.

Lifecycle segments: VIP, at risk and dormant

GA4 can approximate these with user segments: VIPs as users with several purchases or high-value purchases in a long date range, at-risk customers as purchasers in the previous period without a visit in the last one. These segments stay rough, because GA4 only sees customers who were recognised in the browser, and its event data reaches back no further than the data retention setting. A customer list built from your store's orders is more reliable for anything tied to lifetime value.

Segments compared with audiences and comparisons

  • Segments live in Explore, apply retroactively to the whole date range and include everyone who matched in that range.
  • Audiences live in Admin, collect users from the day you create them, can drop users who stop matching, and can be shared with Google Ads.
  • Comparisons are the equivalent in standard reports: filters on dimensions such as channel or device, applied side by side.

Google warns that a segment and an audience with the same conditions can show different user counts, for exactly these reasons.

Limits and common mistakes

  • Up to 10 segments per exploration, 4 applied to one technique at a time, and 50 saved segments per standard property (200 in Analytics 360).
  • Traffic source and attribution dimensions from different contexts cannot be mixed in one segment; GA4 filters out the incompatible ones.
  • A segment cannot hold more data than the exploration's date range, even if its condition has a longer time window.
  • Explorations can be sampled on large properties and thresholded on small ones; see GA4 sampling, thresholding and freshness.
  • Rows labelled Unassigned or (not set) in a segment usually point at tracking gaps; see Unassigned traffic in GA4.

For which reports to segment first, see the guide to GA4 ecommerce reports. To segment Google Ads buyers by product margin, see product profit in Google Ads. Consent choices decide which visitors GA4 can follow across sessions, which shapes every user segment; see Consent Mode v2 and GDPR. Before a sale period, the BFCM tracking checklist makes sure purchases and their parameters arrive, and the Klaviyo and Shopify tracking guide covers the email side.

Segments with ROASaurus data

ROASaurus can make GA4 segments more useful by sending what only your store knows. Under Connections › Tracking & destinations, add GA4 as a server-side destination. Each paid order then goes to GA4 through the Measurement Protocol, deduplicated by transaction id, and three options add parameters to the purchase for consented shoppers:

Option on the GA4 destinationParameter on the purchaseSegment it makes possible
Send customer_type (new or returning)customer_typeNew and returning customers by order history, not by browser
Profit as a gross_profit parametergross_profit (the order's contribution margin)Purchases by margin band, once registered as a custom metric
Send the predicted 12-month LTV with a new customer's first orderpredicted_ltvFirst purchases from customers likely to come back
Register gross_profit and predicted_ltv as custom metrics and customer_type as a custom dimension in GA4 before you build segments on them.

For segments of real customers, ROASaurus has its own. Under Customers › Segments & audiences you find RFM segments and customer lists such as all customers, the top 10% by predicted lifetime value and recent purchasers, built from your store's orders rather than browser sessions. Audiences can sync to nine ad platforms and Klaviyo.

The ROASaurus Mac app showing Audiences: customer lists with their purpose, members and sync status per destination. Fictional demo store, simulated data.
The ROASaurus iPhone app showing Audiences: customer lists with their purpose, members and sync status per destination. Fictional demo store, simulated data.
Customer audiences in the ROASaurus Demo Store (fictional, simulated data): each list with its purpose, size and sync status per destination. In ROASaurus: Customers › Segments & audiences › Audiences. Public demo with a fictional store and simulated data.

To check segments against GA4 itself, connect Google under Website › Search. The GA4 explorer tab runs your own GA4 query with up to three filters, which you can set to include or exclude values, and exports the result as CSV.

Sources

  1. Google Analytics Help: Segment builder
  2. Google Analytics Help: Get started with Explorations
  3. Google Analytics for developers: Measure ecommerce (purchase event with customer_type)

In ROASaurus

Keep reading

MarketingBFCM tracking checklist: can you trust your ad results?A Black Friday tracking checklist: test a real purchase, find duplicate conversions, choose which orders count, check consent and judge ads on profit.AnalyticsGA4 data sampling, thresholding and freshness explainedWhy GA4 numbers can be estimates, hidden or late: how sampling, data thresholds, data freshness and retention work, how to spot them and what to do.MarketingHow the Klaviyo Shopify integration tracks eventsHow Klaviyo collects Shopify data: order events, Checkout Started, onsite events, how it identifies visitors, where coverage ends and how to set it up.

FAQ

Questions, answered

More answers in the FAQ and the help center.

Where are segments in GA4?

Only in Explore. Open an exploration and click + next to Segments in the Variables column. Standard reports use comparisons instead.

What is the difference between user, session and event segments?

A user segment keeps all activity of matching users in the date range, a session segment keeps only the sessions that match, and an event segment keeps only the matching events.

How many segments can I use in GA4?

Up to 10 per exploration and 4 applied to one technique at a time. A standard property can hold 50 saved segments, an Analytics 360 property 200.

Can I share a GA4 segment with my team?

Yes. Click Save to property instead of Apply. That needs the Editor role or higher, and the segment then appears for everyone in the property.

Why do my segment and audience show different numbers?

Segments are retroactive and include everyone who matched in the date range. Audiences only collect users from the day they were created and can drop users who stop matching.

How do I segment new and returning customers accurately in GA4?

GA4's New / returning dimension is based on the browser. Send customer_type new or returning with each purchase, based on the customer's order history, register it as a custom dimension and segment on it.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.