Creating a Metrica connection

Note

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. Specify the connection settings:

    • 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 for a username other than your current Yandex account, follow these steps:

    1. Switch to an account that has access to Yandex Metrica.
    2. Use the link to get a token. If necessary, allow access to the application, then copy the token.
    3. Switch to an account that has access to DataLens.
    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, 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.