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

# Install on Wix

> Add the CustomerGPT chat bubble to a Wix site.

Before you start, copy the **HTML Script** code from **Customizer → Get Embed Code**. See [Add the chatbot to your website](https://customergpt.ai/docs/install/add-to-your-website.md).

> [!NOTE]
>
> Wix runs custom code only on a published site with a connected domain, and connecting a domain needs a Wix Premium plan.

## Add it to every page

1. In your Wix dashboard, click **Settings** in the sidebar.

2. Scroll to **Development & integrations** and click **Custom code**.

   ![Wix dashboard Settings with Custom code highlighted under Development & integrations](https://mintcdn.com/customer-gpt/aPHg37LBhCvk-OBK/images/install/wix/wix-settings-custom-code.webp?fit=max\&auto=format\&n=aPHg37LBhCvk-OBK\&q=85\&s=0bb0ed98b6e36372dae2c896f49a0f36)

3. Click **+ Add Custom Code**.

4. Paste the embed code into **Paste the code snippet here**, and enter a **Name**, for example `CustomerGPT chat`.

   ![The Wix Add Custom Code dialog with the CustomerGPT script pasted and the name CustomerGPT chat](https://mintcdn.com/customer-gpt/aPHg37LBhCvk-OBK/images/install/wix/wix-add-code-paste.webp?fit=max\&auto=format\&n=aPHg37LBhCvk-OBK\&q=85\&s=e5a47c3b88f61c8f396f51a02e0ce5b0)

5. Under **Add Code to Pages**, keep **All pages** and **Load code once**.

6. Under **Place Code in**, select **Body - end**.

7. Click **Apply**.

   ![The Wix Add Custom Code dialog with All pages, Load code once and Body - end selected, and the Apply button](https://mintcdn.com/customer-gpt/aPHg37LBhCvk-OBK/images/install/wix/wix-add-code-placement.webp?fit=max\&auto=format\&n=aPHg37LBhCvk-OBK\&q=85\&s=9ddd893c93b30038db935d146b4bbffc)

The widget loads only on your chatbot's domain, so check the published site on your connected domain, not the Wix Editor or its preview. The bubble appears in the bottom-right corner.

## Add it to one page only

In step 5, choose **Choose specific pages** instead of **All pages**, and pick the page.

## Your connected domain

The widget loads only on the domain you entered as **Website Domain Link**. Enter your Wix site's connected domain there, the address your visitors see. See [Where the widget is allowed to load](https://customergpt.ai/docs/install/add-to-your-website.md#where-the-widget-is-allowed-to-load).

Wix keeps custom code per domain. If you connect a different domain to your site, Wix deletes your code snippets: add the embed code again, and change the chatbot's domain to the new one.

## Train the chatbot on your Wix content

Crawl your site from **Knowledge Base**, as described in [Add your website](https://customergpt.ai/docs/knowledge/add-your-website.md). Wix publishes a sitemap index at `/sitemap.xml`, and with the CLI you can train on the pages it lists, including those in the sitemaps it points to:

```bash theme={null}
customergpt knowledge sitemap add https://acme.com/sitemap.xml --chatbot BOT_ID --max-pages 20 --yes --wait
```


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