---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com.tr/support/metrica/en/general/segmentation-examples.md
  - https://yandex.com.tr/support/metrica/es/general/segmentation-examples.md
  - https://yandex.com.tr/support/metrica/pt/general/segmentation-examples.md
  - https://yandex.com.tr/support/metrica/ru/general/segmentation-examples.md
  - https://yandex.com.tr/support/metrica/tr/general/segmentation-examples.md
  - href: en/general/segmentation-examples.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: Segmentation examples
description: Segmentation examples.
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/support/metrica/en/llms.txt


# Segmentation examples

{% cut "Segment for retargeting in Yandex Direct" %} {#direct}

Selecting users who viewed specific site pages (for example, the product catalog in one of the categories), in order to use Yandex Direct to offer these users a product or service related to these pages.

1. In the **for people with** condition group, click ![](../_assets/plus.svg).
1. Select the condition: **Behavior** → **View URL**. Then enter the URL of the page you need (for example, `https://example.com/tariff/`). Use `@example.com` to segment a report for all pages that include `example.com`.
1. [Save the resulting segment](https://yandex.com.tr/support/metrica/en/general/segmentation-report.md#save).
1. In Yandex Direct, [add a retargeting list](https://yandex.ru/support/direct/impression-criteria/retargeting-lists.html#retargeting-lists).

See how [a similar segment is highlighted](https://metrica.yandex.com.tr/stat/sources?period=month&id=44147844&selected_rows=%5B%7B%22path%22%3A%5B%22referral%22%5D%2C%22name%22%3A%5B%22%D0%9F%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B+%D0%BF%D0%BE+%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D0%B0%D0%BC+%D0%BD%D0%B0+%D1%81%D0%B0%D0%B9%D1%82%D0%B0%D1%85%22%5D%7D%2C%7B%22path%22%3A%5B%22ad%22%5D%2C%22name%22%3A%5B%22%D0%9F%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B+%D0%BF%D0%BE+%D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D0%B5%22%5D%7D%2C%7B%22path%22%3A%5B%22organic%22%5D%2C%22name%22%3A%5B%22%D0%9F%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B+%D0%B8%D0%B7+%D0%BF%D0%BE%D0%B8%D1%81%D0%BA%D0%BE%D0%B2%D1%8B%D1%85+%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%22%5D%7D%2C%7B%22path%22%3A%5B%22direct%22%5D%2C%22name%22%3A%5B%22%D0%9F%D1%80%D1%8F%D0%BC%D1%8B%D0%B5+%D0%B7%D0%B0%D1%85%D0%BE%D0%B4%D1%8B%22%5D%7D%2C%7B%22path%22%3A%5B%22internal%22%5D%2C%22name%22%3A%5B%22%D0%92%D0%BD%D1%83%D1%82%D1%80%D0%B5%D0%BD%D0%BD%D0%B8%D0%B5+%D0%BF%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B%22%5D%7D%5D&filter=(EXISTS+ym%3Apv%3AspecialUser+WITH+(ym%3Apv%3AURL%3D*%2527https%3A%2F%2Fmetrica.yandex.com%2Fabout%2527))&confidence=%7B%22enabled%22%3Afalse%2C%22confidenceLevel%22%3A0.95%2C%22maxDeviation%22%3A0.05%7D) using the Yandex Metrica demo tag.

{% endcut %}

{% cut "Analysis of traffic to site pages" %} {#view-page}

If we take the data from the [Sources, Summary](https://yandex.com.tr/support/metrica/en/sources/sources-summary.md) report, we can select the information about users who went to the site and viewed a page with a promotional offer from March 1 to March 15.

1. <!-- source: en/_includes/general/segmentation-examples/id-segmentation-examples/1.md -->
   In the **for people with** condition group, click ![](../_assets/plus-segment.png).
   <!-- endsource: en/_includes/general/segmentation-examples/id-segmentation-examples/1.md -->
    
1. Select the condition: **Behavior** → **View URL**. Then enter the URL of the page you need (for example, `https://example.com/promo.html`). Use `@example.com` to segment a report for all pages that include `example.com`.
1. Choose the time period for pageviews: click **For reporting period**, then **Choose period**.

See how [a similar segment is highlighted](https://metrica.yandex.com.tr/stat/sources?period=month&id=44147844&selected_rows=%5B%7B%22path%22%3A%5B%22direct%22%5D%2C%22name%22%3A%5B%22%D0%9F%D1%80%D1%8F%D0%BC%D1%8B%D0%B5+%D0%B7%D0%B0%D1%85%D0%BE%D0%B4%D1%8B%22%5D%7D%2C%7B%22path%22%3A%5B%22referral%22%5D%2C%22name%22%3A%5B%22%D0%9F%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B+%D0%BF%D0%BE+%D1%81%D1%81%D1%8B%D0%BB%D0%BA%D0%B0%D0%BC+%D0%BD%D0%B0+%D1%81%D0%B0%D0%B9%D1%82%D0%B0%D1%85%22%5D%7D%2C%7B%22path%22%3A%5B%22organic%22%5D%2C%22name%22%3A%5B%22%D0%9F%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B+%D0%B8%D0%B7+%D0%BF%D0%BE%D0%B8%D1%81%D0%BA%D0%BE%D0%B2%D1%8B%D1%85+%D1%81%D0%B8%D1%81%D1%82%D0%B5%D0%BC%22%5D%7D%2C%7B%22path%22%3A%5B%22ad%22%5D%2C%22name%22%3A%5B%22%D0%9F%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B+%D0%BF%D0%BE+%D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%BC%D0%B5%22%5D%7D%2C%7B%22path%22%3A%5B%22internal%22%5D%2C%22name%22%3A%5B%22%D0%92%D0%BD%D1%83%D1%82%D1%80%D0%B5%D0%BD%D0%BD%D0%B8%D0%B5+%D0%BF%D0%B5%D1%80%D0%B5%D1%85%D0%BE%D0%B4%D1%8B%22%5D%7D%5D&filter=(EXISTS+ym%3Apv%3AspecialUser+WITH+((ym%3Apv%3AURL%3D*%2527https%3A%2F%2Fmetrica.yandex.com%2Fabout%2F%2527)+and+ym%3Apv%3AspecialDefaultDate%3E%3D%25272018-03-01%2527+and+ym%3Apv%3AspecialDefaultDate%3C%3D%25272018-03-15%2527))&confidence=%7B%22enabled%22%3Afalse%2C%22confidenceLevel%22%3A0.95%2C%22maxDeviation%22%3A0.05%7D) using the Yandex Metrica demo tag.

{% endcut %}

{% cut "Traffic sources that produced a specific amount of revenue" %} {#sources}

In the [Sources, Summary](https://yandex.com.tr/support/metrica/en/sources/sources-summary.md) report data, we can select users who completed an order for an amount over 10,000 rubles.

1. Find the **Sessions in which** condition group and click ![](../_assets/plus.svg).
1. Set the condition: **E-commerce** → **Purchase amount**, then select the **More** value and specify the order amount: 10,000.

{% endcut %}

{% cut "Detecting the source of internal traffic" %} {#referrer}

 Sometimes, a high volume of internal traffic on a site can indicate that the Yandex Metrica tag is missing on some pages. Let’s look at an example.
 
<!-- source: en/_includes/general/sources-qanda/id-sources-qanda/ref-example.md -->
A user followed a link from an external source to a page that doesn't have a counter (for instance, `contacts.html`), then immediately (during the same session) navigated to a page with a counter (in this case, `page1.html`). This means that two conditions are met: the session starts from `page1.html` (because Yandex Metrica doesn't have data about the `contacts.html` pageview due to the absence of the tag on this page), but the page the user navigated from (`contacts.html`) belongs to the same site that is specified in the tag settings (`http://mysite.example/`).
<!-- endsource: en/_includes/general/sources-qanda/id-sources-qanda/ref-example.md -->

To detect the page without the tag:

1. Find the report [Content - Landing pages](https://yandex.com.tr/support/metrica/en/content/entry-pages.md) in the **Sessions in which** condition group and click ![](../_assets/plus.svg).
1. Select the condition: **Sources** → **Last source** → **Source type** → **Internal traffic**.
1. Only leave the **Landing page** dimension in the dimensions list. To do this, click **Dimensions** and remove the others.

This gives us information about the pages that the session started from. To determine how the user got to these pages, add a dimension with the referrer (source) that started the session:

1. Click **Dimensions**.
1. Select the **Sources** → **Referrer** dimension.

Now the report shows the pages that the session started from, and the second level of the report hierarchy shows the pages that click-throughs came from. For convenience, you can move the **Referrer** dimension to the top of the list of dimensions. Then the first level will show the pages that presumably might be missing the code snippet, and the second level will show where users navigated to from them.

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

The small number of sessions in this report indicates that everything is probably fine with the tag, and the internal referrals are caused by [session timeouts](https://yandex.com.tr/support/metrica/en/sources/sources-summary.md).

View a [similar report](https://metrica.yandex.com.tr/stat/entrance?dimension_mode=list&period=quarter&id=44147844&selected_rows=%5B%7B%22path%22%3A%5B%2211642278469773222955%22%2C%224746351027560031610%22%5D%7D%2C%7B%22path%22%3A%5B%2211642278469773222955%22%2C%2211642278469773222955%22%5D%7D%2C%7B%22path%22%3A%5B%224746351027560031610%22%2C%228546966156846447196%22%5D%7D%2C%7B%22path%22%3A%5B%224746351027560031610%22%2C%2211642278469773222955%22%5D%7D%2C%7B%22path%22%3A%5B%2211642278469773222955%22%2C%228546966156846447196%22%5D%7D%5D&filter=(ym%3As%3AtrafficSource%3D%3D%2527internal%2527)&dimensions=ym%3As%3ArefererHash%2Cym%3As%3AstartURLHash&confidence=%7B%22enabled%22%3Afalse%2C%22confidenceLevel%22%3A0.95%2C%22maxDeviation%22%3A0.05%7D) for a Yandex Metrica demo tag.

{% endcut %}

{% cut "Evaluating the effectiveness of a new client attraction tool" %}

A mobile provider has added a calculator for service rates on its website.

To evaluate the effectiveness of the new tool, we need to compare statistics for users who used the calculator with those who didn't (for example, over the first 14 days after introducing the tool). It will also be helpful to evaluate traffic sources. Segmentation can help us do this. Let's assume that the tag already has a [goal created](https://yandex.com.tr/support/metrica/en/general/goals.md) for interactions with the rate calculator (“Calculator”).

In the [Sources, Summary](https://yandex.com.tr/support/metrica/en/sources/sources-summary.md) report, we'll select sessions for new users who completed the “Calculator” goal:

1. Find the **Sessions in which** condition group and click ![](../_assets/plus.svg).
1. Select the condition: **History** → **New/returning user** → **New user**.
1. Click ![](../_assets/plus.svg).
1. Let's select the sessions where the “Calculator” goal was achieved: **Behavior** → **Conversions**, then select the goal you need from the list.

Then refine the data, leaving information about users who viewed the service rates pages with the calculator between March 1 and March 15. The rates pages are standardized on the site, and they all show the calculator. So the condition can specify the URL of the entire “tariff” directory by using the * symbol.

1. In the **for people with** condition group, click ![](../_assets/plus.svg).
1. Select the condition: **Behavior** → **View URL**. Enter the URL of the directory with the service rates.
1. Choose the time period for pageviews: click **For reporting period**, then **Choose period**.

![](../_assets/segment-url-new.png){.border-yes}

This gives you statistics on site users who used the rates calculator during a set time period in the past. Save the segment.

Now let's get average data for site users. Delete the **Goals reached** condition and save the segment with a different name. Now you can compare the two segments.

![](../_assets/segment-comparison-new.png){.border-yes}

{% endcut %}

{% cut "Excluding branded traffic from the report" %}

You can exclude data with a brand mention from the report. To do this, use segmentation and add a condition in the format `!@your_brand` for the Russian and English versions of the brand, where:

- ! at the beginning — negates the condition.
- @ at the beginning — matches a string (case-insensitive).

For example, for the company “Alice in Wonderland”, a regular expression may be `!@алиса в стране чудес` for the Russian name of the brand and `!@alice in wonderland` for the English name. Using this method, you can remove up to 20 keywords from the report. To exclude more than 20 phrases, create a regular expression with the following syntax `!~(brand|бренд.рф|brand.ru)`.

![](../_assets/brand-traffic-new.png =700x){.border-yes}

{% endcut %}

<!-- source: en/_includes/buttons/chat-button.md -->
[Chat with us](https://yandex.com.tr/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.tr/surveys/1706/?&iframe=1&lang=tr">
  </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.tr/r/dashboard?)
- [Add a tag](https://metrica.yandex.com.tr/add/)
- [Free tag setup](https://yandex.com.tr/promo/freeservice/metrica?utm_source=help_metrica_tr&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com.tr/metrika/)
- [Suggest your idea](https://yandex.com.tr/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 -->
