---
metadata:
  - name: generator
    content: Diplodoc Platform v5.57.4
alternate:
  - https://yandex.com/support/metrica/en/general/segmentation-report.md
  - https://yandex.com/support/metrica/es/general/segmentation-report.md
  - https://yandex.com/support/metrica/pt/general/segmentation-report.md
  - https://yandex.com/support/metrica/ru/general/segmentation-report.md
  - https://yandex.com/support/metrica/tr/general/segmentation-report.md
  - https://yandex.com/support/metrica/zh/general/segmentation-report.md
  - href: https://yandex.com/support/metrica/en/general/segmentation-report.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.com/support/metrica/en/llms.txt
    rel: describedby
title: Segmentation in reports
description: How to create and configure a segment.
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/metrica/en/llms.txt


# Segmentation in reports

## Creating a segment {#segment}

You can use a [segment](*сегмента) to pull necessary data from a full set of statistics. A segment is formed from criteria that are used for selecting data.

<!-- source: en/_includes/popup/id-popup/segment.md -->
In Yandex Metrica, new data is added to the segment within 180 minutes after the condition is met. Because segments are recalculated daily, they contain up‑to‑date information.
<!-- endsource: en/_includes/popup/id-popup/segment.md -->

You can create a segment using:

{% list tabs %}

- Standard settings

  The criteria are combined into groups in the list, and groups are combined into categories.
    
  ![](../_assets/segment-new-1.png =600x){.border-yes}
    
  Segmentation can be done for multiple [statistical objects](https://yandex.com/support/metrica/en/general/how-it-works.md#data_store_process):
 
  **Pageviews**
  
   
  :   The report will only contain data on sessions that include views with the specified condition.
  
  **Sessions**
  
   
  :   The report will only contain data on sessions with the specified condition.
  
  **Users**
  
   
  :   The report only contains data on users whose sessions meet the specified condition at least once.

  You can also create a segment for certain actions, such as outbound clicks or calls. Yandex Metrica provides reports designed for collecting statistics on such actions. For example, for file downloads. When generating a report on the specified segment, Yandex Metrica selects only actions that meet the specified condition from those taken during the user sessions.

  Since the segment is based on different objects, but the same metrics are calculated (like the number of views), the totals in different reports may differ.
  
  {% cut "Example" %}
  
  You need to find out how often users view one of your site pages. Keep in mind that during a single session, a user can view a lot of other pages apart from the one being analyzed. 
  
  You can see this information in various reports, such as **Traffic** and **Popular**. As an example, we'll use reports for a demo tag.
  
  - [Report](https://metrika.yandex.com/stat/traffic?period=month&id=44147844&filter=(ym%3Apv%3AURL%3D*%2527https%3A%2F%2Fmetrica.yandex.com%2Fabout%2Finfo%2Ffeatures%2527)&confidence=%7B%22enabled%22%3Afalse%2C%22confidenceLevel%22%3A0.95%2C%22maxDeviation%22%3A0.05%7D)
      
  - [Report](https://metrika.yandex.com/stat/popular?period=month&id=44147844&selected_rows=%5B%7B%22path%22%3A%5B%228120445791477781921%22%5D%2C%22name%22%3A%5B%22https%3A%2F%2Fmetrica.yandex.com%2F%22%5D%7D%5D&filter=(ym%3Apv%3AURL%3D*%2527https%3A%2F%2Fmetrica.yandex.com%2Fabout%2Finfo%2Ffeatures%2527)&confidence=%7B%22enabled%22%3Afalse%2C%22confidenceLevel%22%3A0.95%2C%22maxDeviation%22%3A0.05%7D)
      
  The reports show a different number of views. This is due to the fact that, in the case of session-based segmentation, the report considers the number of views for other pages during the selected sessions in addition to the number of views for the specified page.
  
  {% endcut %}
  
- Dimension values

  To create a segment for a row, click ![](../_assets/debug-close.png) in the row and then select **Segment by row** from the dropdown list. 
  
  ![](../_assets/segment-new-6.png =300x){.border-yes}
  
  The selected segment will be applied.

  
  You can save the resulting segment to compare it with another one. For more information, see the [actions with segments](#operations). You can also change the [criteria](#conditions).
  
  {% cut "Example" %}
  
  During analysis of landing pages, it was discovered that one of the pages had a high bounce rate. We can find out the traffic sources that brought visitors to this page:
  
  1. In the [Landing pages](https://yandex.com/support/metrica/en/content/entry-pages.md) report, select a row and click ![](../_assets/debug-close.png) → **Segment by row**.
      
	  
	    ![](../_assets/segment-new-15.png =800x){.border-yes}
	  
	  
      The value of the dimension will be used as the criteria for creating a segment. The report will only show data about the selected page.
      
    
	    ![](../_assets/segment-new-16.png =800x){.border-yes}
	     
  1. Click **Dimensions** and add **Sources** → **Traffic source**.
  
  1. Move **Traffic source** to the top of the list. The data shows that the high bounce rate is for traffic from search results.
      
	  
	    ![](../_assets/segment-new-17.png =800x){.border-yes}
	    
  1. To analyze the results more closely, click the **Search engine traffic** line. This opens a report for the created segment.
  
  {% endcut %}

{% endlist %}

## Configuring segmentation {#manage}

Yandex Metrica offers a wide range of options for configuring segmentation. This includes multiple ways you can set up conditions.

{% list tabs %}

- Choice of options
  
  ![](../_assets/segment-new-8.png){.border-yes}
  
  You can select pre-configured values or those obtained from your site. 
  
  In this segmentation configuration type, all conditions are added with the `OR` operator, which means that the report will display all values that meet the selected conditions.

- Custom input

  ![](../_assets/segment-new-9.png =600x){.border-yes}
    
  In this condition configuration type, you need to manually enter the values you want to use to configure segmentation. 
  
  Some segments may have additional settings in the panel above, which offer more detailed segmentation to fit your specific needs. 
  
  In this condition configuration type, you can also choose how to apply conditions: 
  
  - **All conditions are met**: The same as the `AND` operator.
  - **Any condition is met**: The same as the `OR` operator.

- Selection from the tree list

  
  ![](../_assets/segment-new-10.png =500x){.border-yes}
  
  In some segments, you can choose conditions from a pre-configured tree, either selecting values from end items or top-level items of the list.

{% endlist %}

### Managing operators and regular expressions {#conditions}

When creating a segment, you can select equality condition settings.

![](../_assets/segment-new-11.png =600x){.border-yes}

#|
||
**Criterion**
|
**Description**
||
||
`=` Equal to
|
Retains values that meet the segment conditions
||
||
`≠` Not equal to
|
Excludes values that meet the segment conditions
||
||
`>` Greater than
|
For numerical values, this will retain only values greater than the specified condition
||
||
`<` Less than
|
For numerical values, this will retain only values less than the specified condition
||
||
`≥` Greater than or equal to
|
For numerical values, this will retain only values greater than or equal to the specified condition
||
||
`≤` Less than or equal to
|
For numerical values, this will retain only values less than or equal to the specified condition
||
||
`:` Range
|
For numerical values, this allows setting a range `from` and `to`, retaining only values that meet the conditions of the specified range
||
|#

For custom input, you can also use special operators. If you don’t want to specify a strict match, you can define the beginning, a substring, or more complex conditions using regular expressions.

#|
|| 
**Character** 
| 
**Description** 
| 
**Example** 
||
||
\*
|
Matches any number of any characters
|
Show data for all pages beginning with `https://example.com/tariff/`, including the specified page: `https://example.com/tariff/*`

{% cut "Using the * character" %}
  
You can use the * character when setting conditions related to a search query.

For example, you can filter all the search queries that brought visitors to the site and select just the data for phrases that somehow contain the company name: \*Alice in Wonderland\*.

The following queries will match this condition: `website of Alice in Wonderland`; `Alice in Wonderland site`; `official Alice in Wonderland site`.

{% endcut %}
||
||
@
|
The selected data contains the specified string (but doesn’t have to match exactly)
|
Show data for all pages with a URL containing the string: `@tariff`
||
||
~
|
The condition is a regular expression
|
Show data for pages with a URL matching a [regular expression](https://yandex.ru/support/metrica/ru/general/regexp)
||
||
!
|
Negates condition
|
Exclude data for pages with a URL that begins with the string https://example.com/tariff/: `!https://example.com/tariff/*`
||
||
.
|
Separate attribute levels 
|
Set attribute boundaries in segments using parameters `param1.param2.param3`
||
|#

When using special characters, case is ignored.

The characters `@`, `!`, and `~` can only be used at the beginning of a string. You can use the following combinations:

  #|
  ||
  **Operator**
  |
  **Example**
  ||
  ||
  !@
  |
  Exclude data for pages with a URL containing "tariff": `!@tariff`
  ||
  ||
  !~
  |
  Exclude data for pages with a URL that matches the regular expression
  ||
  |#

### Segmentation by parameters {#param}

Yandex Metrica offers advanced modes for configuring segmentation, based either on parameters transmitted from your site or on e-commerce data.

- **Segment row toggle**

   If the configured segment and the dimension in the report belong to the same data array (for example, segmentation by session level 1 parameter and dimension by session level 1 parameter), an additional segment row toggle appears in segments built based on the parameters. 

   You can use it to specify what exactly you want to segment: the events based on the transmitted parameters or, for example, the sessions during which the events occurred. 
   
   
   
   ![](../_assets/segment-new-12.png){.border-yes}
    
   
- **Advanced segmentation configuration mode**

   With the advanced parameter-based segmentation configuration mode, you can specify more flexible conditions for a parameter-based segment.
   
   ![](../_assets/segment-new-13.png =600x){.border-yes}
   
   With this mode, you can select a set and order of attributes (dimensions) for building a segment. 
   
   1. Click **Attributes** in the segment configuration panel.
   1. Specify a set of attributes in the window that opens. 
      
   ![](../_assets/segment-new-14.png =600x){.border-yes}
   
## Operations with segments {#operations}

**Comparing segments**

 
:   Comparison lets you view data for two segments at once.
    
    After getting a segment, you can compare it with:
    
    - A **previous period**.
    - A **segment specified manually**.
    - A **predefined segment** (for example, **New users** or **Search traffic**).
    - A **saved segment** (that you created previously).

**Saving a segment**

  
:    
    1. Click **Save as** on the segmentation panel.
    2. Enter the segment name and click **Save**.

    Saved segments can be accessed from the menu that opens after you click the **Segment** button and on the [Segments](segmentation-segments.md) page.

	

    ![](../_assets/segment-new-5.png){.border-yes}
	
	  
    {% note alert %}
    
    You can save 500 segments max.
    
    {% endnote %}

## Questions and answers {#qanda}

**What are incompatible conditions?**

 
:   When you switch from report to report, the segmentation conditions are saved. If the supported conditions are different, a message about their incompatibility appears in Yandex Metrica. In this case, delete the conditions and set a new segment.
    
  
  ![](../_assets/inv-segm.png){.border-yes}
  
  

<!-- source: en/_includes/buttons/chat-button.md -->
[Chat with us](https://yandex.com/chat/#/user/036e6a02-3620-9cdc-4c5e-a34667a7379e?utm_source=spravka){.button}

<!-- source: en/_includes/styles/href-to-button.md -->

<!-- endsource: en/_includes/styles/href-to-button.md -->
<!-- endsource: en/_includes/buttons/chat-button.md -->

<!-- source: en/_includes/buttons/mail-button.md -->
<div class="cut-button">

{% cut "Write an email" %}

<!-- source: en/_includes/popup/id-popup/wrong-sup.md -->
Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.
<!-- endsource: en/_includes/popup/id-popup/wrong-sup.md -->

<div style="padding: 15px;
     margin: 10px 0;
     background: #FFFFFF;
     border-radius: 10px;
     border: 1px solid var(--g-color-line-generic);">
  <iframe style="background: #FFFFFF;"
        height="700"
        width="100%"
        frameborder="0"
        src="https://forms.yandex.com/surveys/1706/?&iframe=1&lang=en">
  </iframe>
</div>

{% endcut %}

</div>

<!-- source: en/_includes/styles/cut-button.md -->

<!-- endsource: en/_includes/styles/cut-button.md -->
<!-- endsource: en/_includes/buttons/mail-button.md -->

<!-- source: en/_includes/footer-links.md -->
- - -

<div class="borderless-table">

#|
||
Useful links

- [Demo tag](https://metrica.yandex.com/r/dashboard?)
- [Add a tag](https://metrica.yandex.com/add/)
- [Free tag setup](https://yandex.com/promo/freeservice/metrica?utm_source=help_metrica_en&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com/metrika/)
- [Suggest your idea](https://yandex.com/support/metrica/troubleshooting/idea.html)
- [Discuss in Telegram](https://t.me/yandexmetrika)
|
Online training

- [Get a Yandex Metrica certificate](https://yandex.ru/adv/expert/exam/metrika/?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)


- [Take a training course](https://yandex.com/adv/edu/online/metrika?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)

||
|#

</div>

<!-- source: en/_includes/styles/table-style.md -->

<!-- endsource: en/_includes/styles/table-style.md -->
<!-- endsource: en/_includes/footer-links.md -->

<!-- source: en/_includes/styles/table-style.md -->

<!-- endsource: en/_includes/styles/table-style.md -->

<!-- source: en/_includes/styles/border-style.md -->

<!-- endsource: en/_includes/styles/border-style.md -->

[*сегмента]: Some of the sessions or pageviews, which are selected by a formal attribute (for example, the number of pages viewed).