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:
-
Go to the workbook page or create a new one.
-
In the top-right corner, click Create → Connection.
-
Select Metrica as the connection type.
-
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:
- Switch to an account that has access to Yandex Metrica.
- Use the link to get a token. If necessary, allow access to the application, then copy the token.
- Switch to an account that has access to DataLens.
- Create a new connection to Yandex Metrica and paste the obtained token from the clipboard to the OAuth token field.
-
Click Create connection.
-
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.