CompanyJobsFor developersFor advertisersEvents
Log in
Menu
Main
Training & Certification
Online Course: Yandex.Metrica: basics
Lesson 3: How Yandex.Metrica works
 

Lesson 3: How Yandex.Metrica works

←Previous lesson
All lessons
Next lesson→
Lesson contents:
Step 1: Collecting data
Step 2: Building reports
Questions

In the previous lesson, you learned about three basic concepts in web analytics: pageviews, sessions, and users. Now let’s look at how Yandex.Metrica collects and processes data about sessions and builds reports. Understanding the underlying principles of Yandex.Metrica will give you the confidence to optimize how you use it.

Let’s see what happens between the user’s click on the link and session display in Yandex.Metrica reports.

Step 1: Collecting data

First of all, the user lands on your website from a search engine, link on another site, ad banner, or some other way. The HTML code of your website page loads into the user’s browser at this point. If Yandex.Metrica is installed on the website, the code of the Yandex.Metrica tag is embedded in the webpage code. This code is going to send data about user actions to Yandex.Metrica servers. The first thing sent is a page load notification. It contains lots of additional parameters: the user’s source page address (this tells Yandex.Metrica where the user came from), the name and version of their browser and operating system, screen resolution, and other data.

But that’s not all the Yandex.Metrica code does. During pageview, it sends more data: if in 15 seconds the user doesn’t close the page or move to another page, the code reports that the pageview is still in progress. Moreover, the code reports any target actions performed by the user, like placing an order. The Yandex.Metrica code can also report page scrolls and all mouse movements on the page.

All the events contain a unique user ID (i.e., their browser instance). This helps Yandex.Metrica collect the chains of events from a user and combine them into sessions. When all the session data is collected, Yandex.Metrica saves it in a dedicated ClickHouse database. The database uses sessions and their data as the main data units.

Step 2: Building reports

When you open Yandex.Metrica and select a report, the data for the report is retrieved from the ClickHouse database. To begin with, Yandex.Metrica selects only the website sessions that occurred in the reporting period. Then you can filter the sessions based on criteria: for example, you can limit your analysis to users who landed from social media.

Focusing your analysis on some part of your website audience is called segmentation, and we’ll look at this in detail in the next course.

Then the selected visits are grouped by your parameter: for example, by the source address. Finally, your focus indicators (metrics) are calculated for each group, for example: session count, unique users count, or average pageview time. The reports can even show user sessions from a few minutes ago.

The resulting data is output to a Yandex.Metrica report table. Each table row corresponds to one session group. For each group, preset metrics are shown. You can use various types of charts to display the table data and see how any metric changes over time.

Questions
Where does Yandex.Metrica get your website’s session statistics from?
Correct!
No, that’s incorrect. Correct answer: Yandex.Metrica gets statistics from the user browsers.
The data you see in reports:
Correct!
No, that’s incorrect. The data you see in reports is calculated when you build the report based on the session data stored in Yandex.Metrica
←Previous lesson
All lessons
Next lesson→

Subscribe to the Yandex Ad Tech Newsletter

 Incorrect email address
 
Conditions
I hereby agree to receive advertising messages from LLC “YANDEX”, its affiliates or any other entities / persons acting on behalf of LLC “YANDEX”, in accordance with Part 1, Article 18 of the Federal Law “On Advertising” (SRN: 1027700229193) and to decline at any time receiving such messages by using the functionality of the service, as part of which or in connection with which I have received these advertising messages.
Thank you!

Please check your inbox.

Services

Yandex.Direct
Yandex.Market
Yandex.Metrica
AppMetrica
Yandex.Webmaster
Yandex.Audience
Yandex.Directory
Yandex.Tracker

Yandex advertising products

Search advertising
Yandex Advertising Network
Mobile Advertising
Display Advertising
Video advertising
Retargeting
Yandex.Direct automatic strategies
Audio advertising
Location-based advertising
Other Yandex services

Technologies

Direct API
Metrica API
AppMetrica
Market API
Money payment processing

Training & Certification

Training & Certification
Online Course
Certification of specialists

For Partners

For Agencies
Yandex partner status
Ad Network
ADFOX

Contacts

Yandex support service
Offices
Local advertising agencies
Get professional help with setting up Yandex.Direct

Legal Documents

Privacy Policy
Interest-based advertising on Yandex.Direct

Requirements

Technical Requirements
General Terms and Conditions
Regulations for Placing Advertisements

Advertising rates

Price List
© 2004–2025  YANDEX