Creating Custom Segments in Google Analytics for Deeper Shopify Insights

Why Your Shopify Data Is Lying to You (And How Segments Fix That)

You open Google Analytics, see a respectable traffic number, and feel a small surge of hope. Then you look at your conversion rate — and the hope deflates just as fast. The problem isn’t your store. The problem is that you’re looking at everyone as if they were the same person. They’re not.

A first-time visitor who landed on your site from a TikTok ad behaves nothing like a returning customer who typed your URL directly. A mobile shopper browsing on their lunch break has a completely different intent than someone sitting at a desktop, credit card already in hand. When you blend all of these people together into one giant average, your analytics tell you very little that’s actually useful.

That’s where custom segments come in. In Google Analytics 4 (GA4), segments let you slice your audience into meaningful groups so you can study each one on its own terms. Instead of asking “how did my store perform?”, you start asking sharper questions: “How did returning customers from email campaigns perform compared to first-time visitors from paid ads?” or “Which device type has the worst checkout drop-off rate?”

For Shopify store owners, this shift from aggregate data to segmented insights is the difference between guessing and knowing. In this guide, you’ll learn what GA4 segments are, how the three core segment types work, and — most importantly — how to build the specific segments that actually drive smarter decisions for your store. By the end, you’ll have a clear playbook for turning your GA4 data into a genuine competitive advantage.

Understanding GA4 Segments: The Basics Every Shopify Merchant Needs

What Exactly Is a Segment?

Think of your total website traffic as a massive jar of mixed candy. Raw analytics gives you the jar. A segment gives you a small bowl where you’ve sorted out only the gummy bears. Now you can study those gummy bears properly — how many there are, which colors are most popular, which ones nobody picks.

GA4 defines segments as subsets of your data that let you isolate and analyze specific groups of users, sessions, or events. They filter out everything else so you’re working with a clean, focused picture. Crucially, segments in GA4 only work inside the Explore section — the dedicated workspace for custom analysis. You won’t find them in your standard Reports. If you want to filter standard reports, GA4 offers a lighter feature called “comparisons,” but segments are far more powerful and flexible.

One more important distinction: segments are not the same as filters. A filter removes data permanently from a view. A segment applies a temporary lens over your data, leaving everything intact. You can add or remove segments without touching your underlying data at all.

How GA4 Segments Differ from the Old Universal Analytics

If you used Universal Analytics before its retirement, you applied segments directly to standard reports, and they were available across your whole account. GA4 works differently. Segments in GA4 are scoped to individual Explorations — meaning a segment you build in one Exploration report won’t automatically carry over to a different one. You’ll need to recreate it (or duplicate the Exploration). This can feel restrictive at first, but the trade-off is a much more powerful set of conditions and a new segment type that UA never had: event-scoped segments.

GA4 also introduced higher sampling thresholds. In Universal Analytics, heavy segmentation could trigger data sampling quickly, which meant your reports were based on estimates rather than actual data. GA4’s improved handling here means your segmented explorations are more reliable.

The Three Segment Types: User, Session, and Event

This is where many merchants get confused — and getting it right is essential. GA4 offers three fundamentally different types of segments, and choosing the wrong one gives you misleading data.

Here’s how to think about each:

  • User Segments: These pull in everything a qualifying user ever did on your site — across all their sessions within the date range. If you create a user segment for “people who made a purchase,” you’ll see all the browsing sessions those people had before buying, not just the session where the purchase happened. Use this when you want to understand the full journey of a specific customer type.
  • Session Segments: These focus on specific visits that meet your criteria. If a user made a purchase in session #3 but not in sessions #1 or #2, a session segment for purchasers would only include data from session #3. Use this when you’re analyzing specific campaigns, traffic sources, or in-session behaviors like cart abandonment during a particular visit.
  • Event Segments: These are entirely new to GA4 and have no UA equivalent. They isolate specific actions — like every instance of an add_to_cart event — regardless of what else happened in that session or for that user. Use this when you want to zoom into a particular interaction and understand its context.

A practical example: imagine you want to understand why mobile checkout is underperforming. A session segment for mobile sessions that included a begin_checkout event but no purchase would show you exactly what happened during those frustrating visits. That’s precise, actionable data. A user segment would show you too much noise from browsing sessions on other devices.

Where to Build Segments: Navigating GA4 Explorations

Getting to the Explore Section

Before you can build segments, you need to be in the right part of GA4. From your GA4 property dashboard, look for Explore in the left-hand navigation menu. This section is your sandbox — a completely separate workspace from the standard Reports area.

Once you’re in Explore, you can start a brand-new blank exploration or choose from several useful templates. For Shopify stores, the most relevant templates are:

  • Free form: A blank canvas where you drag and drop dimensions, metrics, and segments to build custom tables and charts.
  • Funnel exploration: Built specifically for analyzing multi-step processes like your checkout flow. Essential for identifying where customers drop off.
  • Path exploration: Shows the sequence of pages or events users move through, which is great for understanding navigation patterns.
  • User lifetime: Lets you analyze the long-term behavior of cohorts of customers — valuable for understanding repeat purchase patterns.

How to Create a Segment Inside an Exploration

With any exploration open, look at the left panel — the “Variables” column. Near the top of that column, you’ll see a Segments section with a small “+” icon. Click that plus sign to open the segment builder.

You’ll immediately be presented with a choice: build a custom segment from scratch (user, session, or event), or start from one of GA4’s suggested segments. The suggested segments include useful pre-built starting points like “Purchasers,” “Non-purchasers,” and several shopping-specific templates that are genuinely valuable for Shopify stores. If you’re new to GA4 segmentation, these are excellent training wheels — start with one, examine how it’s built, and modify it for your specific needs.

For a custom segment, the build process follows these steps:

  1. Choose your segment type: User, Session, or Event.
  2. Define your include conditions using the condition builder. You’ll select a dimension or event, then specify the operator (equals, contains, is greater than, etc.) and the value.
  3. Add additional condition groups with AND/OR logic as needed for more complex targeting.
  4. Optionally add exclude conditions — for instance, include sessions that had begin_checkout but exclude sessions that also had a purchase event.
  5. Name your segment with a clear, consistent naming convention (more on that below).
  6. Preview the segment to verify it captures the expected number of users or sessions before saving.

Once saved, your segment appears in the Segments section of the Variables column. You can then drag it up to the Segment Comparisons area at the top of your exploration to activate it — or apply it as a filter to your entire exploration.

Segment Naming Best Practices

This sounds trivial, but sloppy naming creates real problems when you have dozens of segments across multiple explorations. A consistent naming convention saves enormous time. A structure that works well looks like this:

  • Users_HighValue_2+Orders
  • Sessions_CartAbandoners_Mobile
  • Events_AddToCart_ProductCategory

Start with the scope (Users, Sessions, Events), then describe the behavior or characteristic, then add any modifier that makes it unique. You’ll thank yourself when you need to find the right segment three months later.

The 5 Most Powerful Segments for Shopify Store Owners

Now comes the practical part. These are the segments that generate the most useful insights for Shopify merchants — the ones that answer the questions that actually move the needle.

Segment 1: Cart Abandoners (Session Scope)

Cart abandonment is one of the most expensive problems in e-commerce. The good news is that GA4 lets you isolate exactly these sessions so you can study what went wrong.

How to build it:

  • Segment type: Session
  • Include condition: Event name equals add_to_cart
  • Add another condition with AND logic: Event name equals begin_checkout (optional — this creates a segment of people who actually started checkout)
  • Exclude condition: Event name equals purchase

Once you have this segment, apply it to a free-form exploration alongside dimensions like Device category, Session source/medium, and Landing page. You’ll quickly discover patterns: maybe mobile abandonment is three times higher than desktop, suggesting a checkout usability issue on small screens. Maybe abandonment spikes when certain traffic sources are included, suggesting a mismatch between ad promise and landing page experience.

Segment 2: High-Value Customers (User Scope)

Not all customers are equal. Your top 20% of buyers likely generate a disproportionate share of your revenue — and understanding who they are is critical for both retention and acquisition.

How to build it:

  • Segment type: User
  • Include condition: Purchase revenue greater than [your threshold — typically 2x your average order value]
  • Optional additional condition: Event count for purchase event greater than or equal to 2 (to capture repeat buyers specifically)

With this segment active, explore which traffic sources originally acquired these high-value users. Where did they land first? Which products did they view before converting? This data is marketing gold. If your high-value customers predominantly came through organic search and then viewed a specific product category, that tells you where to invest in SEO and what to feature in campaigns targeting similar audiences.

Segment 3: First-Time vs. Returning Purchasers (User Scope)

First-time buyers and returning customers need completely different things from you. First-timers need reassurance and a frictionless experience. Returning customers need reasons to come back — loyalty incentives, new products, personalized offers. Blending them together obscures your understanding of both.

How to build them:

First-Time Purchasers:

  • Segment type: User
  • Include: Event name equals purchase AND New/established equals New

Returning Purchasers:

  • Segment type: User
  • Include: Event name equals purchase AND New/established equals Returning

Compare these two segments side by side in a free-form exploration. Look at metrics like average session duration, pages per session, and the number of sessions before purchase. If first-time buyers take significantly more sessions to convert, your trust signals might need strengthening. If returning customers have shorter sessions, they know what they want — and your challenge is making sure they find it fast.

Segment 4: Paid Traffic vs. Organic Traffic (Session Scope)

You’re spending money on ads. The core question is always: is it working? But “working” means different things depending on what you compare it to. Building parallel segments for paid and organic traffic lets you answer this with real specificity.

How to build them:

Paid Traffic Sessions:

  • Segment type: Session
  • Include: Session medium equals cpc

Organic Traffic Sessions:

  • Segment type: Session
  • Include: Session medium equals organic

Now compare conversion rates, average order values, and bounce patterns between these two. You might find that organic traffic converts at a higher rate but at a lower order value — meaning your paid campaigns attract buyers who spend more per order, justifying higher ad costs. Or you might discover the reverse. Either way, you’ve moved from gut feeling to evidence.

Segment 5: Product Viewers Who Didn’t Add to Cart (Session Scope)

This segment is criminally underused. These are visitors who showed genuine interest in a product — they landed on the page, they looked — but something stopped them from adding it to their cart. Product page friction, unclear pricing, weak photography, missing trust signals: any of these could be the culprit.

How to build it:

  • Segment type: Session
  • Include: Event name equals view_item
  • Exclude: Event name equals add_to_cart

Apply this segment and then break it down by Page title or Item name to see which specific products are the worst offenders. If one product page appears in this segment disproportionately, that’s your signal to investigate: Is the product description compelling? Are the images high quality? Is the price competitive? Is there social proof like reviews? This single segment can drive more product page improvements than any amount of general advice.

Building Advanced Segments: Sequence Conditions and Exclusions

Using Sequence Conditions for Behavioral Analysis

Standard segments tell GA4 to find users or sessions that meet certain criteria — but they don’t care about the order in which those criteria are met. Sequence conditions change that. They let you specify that Event A must happen before Event B, which opens up a whole new level of behavioral analysis.

Sequence segments are only available at the User scope level. Here’s a valuable sequence segment for Shopify merchants:

Users Who Viewed a Promotion Then Purchased:

  • Segment type: User
  • Step 1: Event name equals view_promotion
  • Step 2 (is followed by): Event name equals purchase
  • Optional time constraint: Require Step 2 to occur within 7 days of Step 1

This tells you how many users saw a promotion and later bought something. With time constraints, you can measure the “shelf life” of your promotions. Did people who saw a flash sale convert within the urgency window, or did most wait days later? That insight has direct implications for how you structure and communicate your offers.

Another powerful sequence: users who had multiple sessions before purchasing. Create a sequence where a session_start event occurs, is followed by another session_start event, and is eventually followed by a purchase. This tells you how many of your buyers needed repeated exposure before converting — a direct measure of whether your remarketing and email nurturing are necessary.

The Power of Exclusion Conditions

The ability to exclude users or sessions from a segment might seem like a minor feature, but it’s what makes your segments truly precise. GA4 offers two types of exclusions:

  • Temporary exclusion: The user or session is excluded only during a specific time window you define. For example, exclude users who have made a purchase within the last 30 days — after 30 days, they re-enter the segment. This is useful for defining “lapsed customers.”
  • Permanent exclusion: Once a user meets the exclusion condition even once, they’re permanently out of the segment. This is useful for things like “never-converted visitors” — once they buy, they leave the segment forever.

Exclusions also prevent “double counting” problems. If you want to analyze visitors who browsed products but didn’t convert, you need to explicitly exclude purchasers — otherwise users who bought after browsing will contaminate your non-converter data.

Combining Multiple Condition Groups

Real customer behavior is messy. Sometimes you need to capture multiple types of people within a single segment, or define a very specific combination of behaviors. GA4’s condition groups, linked with AND and OR operators, make this possible.

Example: A segment for “high-intent visitors who didn’t convert” might include sessions where users either added to cart OR spent more than 3 minutes on a product page (a proxy for deep engagement) — but exclude sessions that ended in a purchase. That requires an OR condition between two behaviors, combined with an AND-NOT exclusion. It sounds complex, but the GA4 interface makes it manageable once you understand the logic.

Turning Segments into Shopify Decisions: Practical Analysis Workflows

Workflow 1: Diagnosing Your Checkout Funnel

Your checkout funnel is your store’s most critical sequence, and GA4’s funnel exploration template becomes dramatically more useful when you layer segments on top of it. Here’s the workflow:

  1. Open a new Funnel Exploration in GA4 Explore.
  2. Define your funnel steps: view_item → add_to_cart → begin_checkout → add_payment_info → purchase.
  3. Create two segments: one for mobile sessions and one for desktop sessions.
  4. Apply both segments to the funnel and compare step-by-step drop-off rates side by side.

If mobile users drop off dramatically more at the begin_checkout step than desktop users, you have a specific, actionable problem to solve: mobile checkout friction. If the gap appears earlier at add_to_cart, the issue is with your product pages on mobile — perhaps the add-to-cart button isn’t prominent enough, or product images don’t load fast enough.

This workflow alone — funnel exploration plus device segments — can identify the single biggest revenue leak in your store within an afternoon.

Workflow 2: Measuring Campaign Quality, Not Just Volume

Traffic numbers feel good. Conversion numbers pay the bills. The problem is that many store owners celebrate a successful ad campaign based on clicks and sessions, without asking whether those sessions actually generated revenue proportional to their cost.

Build session segments for each of your major traffic sources: one for Google/CPC traffic, one for Meta paid traffic, one for email traffic, one for organic social. Then compare them across a free-form exploration using these metrics:

  • Purchase conversion rate
  • Average purchase revenue per session
  • Engagement rate
  • Average number of sessions before purchase (for user-scoped analysis)

You might discover that Meta paid traffic has a higher session count but a lower purchase rate, while email traffic has fewer sessions but far higher conversion. This doesn’t necessarily mean you should stop Meta ads — but it means you should adjust your expectations and your attribution model for each channel.

Workflow 3: Identifying Your Best Product Landing Pages

Every product page is effectively a miniature sales conversation. Some products convert cold traffic brilliantly. Others only convert after a visitor has browsed multiple pages. Knowing which is which helps you build smarter ad campaigns.

Build a user segment for first-session purchasers: users who made a purchase during their very first session on your store. Then, in a free-form exploration, break this segment down by the first page they landed on (Landing page + query string dimension). The product pages appearing most often in this segment are your highest-converting cold traffic destinations — these are the pages you should send paid traffic to, not your homepage.

Now build the inverse: users who took 3 or more sessions before purchasing. Break this down by their first landing page. These pages attract browsers, not buyers. They may still be valuable for SEO and brand awareness — but you’d be wasting ad budget sending paid traffic to them expecting immediate conversions.

Workflow 4: Understanding Geographic Buying Patterns

If you ship internationally or sell across a large country with regional variation, geographic segmentation can be illuminating. Build user segments by country or region, then compare conversion rates, average order values, and even the specific products purchased.

You might find that customers in certain regions have significantly higher average order values — which could inform targeted campaigns or even regional pricing strategies. Or you might discover that a particular country has high traffic but almost no conversions, suggesting a payment method gap or a shipping cost issue that’s silently killing your international revenue.

Shopify-Specific Segment Configurations and Technical Considerations

The Ecommerce Events GA4 Receives from Shopify

Your custom segments are only as good as the data flowing into GA4. Knowing what Shopify sends by default — and what it doesn’t — is essential for building accurate segments.

Shopify’s native Google & YouTube app sends these events automatically:

  • page_view — any page visit
  • view_item — a product page was viewed
  • add_to_cart — an item was added to cart
  • begin_checkout — checkout process started
  • add_payment_info — payment details entered
  • purchase — order completed
  • search — a search was performed in the store

These events give you a solid foundation for the segments described above. However, standard integration has limitations: non-Shopify Plus stores won’t get detailed checkout step tracking, and events like view_promotion or select_item may require additional configuration through Google Tag Manager or a dedicated analytics app.

If you’re running Shopify Plus, the Checkout Extensibility framework (mandatory since August 2025) provides more granular tracking through the checkout process. This makes your checkout funnel segments significantly more precise.

Ensuring Clean Data Before You Segment

Segmenting on dirty data is worse than not segmenting at all — it generates confident-looking insights that lead you in the wrong direction. Before building critical business segments, run these checks:

  • Open GA4’s DebugView (Admin → DebugView) and complete a test purchase. Verify that all expected events fire in the correct sequence with accurate parameters (product ID, price, revenue).
  • Compare your GA4 purchase count against Shopify’s native order count for the same time period. Some variance is normal (around 10-20%) due to ad blockers, consent rejection, and cross-device gaps. Variance above 30% suggests a tracking problem that needs fixing before you trust your segments.
  • Check that purchase revenue values in GA4 are consistent — exclude or include tax and shipping in the same way Shopify does, so your average order value comparisons are apples-to-apples.

Converting Segments into GA4 Audiences for Retargeting

Here’s where segments become directly tied to revenue: any user-scoped segment in GA4 can be converted into a GA4 Audience that automatically syncs to Google Ads within 24-48 hours. This means the behavioral insights you discover through segmentation can power your remarketing campaigns directly.

The process is straightforward. From Admin → Audiences → New Audience, you can either build an audience from scratch using the same condition builder you use for segments, or you can save a segment from inside an Exploration as a new audience. High-value audiences to create for Google Ads include:

  • Cart abandoners from the last 7 days
  • Product viewers who didn’t purchase in the last 14 days
  • Past purchasers from the last 30 days (for cross-sell campaigns)
  • High-value customers with lifetime revenue above a threshold (for lookalike targeting)

This direct bridge between GA4 analysis and Google Ads targeting is one of the most powerful — and underutilized — capabilities available to Shopify merchants. You’re not just learning from the data. You’re acting on it in real time.

Common Segmentation Mistakes and How to Avoid Them

Choosing the Wrong Segment Scope

This is by far the most common mistake. Using a user segment when you need a session segment inflates your numbers and muddles your analysis. If you’re studying what happens during a specific campaign’s traffic, use a session segment — otherwise you’re pulling in browsing behavior from completely unrelated visits that happened to involve the same user.

The rule of thumb: if your question starts with “who are the people that…”, use a user segment. If your question starts with “what happened during visits that…”, use a session segment. If it starts with “how many times did…”, use an event segment.

Building Segments Before Having Enough Data

GA4 segments work on historical data within the date range you set. If you’ve just installed tracking, or you’re looking at a very small date range, your segments may be based on too few data points to be statistically meaningful. A segment showing that mobile users have a 40% conversion rate based on 15 purchases tells you almost nothing.

A reasonable minimum: at least 100 conversions (purchases) in the segment before drawing actionable conclusions. For smaller stores, this may mean extending your date range to 60 or 90 days. For segments where you’re comparing sub-groups, each group needs sufficient volume independently.

Not Testing Segments Before Acting

GA4’s segment builder includes a preview function — always use it. Before you save a segment and build a report around it, check that the number of users or sessions it captures looks reasonable. A “cart abandoners” segment showing zero users means your add_to_cart event isn’t firing correctly, not that nobody abandons carts on your store. A segment showing 100% of your users means your conditions are too broad. The preview catches these issues before they lead to bad decisions.

Forgetting to Name and Document Segments

Three months from now, “Segment 1” and “Segment 2” will mean nothing to you. Name every segment descriptively using the convention discussed earlier, and consider keeping a simple spreadsheet or document that lists each segment name, its conditions, and the question it was designed to answer. When you revisit your explorations after a period away — or share access with a team member or agency — this documentation saves enormous time.

Practical Next Steps: Your 30-Day Segmentation Roadmap

The goal isn’t to build every possible segment — it’s to build the segments that answer your most pressing questions. Here’s a realistic 30-day plan to get started without overwhelm:

Week 1 — Foundation: Verify your GA4 tracking is clean using DebugView. Connect GA4 to your Google Ads account. Build your first two segments: Cart Abandoners and Purchasers. Apply them to a funnel exploration and note what you find.

Week 2 — Traffic Quality: Build session segments for your top two or three traffic sources (paid, organic, email). Compare their conversion rates and average order values in a free-form exploration. Identify your highest-quality traffic source and your weakest.

Week 3 — Product Performance: Build the “Product Viewers Who Didn’t Add to Cart” segment. Break it down by product/page title. Identify your two or three worst-converting product pages and investigate what’s different about them compared to your best-converting pages.

Week 4 — High-Value Customers: Build your High-Value Customer segment. Examine which channels originally acquired these customers. Identify what they viewed before their first purchase. Use this to inform your next paid campaign or email sequence.

After 30 days, you won’t have all the answers. But you’ll have real evidence to work with — specific, Shopify-specific insights that come from your own data rather than generic industry benchmarks. That’s what transforms analytics from a reporting exercise into a genuine growth tool.

References

  1. Google Analytics Help – [GA4] Segments in Explorations: https://support.google.com/analytics/answer/9304353
  2. Analyzify – Creating Ecommerce Segments in Google Analytics 4: https://analyzify.com/hub/segments-in-google-analytics
  3. Shopify – How to Use Google Analytics for Ecommerce: https://www.shopify.com/blog/14681601-google-analytics-for-ecommerce-a-beginners-guide
  4. Analytics Mania – Google Analytics 4 Segments: The Guide: https://www.analyticsmania.com/post/google-analytics-4-segments/
  5. Shopify – Google Analytics 4 Ecommerce Tracking Guide: https://www.shopify.com/enterprise/blog/google-analytics-ecommerce-tracking
  6. Littledata – Segments in Google Analytics 4: https://help.littledata.io/posts/segments-in-ga4
  7. Analyzify – Important eCommerce Reports in GA4 for Shopify Stores: https://analyzify.com/hub/ga4-ecommerce-reports-shopify

Stop Reacting to Data. Start Acting on It — With Growth Suite

Custom segments give you the diagnostic clarity to understand what’s happening in your store. But knowing that mobile cart abandonment is high, or that certain visitors are on the fence, only matters if you can act on those insights in real time — before those visitors leave.

That’s exactly what Growth Suite does. It’s a Shopify app built around behavioral targeting, which means it watches each visitor’s actions as they happen — tracking product views, time on page, cart interactions, and engagement signals — and predicts who’s likely to buy and who needs a nudge. For the visitors showing hesitation, it delivers a personalized, time-limited discount offer with a high-fidelity countdown timer that doesn’t reset. One real offer. One real deadline. Real urgency that visitors actually trust.

Crucially, Growth Suite never wastes discounts on dedicated buyers who were already going to purchase. The same behavioral intelligence that your GA4 segments reveal after the fact, Growth Suite acts on in the moment. It protects your margins while recovering conversions that would otherwise be lost.

Beyond offer management, Growth Suite includes post-purchase upsells, an AI-powered cart drawer with intelligent product suggestions, detailed funnel reporting, and product performance segmentation — all built natively into your Shopify store with no speed impact and no coding required.

Install Growth Suite free from the Shopify App Store with a single click. A pre-configured campaign activates immediately, so you can start seeing results from day one — no complex setup, no developers needed.

Muhammed Tufekyapan
Muhammed Tufekyapan

Founder of Growth Suite & The Shop Strategy. Helping Shopify stores to increase their revenue using AI and discounts.

Articles: 211