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

# Shopify Integration

> Integrate Support Unicorn with Shopify

## Video Walkthrough

<iframe width="560" height="315" src="https://www.youtube.com/embed/CpF72bJtTCo" title="Shopify Integration Walkthrough" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

## How to Add the Widget Script

### Option 1: Edit Theme Code

1. Go to **Online Store > Themes**.

2. Click the **"..."** (Actions) button on your active theme, then select **Edit Code**.

3. Open the `theme.liquid` file.

4. Copy your widget script from your agent's **Channels** page at [supportunicorn.com](https://supportunicorn.com) and paste it just before the closing `</body>` tag.

5. Click **Save**.

### Option 2: Custom Pixel (for Tracking Scripts)

For tracking and analytics scripts, Shopify now recommends using **Custom Pixels** for better privacy compliance:

1. Go to **Settings > Customer Events**.
2. Click **Add custom pixel**.
3. Name it and paste your script code.

<Note>
  The Custom Pixel approach is primarily for tracking scripts. For the live chat widget, use the theme code method above.
</Note>

## Next Steps

<Card title="Widget Configuration" icon="settings" href="/widget/configuration">
  Customize widget appearance and behavior
</Card>
