---
metadata:
  - name: generator
    content: Diplodoc Platform v5.63.0
alternate:
  - en/operations/connection/create-appmetrica
  - ru/operations/connection/create-appmetrica
  - href: en/operations/connection/create-appmetrica.md
    type: text/markdown
    title: Markdown version
csp:
  - script-src:
      - https://mc.yandex.ru
    img-src:
      - https://mc.yandex.ru
    connect-src:
      - https://mc.yandex.ru
      - wss://mc.yandex.ru
    child-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-src:
      - 'blob:'
      - https://mc.yandex.ru
    frame-ancestors:
      - 'blob:'
      - https://mc.yandex.ru
canonical: en/operations/connection/create-appmetrica.html
title: How to create an AppMetrica connection in DataLens On-premises
description: Follow this guide to create an AppMetrica connection in DataLens On-premises.
vcsPath: en/operations/connection/create-appmetrica.md
---

# Creating an AppMetrica connection in DataLens On-premises

To create an AppMetrica connection:



1. Go to the [workbook](../../workbooks-collections/index.md) page or create a new one.
1. In the top-right corner, click **Create** → **Connection**.
1. Select **AppMetrica** as the connection type.
1. Configure the connection as follows:
   * **OAuth token**: Specify the OAuth token to access Yandex Metrica data.
   * **App**: Specify the application ID.

   <!-- source: en/_includes/datalens/datalens-change-account-note.md -->
   {% note info %}

   If you want to get access for a username other than your current Yandex account or there is no relevant tag in the list, see [Getting an OAuth token](#get-oauth-token).

   You cannot connect multiple tag from different accounts at the same time.

   {% endnote %}
   <!-- endsource: en/_includes/datalens/datalens-change-account-note.md -->

1. Click **Create connection**.
1. Enter a name for the connection and click **Create**.

<!-- source: en/_includes/datalens/datalens-appmetrica-note.md -->
{% note info %}

* By default, AppMetrica data is exported for the last 60 days. If you add a filter by date to the chart, the AppMetrica filter will be reset. We recommend adding a filter by date as an offset relative to the current date.
* On the AppMetrica side, there is a quota of three concurrent requests per API key.

{% endnote %}
<!-- endsource: en/_includes/datalens/datalens-appmetrica-note.md -->

For datasets based on AppMetrica connections, the following groups of metrics are available:

- Installations
- Audience
- Client events
- Push campaigns
- Audience + social demographics 


