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

# How to Add the Upstack Data Custom Pixel in Shopify

> Add the Upstack Data custom pixel in Shopify Customer events: copy the pixel code from Upstack, add a custom pixel, paste the code, save and connect.

Shopify setup has two steps. This page is step 2. Step 1 is [How to Ensure Upstack Data Theme App Extension is Enabled](https://docs.upstackdata.com/guides/shopify/how-to-ensure-upstack-data-theme-app-extension-is-enabled.md).

## How do I add the Upstack Data custom pixel in Shopify?

**1. Copy the pixel code from Upstack**

1. Sign in to the [Upstack dashboard](https://app.upstackdata.com).
2. In the sidebar, click **Onboarding**.
3. Next to **Install tracking pixel**, click **Set up**.
4. If the drawer opens on **Storefront tracking**, click **I've turned it on** to move to **Checkout tracking**.
5. Click **Copy code**.

**2. Open Customer events in Shopify Admin**

In your [Shopify Admin](https://admin.shopify.com), click **Settings → Customer events**. You can also click **Open Customer events** in the Upstack drawer.

![Shopify Admin Customer events page with Add custom pixel option](https://mintcdn.com/upstackdata-afbed50d/T0pjM_griH4tgZ3x/images/intercom/shopify-setup-customer-events-add-pixel.png?fit=max\&auto=format\&n=T0pjM_griH4tgZ3x\&q=85\&s=cd33d8b3501f410bd148b9f985570be6)

**3. Add the custom pixel**

1. Click **Add custom pixel**.
2. Set the pixel name to **Upstack Data Pixel**.
3. Click **Add pixel**.

![Naming the custom pixel in Shopify Admin](https://mintcdn.com/upstackdata-afbed50d/VkKgD3LCNMawEk9D/images/image-1.png?fit=max\&auto=format\&n=VkKgD3LCNMawEk9D\&q=85\&s=018d5f9992319f927bf4304b0ec48fbb)

**4. Set the privacy settings**

Set **Permission** and **Data sale** on the pixel page. One common setup: [How to Set Up Upstack Custom Pixel Privacy Settings](https://docs.upstackdata.com/guides/shopify/how-to-setup-upstack-custom-pixel-privacy-settings.md).

**5. Paste the code and save**

1. Paste the pixel code into the code box.
2. Click **Save**.
3. Click **Connect**.

   ![Paste pixel code, save, and connect in Shopify Customer events](https://mintcdn.com/upstackdata-afbed50d/T0pjM_griH4tgZ3x/images/intercom/shopify-setup-paste-pixel-code.png?fit=max\&auto=format\&n=T0pjM_griH4tgZ3x\&q=85\&s=9b1e2b73d727b73dc8cf7472222f215a)

**6. Confirm the connection**

In the popup, click **Connect**.

![Connect button in the Shopify custom pixel confirmation modal](https://mintcdn.com/upstackdata-afbed50d/r7kPU9Z0Ocj96UFU/images/intercom/c8dfdf99786492c8.jpeg?fit=max\&auto=format\&n=r7kPU9Z0Ocj96UFU\&q=85\&s=409ee728d851a78db02064319feeaa13)

## How do I check the custom pixel is connected?

1. In Shopify Admin, click **Settings → Customer events**.
2. Check that **Upstack Data Pixel** shows **Connected**. Older installs show **UpstackData**.
3. In the Upstack drawer, click **I've connected the pixel**.

![Customer events list showing the Upstack Data custom pixel](https://mintcdn.com/upstackdata-afbed50d/r7kPU9Z0Ocj96UFU/images/intercom/72f89cd2e8436edb.png?fit=max\&auto=format\&n=r7kPU9Z0Ocj96UFU\&q=85\&s=17f96957312b1f6b49d93f56ecdb7512)

To check events arrive, see [Complete Guide to Troubleshooting Your Upstack Data Tracking Pixel](https://docs.upstackdata.com/troubleshooting/complete-guide-to-troubleshooting-your-upstack-data-tracking-pixel.md).

## Do I still need the theme app extension if the custom pixel is connected?

Yes. The theme app extension tracks storefront browsing, and the custom pixel tracks cart and checkout. Turn on both: [How to Ensure Upstack Data Theme App Extension is Enabled](https://docs.upstackdata.com/guides/shopify/how-to-ensure-upstack-data-theme-app-extension-is-enabled.md).

## Related Articles

> [card] [How to Ensure Upstack Data Theme App Extension is Enabled](https://docs.upstackdata.com/guides/shopify/how-to-ensure-upstack-data-theme-app-extension-is-enabled.md)

> [card] [How to Set Up Upstack Custom Pixel Privacy Settings](https://docs.upstackdata.com/guides/shopify/how-to-setup-upstack-custom-pixel-privacy-settings.md)

> [card] [Complete How-To Guide for Setting Up the Upstack Data App in Shopify](https://docs.upstackdata.com/guides/shopify/complete-how-to-guide-for-setting-up-the-upstack-data-app-in-shopify.md)


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