Segments in Google Analytics: what they are and how to create them

Share this article

Segments in Google Analytics let us isolate and analyze a specific subset of data instead of looking at all users, sessions, or events together. In GA4, segments are mainly used in Explorations and can be created based on dimensions, metrics, events, or sequences.

What are segments in Google Analytics?

A segment is a subset of your Analytics data defined by the conditions you choose. For example, you might want to analyze only users from a specific country, sessions coming from a particular campaign, or events related to a certain conversion action. In GA4, segments can be user-based, session-based, or event-based.

The main advantage of segmentation is that it makes analysis much more precise. Instead of reviewing overall data, you can focus on a specific group and better understand how that traffic behaves.

What are segments used for?

Segments are useful when you want to compare groups of users or isolate a specific type of traffic.

For example, you can use them to analyze users from a certain location, traffic from a particular source, sessions that ended in a purchase, or users who followed a specific path through the site. In GA4, segments are especially useful in Explorations, where they help you compare subsets of data in more detail than in standard reports.

This makes them particularly valuable when you want to detect patterns, compare behaviors, or better understand how a certain audience or traffic source performs.

Types of segments in GA4

GA4 allows you to create three types of segments:

User segments

User segments include users who meet the conditions you define. Once a user matches those conditions, the segment can include all of that user’s activity within the selected date range, depending on how the segment is configured.

Session segments

Session segments include only the sessions that match the defined conditions. They are useful when the focus is on a particular visit rather than on the user as a whole.

Event segments

Event segments include only the events that meet the selected conditions. This is useful when you want to isolate specific interactions, such as purchases, form submissions, or any other tracked event.

How to create a segment in Google Analytics

In GA4, segments are created from the Explore section or the Admin area. Google’s segment builder allows you to define conditions manually, start from suggested templates, or even create a segment from a selected data point in a visualization. Segments can be local to a single exploration or saved at property level for wider reuse, depending on permissions.

When creating a segment, you can combine different types of conditions:

  • Dimension-based conditions
  • Metric-based conditions
  • Event-based conditions
  • Sequence-based conditions

This makes it possible to build simple segments, such as users from Germany, or much more advanced ones, such as users who viewed a product page, added a product to the cart, and did not purchase within the same session.

Conditions and sequences

One of the most useful features of segments in GA4 is the ability to define sequences.

This means you can analyze users who completed a specific series of actions in a given order. For example, users who triggered view_item, then add_to_cart, and later purchase. GA4 also lets you apply time constraints between the different steps in the sequence.

This kind of setup is especially helpful when analyzing funnels, behavioral patterns, or drop-off points in the conversion journey.

Difference between segments and audiences

Segments and audiences may look similar, but they are not the same thing.

A segment is used to filter data for analysis inside reports and explorations. It is retroactive within the selected date range, meaning it applies to data that already exists. An audience, on the other hand, is a group of users that is built over time based on membership rules and is typically used for activation, remarketing, or ongoing analysis.

This distinction is important because a segment helps you analyze data, while an audience is usually designed to identify users for future use.

Why segments are useful

Segments make it easier to understand what is happening on a website or app because they let you move away from aggregated data and focus on the users, sessions, or events that really matter to the analysis.

Used properly, they can help you compare traffic sources, analyze conversion behavior, identify high-value users, and uncover differences that would be much harder to spot in overall reports. In GA4, that role is still very important, although segments now live primarily within Explorations rather than across the standard reporting interface as they did in Universal Analytics.

In short, segments in Google Analytics are one of the most useful tools for going beyond surface-level reporting. They let you isolate specific subsets of data and analyze them in a much more focused way, which leads to better interpretation and better decisions.


Share this article
raul revuelta seo y marketing digital

About me

Raúl Revuelta

Digital marketing consultant specialized in SEO, CRO, and digital analytics. On this blog, I share content about these areas and other topics related to digital marketing, always with a practical, business-focused approach. You can also find me on LinkedIn and X.

Leave a Comment

Your email address will not be published. Required fields are marked *

Would you like to talk about your project?

Scroll to Top