> ## Documentation Index
> Fetch the complete documentation index at: https://docs.replo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Alia

> Show your Alia popups and embedded forms on Replo pages, and query your Alia campaign data in chat and Insights dashboards.

Alia is a popup and sign-up form app that many Shopify stores use to grow their email and SMS lists. By default, Alia's Shopify app only adds its popup code to your Shopify theme, but you can connect Alia to Replo to show the same popups and embedded forms on your Replo site and open a popup from any button. You can also query your Alia campaign data, such as popup views, sign-ups, opt-ins and attributed sales, in chat and on Insights dashboards.

## Show Alia popups on your site

**1. Add the Alia script**

In Replo, open your site's **Settings** → **Scripts & Pixels**, choose **Alia**, and enter your store's `.myshopify.com` domain.

**2. Turn on consent in Alia**

In Alia, go to **Settings** → **Tracking**, check **Require consent to track visitors**, and choose **Custom code** as how consent is indicated. Popups still show to every visitor, and your Replo site tells Alia when a visitor accepts your cookie banner. This setting applies to your whole store, including your Shopify theme.

**3. Publish**

Publish your site. Your live campaigns now appear on your Replo pages with the targeting you set in Alia.

## Create an API key

**1. Open API keys**

In Alia, go to **Settings** → **API keys** and create a key.

**2. Choose scopes**

Give the key the **read:merchant**, **read:events** and **read:segments** scopes.

**3. Copy the key**

Copy the key when it's shown.

## Connect Alia

**1. Open the Integrations app**

In Replo, open [Integrations](https://docs.replo.app/apps/integrations.md) and choose **Alia**.

**2. Enter your API key**

Select **Connect** and paste your **API Key**.

## Open a popup from a button

Mention a campaign with `@` or name it, and Replo wires it up. For example:

```text theme={null}
Open my welcome campaign when someone clicks the hero button.
```

Build in Replo

> [!NOTE]
>
> A campaign only opens if it's live in Alia. To keep it from also opening on a timer, remove its triggers in Alia.

## Add an embedded form

Create an **Embedded Form** campaign in Alia, then ask Replo to place it:

```text theme={null}
Add my Alia embedded sign-up form to the footer of every page.
```

Build in Replo

## Ask about performance

```text theme={null}
How did my Alia popups do over the last 14 days? Show sign-ups, popup views and attributed sales by campaign.
```

Build in Replo

You can also add Alia popup views, sign-ups and attributed sales to an Insights dashboard.

> [!NOTE]
>
> Alia limits how much data its API returns per minute based on your Alia plan, and longer date ranges use more of that limit. If Replo says Alia's limit was reached, try a shorter range or wait a few minutes. Alia's API can't edit campaigns, so make campaign changes in Alia.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.