Yandex Metrica: direct connection
Note
For the Metrica Pro package, real-time data streaming is available. For more information, see this guide
One of the Yandex Metrica tags that you have access to will be used as the data source. You can view a list of tags available to you at https://metrika.yandex.com/list
If no tags are available in your list, gain access to a tag or use the Yandex Metrica demo dashboard. It is automatically created when you create a DataLens instance.
To visualize and explore data, set up DataLens and follow the steps below:
Getting started
To get started with DataLens:
- Log in
to your Yandex account. If you do not have an account, create one. - Open the DataLens home page
. - Click Open DataLens.
- Confirm that you have read the Terms of use
and click Log in.
-
Log in
to your Yandex account. -
Open the DataLens home page
. -
Click Open DataLens.
-
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
orowner
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
Step 1. Create a connection and a standard dashboard
Warning
This step is available to users who have permission to any Yandex Metrica tag. If you do not have permission to a tag, deploy a dashboard from DataLens Marketplace
-
Go to the DataLens home page
. -
In the left-hand panel, select
Connections and click Create connection. -
Select Metrica.
-
Click Get token.
If this is your first connection to a Yandex Metrica tag, grant the necessary permissions to the service.
-
Select the tag from the drop-down list.
-
Select the accuracy
level from the drop-down list. -
Enable Automatically create a dashboard, charts, and a dataset on the connection.
-
Click Create connection.
When the connection is created, a folder containing the datasets, charts, and dashboard opens.
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.
-
Go to Dashboard with Yandex Metrica data.
Step 2. Edit the standard dashboard
Warning
If you do not have a Yandex Metrica tag and you skipped step 1, deploy a dashboard from DataLens Marketplace
You can change the standard dashboard however you want. For example, you can delete a chart you no longer need.
-
In the top-right corner of the dashboard, click Edit.
-
Delete the Page depth chart. To do this, click
in the top-right corner of the chart and select Delete. -
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. Drag the chart by clicking it. Resize the chart using the triangle in the bottom-right corner.
-
Remove the Percentage of visits by browser and Sessions, views, and users by browser charts.
-
In the top-right corner, click Save.
Step 3. Edit 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.
-
In the top-right corner of the Session by device type and OS chart, click
. -
Select Edit.
-
Select a different chart type: Pie chart.
-
In the top-right corner, click Save.
-
Close the chart editing tab and go back to the dashboard window.
-
Update the dashboard and make sure that the chart changed in the Technologies section.