Creating a Metrica connection in DataLens On-premises

Note

For advanced analysis of raw Yandex Metrica data and access to the full range of DataLens analytical functions, we recommend using data export to ClickHouse® available as part of the Metrica Pro package.

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

To create a Yandex Metrica connection:

  1. Go to the workbook page or create a new one.

  2. In the top-right corner, click CreateConnection.

  3. Select Metrica as the connection type.

  4. Configure the connection as follows:

    • OAuth token: Specify the OAuth token to access Yandex Metrica data.
    • App: Specify the application ID.

    Getting an OAuth token

    You can specify an OAuth token of any Yandex account.

    To get access to a Yandex Metrica tag of a username other than your current Yandex account, follow these steps:

    1. Switch to an account that has access to Yandex Metrica.
    2. Get a token here. If required, allow access to the application, then copy the token.
    3. Switch to an account that has access to DataLens On-premises.
    4. Create a new connection to Yandex Metrica and paste the obtained token from the clipboard to the OAuth token field.
  5. Click Create connection.

  6. Enter a name for the connection and click Create.

Note

  • By default, Yandex Metrica data is exported for the last 60 days. If you add a filter by date to the chart, the Yandex Metrica filter will be reset. We recommend adding a filter by date as an offset relative to the current date.
  • On the Metrica side, there is a quota of three concurrent requests per user (user_login).