# AppGallery Connect Stats

To integrate AppGallery, please do the following.

## AppGallery set up

1. Sign in to [AppGallery Connect](https://developer.huawei.com/consumer/en/service/josp/agc/index.html) and click **Users and Permissions**.
2. Go to API key -> Connect API and click `Create`.
3. For **Name**, enter a custom client name. \
   Set **Project** to N/A. \
   Select **Operations**, **Development**, and **Finance** roles, and click `OK`.

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2F180ItB8b33rRFtITnL10%2Fimage.png?alt=media\&token=f19d6496-7d7e-476b-bb61-2553540edfb8)

4. After the Client is successfully created, copy the values of Client ID and Key (Client Secret) from the client information list.

![](https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FjXIwl0M7u9vdKNARv9fk%2Fimage.png?alt=media\&token=da6fd90e-94ad-46f1-ad71-aa0e81862be2)

5. Also open Project settings > General information > App information and copy the App ID.

## Add Huawei AppGallery connection in devtodev

1. Open [devtodev analytics](https://analytics.devtodev.com/).
2. Select your project.
3. Go to Settings -> 3rd party sources -> Huawei AppGallery.&#x20;
4. Click on the `Integrate` button, then on the`Edit` icon and insert App ID, Client ID and Client Secret (Key) obtained before.&#x20;

<figure><img src="https://2105883905-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnGcP_ZeRJ1ipj9O8dF%2Fuploads%2FmOrgNDi80j9VMP4pjmK7%2Fimage.png?alt=media&#x26;token=85ec39ae-0a92-4eaa-833e-f0af055f0d39" alt=""><figcaption></figcaption></figure>

5. Click `Save` and click on the tumbler if it is not turned on yet.
