Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Tutorials
    • All tutorials
        • Yandex Metrica: direct connection
        • Yandex Metrica: data export, post-processing, and visualization
        • AppMetrica: direct connection
        • AppMetrica: data export, post-processing, and visualization
        • Bitrix24: direct connection
        • Tracker: data export and visualization
        • Analyzing Object Storage logs in DataLens
        • Yandex Music podcasts: Statistics
        • Visualizing Query data
        • Visualizing Monitoring data
        • Visualizing YTsaurus CHYT data

In this article:

  • Getting started
  • Create a workbook
  • Create a connection and a standard dashboard
  • Edit the standard dashboard
  • Edit the chart
  1. Data analysis and visualization
  2. DataLens
  3. Service analytics
  4. Yandex Metrica: direct connection

Yandex Metrica: direct connection

Written by
Yandex Cloud
Updated at March 6, 2025
  • Getting started
  • Create a workbook
  • Create a connection and a standard dashboard
  • Edit the standard dashboard
  • Edit the chart

Note

For the Metrica Pro package, real-time data streaming is available. For more information, see this guide.

This tutorial demonstrates how to use Yandex DataLens with Yandex Metrica in direct access mode.

As the data source, use a Yandex Metrica tag you have access to. View the list of available tags here.

image

If there are no available tags in the list, use the Yandex Metrica demo dashboard.

Note

In this tutorial all objects will be created and stored in a workbook. If using legacy folder navigation, create an individual directory to work in.

Create a directory
  1. Go to the DataLens home page.
  2. In the left-hand panel, select All objects or Personal directory.
  3. In the top-right corner, click Create → Directory.
  4. Enter a name for the directory.
  5. Click Create.

To visualize and explore data, set up DataLens and follow the steps below:

  1. Create a workbook.
  2. Create a connection and standard dashboard.
  3. Edit the standard dashboard.
  4. Edit the chart.

Getting startedGetting started

To get started with DataLens:

New user
I am already using Yandex Cloud
  1. Log in to your Yandex account. If you do not have an account, create one.
  2. Open the DataLens home page.
  3. Click Open DataLens.
  4. Confirm that you have read the Terms of use and click Log in.
  1. Log in to your Yandex account.

  2. Open the DataLens home page.

  3. Click Open DataLens.

  4. Select one of the options:

    • If you already have an organization, select it from the drop-down menu in the Organizations tab and click DataLens.

      Note

      To activate a DataLens instance, the user must have the admin or owner role. For more information about roles, see Access management in Yandex Cloud Organization.

    • If you have a cloud but no organization, click Add new DataLens. In the window that opens, enter your organization's name and description and click Create organization and DataLens. For more information about working with organizations, see Getting started with organizations.

If you have any technical questions about the service, contact Yandex Cloud support. To ask for advice, discuss the solution to your problem or best practices of the service, write to the DataLens chat in Telegram.

Create a workbookCreate a workbook

  1. Go to the DataLens home page.
  2. In the left-hand panel, select Collections and workbooks.
  3. In the top-right corner, click Create → Create workbook.
  4. Enter a name for the workbook: Metrica Live Demo.
  5. Click Create.

Create a connection and a standard dashboardCreate a connection and a standard dashboard

Warning

This step describes actions for users with permissions for any Yandex Metrics tag. If you do not have permissions for a tag, deploy a dashboard from DataLens Marketplace and proceed to Edit the standard dashboard.

  1. In the top-right corner of the workbook, click Create → Connection.

  2. Under Files and services, select the Yandex Metrica connection.

  3. Click Get token.

    If this is your first connection to a Yandex Metrica tag, grant the necessary permissions to the service.

  4. Select the tag from the drop-down list.

  5. Select the accuracy level from the drop-down list.

  6. Enable Automatically create a dashboard, charts, and a dataset on the connection.

  7. Click Create connection.

    image

    1. Enter the connection name:Demo Connection to Metrica Live.
    2. Click Create.

    When the connection is created, a workbook or folder containing the datasets, charts, and dashboard will open.

    image

    Note

    By default, Metrica data is exported for the last 60 days. If you add a filter by date to the chart, the Metrica filter will be reset. We recommend adding a filter by date as an offset relative to the current date.

Edit the standard dashboardEdit the standard dashboard

Warning

If you skipped the Create a connection and a standard dashboard step, deploy the dashboard from DataLens Marketplace.

You can customize the standard dashboard by deleting, moving, or editing charts.

  1. Open Metrica Live Demo Dashboard.

  2. In the top-right corner of the dashboard, click Edit.

  3. Delete the Page depth chart. Click in the top-right corner of the chart and select Delete.

    image

  4. Position the Bounce rate and Time on site charts so that they fill in the empty space left after deleting the chart in the previous step:

    image

  5. Remove the Percentage of visits by browser and Sessions, views, and users by browser charts.

  6. In the top-right corner of the dashboard, click Save.

Edit the chartEdit the chart

You can edit any chart on the dashboard. For example, change the visualization type for the Sessions by device type and OS chart from the Technologies section.

  1. In the top right corner of the Session by device type and OS chart, click .

  2. Select Edit.

    image

  3. Select a different chart type: Pie chart.

    image

  4. In the top-right corner, click Save.

  5. Close the chart editing page and go back to the dashboard window.

  6. Update the dashboard and make sure that the chart changed in the Technologies section.

    image

Was the article helpful?

Previous
Geocoding with the Yandex Maps API for data visualization in DataLens
Next
Yandex Metrica: data export, post-processing, and visualization
Yandex project
© 2025 Yandex.Cloud LLC