> For the complete documentation index, see [llms.txt](https://docs.bird.com/connectivity-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bird.com/connectivity-platform/add-the-omnichannel-widget-to-your-online-store/adding-the-messagebird-omnichannel-widget-to-a-shopify-store.md).

# Adding the MessageBird Omnichannel Widget to a Shopify store

In this guide, you’ll learn how to add the [Omnichannel Widget](https://inbox.messagebird.com/manager/omnichannel-widget) to a [Shopify](https://www.shopify.com/) store.&#x20;

**Prerequisites**

* Be the **manager** of your MessageBird [Inbox](https://inbox.messagebird.com/) account
* Be an **admin** for your Shopify store

**Enabling the Omnichannel Widget**&#x20;

1\. Log in at [dashboard.messagebird.com](https://dashboard.messagebird.com/en/user/index) and go to **Inbox** or go directly to [inbox.messagebird.com](https://inbox.messagebird.com/).

2\. Go to [Inbox settings](https://inbox.messagebird.com/manager/overview).

3\. Click on **Channels** and open **Omnichannel Widget**.

<figure><img src="/files/cy5lsQYtj3ZqWKmIYU2N" alt=""><figcaption></figcaption></figure>

4\. [Customize your widget](/connectivity-platform/customizing-the-omnichannel-widget.md) settings to make it match the style of your Shopify store (logo, colours, agent name).

5\. Under **Location** make sure to whitelist your store’s website address (e.g. <https://myshopname.myshopify.com/>) to signal Inbox — it should accept chat requests coming from your Shopify store.&#x20;

<figure><img src="/files/Bv9VesOG1MpOQnaCsxmN" alt=""><figcaption></figcaption></figure>

6\. Done? Awesome! Hit **Publish changes** and **activate the widget**. You can always come back and change the [Inbox settings](https://inbox.messagebird.com/manager/overview).

<figure><img src="/files/e3ECavFhRH175TTfrn9j" alt=""><figcaption></figcaption></figure>

7\. Now that we finished the configuration on the Inbox side, let’s copy the code snippet by clicking **Get code snippet**.

<figure><img src="/files/PtF89tajBuHuBSddVNgl" alt=""><figcaption></figcaption></figure>

&#x20;

**Attaching widget to your Shopify store**

Time to add the code by injecting it to all the pages via the master theme’s HTML body.

1\. Go to your Shopify store admin panel, **myshopname.myshopify.com/admin**

2\. Select **Online store** from the sidebar, and **Themes** from the submenu.

<figure><img src="/files/ELW3Re3G0twvp63ymQas" alt=""><figcaption></figcaption></figure>

3\. Choose **Customize** the current theme (or the one you want to add the widget to). This will open the theme editor.

<figure><img src="/files/TnT46mvnnNHMxjxktnvL" alt=""><figcaption></figcaption></figure>

4\. In the left-bottom corner, click **Theme actions** and select **Edit code** from the pop-up. This will open a new page with the code files of your store.

<figure><img src="/files/5BFNFq0zHXuBbaWAeZ54" alt=""><figcaption></figcaption></figure>

5\. Select the file called **theme.liquid**. If you do not have this, find the main file of your store — the one containing a **\<body>** tag.

<figure><img src="/files/38YLKJb9E9w65qNWcL9R" alt=""><figcaption></figcaption></figure>

6\. Scroll to the bottom of the page, and paste the widget’s code snippet before the closing **\</body>** tag — it should insert a single line starting with **\<script>** and ending with **\</script>**.

<figure><img src="/files/z8a8yN6T2DXorKiiNmRc" alt=""><figcaption></figcaption></figure>

7\. And that’s it! Save the changes, publish the new site version and the Omnichannel Chat Widget will be visible on your Shopify store.

<figure><img src="/files/BLEyyoVOgEf3on5IXfbZ" alt=""><figcaption></figcaption></figure>

\
\
\
\ <br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bird.com/connectivity-platform/add-the-omnichannel-widget-to-your-online-store/adding-the-messagebird-omnichannel-widget-to-a-shopify-store.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
