> For the complete documentation index, see [llms.txt](https://docs.letsmetrix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.letsmetrix.com/get-started/connect-shopify-api.md).

# Connect Shopify API

To unlock deeper analytics on your app's performance, you'll need to connect your Shopify Partner account to Letsmetrix.

This process involves three main parts: getting your Partner API, finding the App GID for each of your apps, and then connecting them to our system.

#### Step 1: Open Connect Shopify API window from Letsmetrix

Go to <https://letsmetrix.com/>, and sign in. Click on your account name in the top right corner, and from the dropdown menu, select **My Partners**, and then click **Sync Partner Data** button.<br>

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FNVq0thasZdKUMfWFHGxq%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.11.24.png?alt=media&amp;token=41f25aac-55d9-423e-95dc-02839922e964" alt=""><figcaption></figcaption></figure>

This will open the **Add App ID from partner** window. Then, click the "+" button.&#x20;

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FxWQymsXl5biykI84N6ts%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-19%20lu%CC%81c%2014.46.31.png?alt=media&amp;token=6104598b-f657-4837-8259-5dc485293af0" alt="" width="375"><figcaption></figcaption></figure>

Now the **Connect Shopify API** window is open.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FlY22Ucy0rfqNpEDLnZb7%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-19%20lu%CC%81c%2014.43.48.png?alt=media&amp;token=2e99356a-19e8-46e7-a6a5-dc1100711bcb" alt="" width="350"><figcaption></figcaption></figure>

#### Step 2: Get Your Partner ID

You can find your Partner ID using one of two methods:&#x20;

* From the URL: After logging into your [Shopify Partner Dashboard](https://www.shopify.com/partners), your unique 7-digit Partner ID is visible in the URL search bar. For example: <mark style="color:blue;"><https://partners.shopify.com/1234567/></mark>.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FkrkCwLSUtEW5yhgdBmKs%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.13.44.png?alt=media&amp;token=f381bd00-d160-48ad-9698-ab9115085593" alt="" width="375"><figcaption></figcaption></figure>

* From Settings: Navigate to the **Settings** page in your Partner Dashboard and find it in the **Account information** section.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FlYfZidXvaYAcbTluugsh%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.17.54.png?alt=media&amp;token=3b87b6fb-fb92-4609-a5d7-329efa63267d" alt="" width="563"><figcaption></figcaption></figure>

#### Step 3: Get Your API Key

1. From your Partner Dashboard, go to the **Settings** page and find the **Partner API clients** section. Click **Manage Partner API** clients.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2F5mHvtRcDy2WDbuldXNGE%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.19.34.png?alt=media&amp;token=d3c67257-1ab3-408e-bf3e-b9604ff3f647" alt="" width="563"><figcaption></figcaption></figure>

2. If you don't have an API client yet, click **Create API client**.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FpfvR88c1DZLoB5mzz8HE%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.21.59.png?alt=media&amp;token=65a916cb-6ccc-4b2e-846c-af0f1005fca6" alt="" width="563"><figcaption></figcaption></figure>

Grant the following permissions to allow Letsmetrix to sync your data:

* View financials
* Manage apps
* Manage themes

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FkTidtj4ygDcPgp1mKDDb%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.36.36.png?alt=media&amp;token=d8605969-3ab8-4554-bd38-1f60c912b25c" alt="" width="563"><figcaption></figcaption></figure>

Click **Save** on the top right corner to create the API client.

3. After the API client is created, you will find the **Access token** in the **Credentials** section. Click the symbol to copy this token, as it will serve as your API key.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2F1rqcJamgquHjBfbP3U1P%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.39.07.png?alt=media&amp;token=2938bbce-a4f0-4cfe-b686-758fff9cd6cf" alt="" width="563"><figcaption></figcaption></figure>

#### Step 4: Paste Partner ID and API Key in Letsmetrix&#x20;

Return to the Letsmetrix window you opened in Step 1. Paste the **Partner ID** and **API Key** (Access Token) into the corresponding fields and click **Connect Shopify API**.&#x20;

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2F1NcwOEdHZX0Ynd1kJi8F%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-18%20lu%CC%81c%2011.41.41.png?alt=media&amp;token=a315bbe1-3f88-4c45-9391-27f7c6cde7dd" alt="" width="375"><figcaption></figcaption></figure>

Your Shopify Partner account is now connected. Next, add the App GID for each app you want to track.

#### Step 5: Get Your App GID

1. Return to the **Add App ID from partner** window after you have connected Shopify API.
2. From your Partner Dashboard, navigate to the **App distribution** section in the left-hand menu. Click **All apps**. From the list, find and click on the specific app you wish to connect.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2Fvbh73BFAaWfJdFbAcAxV%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-19%20lu%CC%81c%2015.19.58.png?alt=media&amp;token=48a1d765-4c7b-4089-984d-81d08937f397" alt=""><figcaption></figcaption></figure>

3. Look at the URL in your browser's address bar. The App GID is the set of numbers immediately following /apps/:

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2FDofuDzDMfKo6BT8Q6ltM%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-19%20lu%CC%81c%2015.09.41.png?alt=media&amp;token=6bab5120-694e-4b1b-ba15-d8f3f4f260ec" alt="" width="375"><figcaption></figcaption></figure>

For example, in the URL <mark style="color:blue;"><https://partners.shopify.com/1234567/apps/7891011/overview></mark>, the App GID is 7891011.

#### Step 6: Fill App GID in Letsmetrix

Return to the Letsmetrix window you opened in Step 1 and paste the App GID you found in the previous section. Click **Add**.

<figure><img src="https://3107817457-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8KaEyTr3mMTLCU7QQyAU%2Fuploads%2Fw64Xg116tmzDuUoPmB3O%2FA%CC%89nh%20ma%CC%80n%20hi%CC%80nh%202025-12-19%20lu%CC%81c%2015.51.48.png?alt=media&amp;token=13cc1189-b3a5-42bc-b288-cac81949beba" alt="" width="375"><figcaption></figcaption></figure>

After you add the app, the partner data will be synced and appear in your Letsmetrix dashboards.
