> For the complete documentation index, see [llms.txt](https://help.fluorescent.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.fluorescent.co/section-studio/smart-sections/audiences/shopify-market.md). Agents can also search and read this documentation through its [MCP server](https://help.fluorescent.co/~gitbook/mcp).

# Shopify market

{% hint style="warning" %}
This feature is only available on the [Ultimate plan](https://help.fluorescent.co/section-studio/get-started/choose-subscription-plan.md).
{% endhint %}

Use Shopify markets to define your audiences.

You can add and edit your markets through your Shopify admin. Go to **Settings > Markets**, then click ‘Add new market’. Use [Shopify's Markets help guide](https://help.shopify.com/en/manual/markets-new/manage) to learn more.

## Add Shopify markets rule

***

{% hint style="warning" %}
Before creating your first Customer segment or Shopify markets rule, you will need to [set up an API access key](#store-api-key).
{% endhint %}

{% hint style="info" %}

#### Steps

1. Go to **Audiences** page and click **Create new audience**.&#x20;
2. Enter a name for your audience. You can change the name later.
3. Select the **Shopify market** rule type.
4. Enter your [Store API key](#required-api-key).
5. Select 1 or more Shopify markets from the list.
6. Click **Save**.
   {% endhint %}

For the security of your store, the Customer segment rule requires a store API access token. Entering your API token authorizes our app to access information from your Customer segments in the Shopify admin.

### Set up Shopify admin API

***

{% columns %}
{% column %}
To generate an API access token, you need to create a **custom app** in your Shopify admin.

You do not need to be a developer or know about coding.&#x20;

You can follow the steps below to generate an access token that provides access to:

* **Customers >** `read_customers`&#x20;
* **Markets >** `read_markets`&#x20;
  {% endcolumn %}

{% column %}

<figure><img src="https://1258209387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwW8WoofsfSzp49h7DuLl%2Fuploads%2FpDDBskd5oXq5dHkDdDtF%2Fshopify-settings-apps-channels.png?alt=media&amp;token=7735d48c-d648-4a91-9b8c-3e120e176b3f" alt=""><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

{% hint style="info" %}

#### Steps

1. In your Shopify admin, click <i class="fa-gear">:gear:</i> **Settings**. \
   \* **Note** this is not "Settings" for the Section Studio app but for your Shopify store.
2. In the settings side panel, click **Apps** **and sales channels**.
3. Click **Develop apps**.
4. Click **Allow legacy custom app development**.
5. Click **Create an app** and enter an **App name**. For example: "Studio audiences"
6. Click **Create app**.
7. Select the **Configuration** tab. In  **Admin API integration**, click **Configure**.
8. Select the following **Admin API access scopes**:\
   \* **Customers >**  `read_customers` \
   \* **Markets >**  `read_markets` \
   ![](https://1258209387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwW8WoofsfSzp49h7DuLl%2Fuploads%2F0KQs8AOQaPi439QByUfN%2Fstore-api-customers.png?alt=media\&token=35325e21-430f-4126-b7bd-fd37895553e3)\
   ![](https://1258209387-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwW8WoofsfSzp49h7DuLl%2Fuploads%2FpvZ8lJr8DNeZTBnSEIhQ%2Fstore-api-markets.png?alt=media\&token=58c70ffc-cbac-445f-8a25-c7e02a69abf5)
9. Click **Save.**
10. Click **Install app** and confirm the installation.
11. In the **Admin API access token** section, click **Reveal token once**. Copy and save your access token in a secure place.
    {% endhint %}

{% hint style="warning" %}
The Admin API access token is shown only once for security reasons. Make sure to copy and store it securely as you won't be able to see the full token again - only the last 4 digits will be visible on future visits.
{% endhint %}

### Apply API token

***

Once you have configured your API access token, you can apply it when creating a Shopify markets or Customer segment rule. You will only need to enter the access token once and it will apply to all Shopify markets and Customer segment rules.
