> ## 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 Set Up a Health & Wellness Pixel for Meta

> Set up Upstack for a Meta-flagged Health & Wellness store: alias domain, new dataset, Restricted Category Mode and domain alias in Upstack, then moving campaigns over.

This guide sets up Upstack Data for a store that Meta has flagged or restricted under its Health & Wellness category. Upstack sends events to a new Meta dataset from its servers only, removes product details from them, and reports them from a separate alias domain instead of your store's domain.

[How Upstack Data Solves Health & Wellness Restrictions →](https://docs.upstackdata.com/guides/health-wellness/how-upstack-solves-health-wellness-restrictions.md)

> [!TIP]
>
> **Quick Summary**
>
> * Register an alias domain and publish a one-page splash page on it.
> * In Meta Events Manager, create a new dataset, generate its Conversions API access token, and allow only the alias domain.
> * Turn off every other source that sends events to Meta.
> * In Upstack, add the Meta destination for the new dataset with **Tracking Method** set to **Server**. Then, on the **Category Mode** tab, turn on **Restricted Category Mode** and the **Domain Alias**.
> * Check that events arrive from the alias domain, wait 24 hours, then move your campaigns to the new dataset.

## When to use Restricted Category Mode

Use it when:

* Meta has flagged your domain or categorized it as Health & Wellness
* Meta has rejected your purchase event
* You sell supplements, CBD, wellness products, or anything else Meta restricts

The standard Meta setup is enough when your brand is throttled but not categorized as Health & Wellness, or sells products next to that category but not in it. You can turn Restricted Category Mode on or off at any time on the Meta destination's **Category Mode** tab.

## Prerequisites

* Upstack installed on your Shopify store. See [How to Download and Install Upstack Data App in Shopify](https://docs.upstackdata.com/guides/shopify/how-to-download-and-install-upstack-data-app-in-shopify.md).
* Admin access to your [Meta Business Manager](https://business.facebook.com).
* A domain registrar account and somewhere to host a single page.

> [!NOTE]
>
> Prefer a guided setup? Book an onboarding call and the Upstack team will go through these steps with you.

## Setup steps

**1. Register an alias domain and publish a splash page**

The alias domain is the domain Meta sees as the source of your events. It must:

* Be new and never used with Meta, and not be a subdomain of your store's domain.
* Have a neutral name, with no health, medical, or product words (such as "wellness", "vitamins", "labs", or "Dr") and not the exact brand name Meta flagged.
* Show one simple page: a headline and an image, with no logo, products, add-to-cart buttons, or links to your store.
* Stay live. Meta won't let you add the domain while the page is down.

The domain only needs to serve that page. No DNS records point at Upstack.

[How to Set Up an Alias Domain for Health & Wellness Tracking →](https://docs.upstackdata.com/guides/health-wellness/setup-alias-domain-health-wellness.md)

**2. Create a new dataset in Meta**

A flagged pixel stays flagged, so Health & Wellness tracking always goes to a new dataset. A pixel that has never received any events also works.

1. Sign in to [Meta Events Manager](https://business.facebook.com/events_manager).

2. In the left menu, click **Connect data**.

3. In **Connect a new data source**, select **Web** and click **Next**.

   ![Meta Events Manager: Connect a new data source, with Web, App, Offline, CRM and Messaging](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/01-meta-connect-new-data-source.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=4fa348d64935b205296856624fa1fff7)

4. In **Connect your data**, click **Create new dataset**.

   ![Meta Events Manager: Connect your data, with the Create new dataset link](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/02-meta-connect-your-data.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=99a7a2bb78bd26c22c91ba86d747e8a4)

5. Under **Enter a name**, name the dataset (for example, `Brand Name - Clean Pixel`). Leave **Add the Conversions API for web events to all new and existing datasets…** unticked, then click **Create**.

   ![Meta Events Manager: Create a new dataset, with Enter a name and the Create button](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/03-meta-create-new-dataset.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=86082048be7a49d5352a208ee846a641)

6. Note the new dataset's ID, a 15–16 digit number shown under its name in **Datasets**.

Don't connect the dataset to anything else, and don't send it any events from your store's domain.

**3. Generate a Conversions API access token**

Generate an access token for the new dataset. You'll paste it into Upstack as the **Conversion API Key**.

[How to Generate My Facebook Conversion API Key →](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-generate-my-facebook-conversion-api-key.md)

**4. Allow only the alias domain on the new dataset**

1. In Events Manager, click **Datasets** and select the new dataset.

2. Click the **Settings** tab and scroll to **Traffic permissions - Websites**.

3. Click **Create allow list**.

   ![Traffic permissions - Websites section of the dataset settings, with Allow list, Block list and the Create allow list button](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/04-meta-traffic-permissions.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=03ba82105828a324cef22c3c15c43c24)

4. In **Manage traffic permissions**, on **Add to allow list**, type the alias domain in **Enter a domain** and click **Next**. Meta confirms it under **Added to allow list**, together with all its subdomains. Click **Close**.

   ![Meta Manage traffic permissions dialog: Add to allow list tab, Enter a domain and Next](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/05-meta-manage-traffic-permissions.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=5e0eced0108ab69c838d04065b6f19f0)

Don't add your store's domain, and don't add the alias domain to your old pixel.

With the allow list on, Meta rejects events from any other domain, so turn on the domain alias in Upstack before any events are sent.

You don't need to verify any domain in Business Manager or **Brand Safety → Domains**.

**5. Turn off other sources that send events to Meta**

Any other source that sends events from your store's domain can get the new dataset flagged. Before you go live:

* Turn off data sharing in the Shopify **Facebook & Instagram** app, or uninstall it. See [How to Disable Facebook and Instagram Data Sharing in Shopify](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-disable-facebook-and-instagram-data-sharing-in-shopify.md).
* Turn off Meta events in other tracking apps, such as Triple Whale Sonar, Elevar, or Stape.
* Remove any Meta pixel code hardcoded in your theme (`theme.liquid` and custom snippets).
* In Events Manager, check the new dataset's integrations and disconnect any other than Upstack.

**6. Set up the Meta destination with Restricted Category Mode**

In Upstack, add a **Meta Ads** destination for the new dataset:

1. Set **Tracking Method** to **Server**, and enter the dataset's ID in **Meta Pixel ID** and its access token in **Conversion API Key**.
2. On the **Category Mode** tab, turn on **Enable Restricted Category Mode** (click **Enable** in the dialog) and **Enable Domain Alias**, and enter the alias domain in **Domain Alias**, such as `https://youraliasdomain.com`.
3. Click **Create Destination**.

   ![Upstack Category Mode tab: Enable Restricted Category Mode and Enable Domain Alias turned on, and the Domain Alias field](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/07-upstack-category-mode-domain-alias.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=284a40a38c9d6ec698e669bfe621202f)

Every screen and click, including how to change an existing destination: [How to Set Up Restricted Category Mode for Meta in Upstack Data](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-set-up-restricted-category-mode-for-meta-in-upstack-data.md).

With Restricted Category Mode on, Upstack never loads the Meta browser tag on your store. It replaces product names with placeholders and reports each event from the alias domain with a hashed path. Without the domain alias, events still carry your store's domain. See [How Data Sanitization Protects Health & Wellness Stores](https://docs.upstackdata.com/guides/health-wellness/data-sanitization-health-wellness.md).

**7. Check events on the new dataset**

Events usually show up within about 2 hours. In [Meta Events Manager](https://business.facebook.com/events_manager), open the new dataset's **Overview** or **Test Events** and confirm:

* Events arrive through the **Conversions API**.
* The **Event Source URL** is your alias domain, not your store's domain.

Meta receives the standard events, such as **Purchase**. It also receives custom events: `ncPurchase`, `rcPurchase`, and the legacy `UPSTACK_HW_*` events, which Upstack still sends alongside the standard ones. If Meta asks you to review the custom events, approve them. Optimize your campaigns on the standard **Purchase** event and ignore the deprecated `UPSTACK_HW_*` events.

To optimize on new or returning customers, create custom conversions once `ncPurchase` and `rcPurchase` show up. See [Set Up NC and RC Purchase Events in Meta](https://docs.upstackdata.com/destinations/catalog/meta-capi/set-up-nc-and-rc-purchase-events-in-meta.md).

You can still add product-line custom events. Use neutral event names, because Meta receives the event name unchanged. See [How to Set Up Product-Specific Purchase Events in Facebook (Meta)](https://docs.upstackdata.com/guides/custom-events/how-to-set-up-product-specific-purchase-events-in-facebook-meta.md#i-use-restricted-category-mode-can-i-still-add-product-purchase-events).

**8. Wait 24 hours, then move your campaigns**

If Meta flags the new dataset again, it usually happens within the first 24 hours. Wait 24 hours before you launch campaigns on it.

Then:

1. Clone your campaigns onto the new dataset and optimize toward the standard **Purchase** event.
2. Move your spend over within about 10 days.
3. Stop using the old pixel. If its destination is still connected in Upstack, switch it off.

Meta doesn't deduplicate between datasets. While campaigns run on both, one order can be counted by campaigns on each.

## Troubleshooting

> [accordion] The new dataset was flagged again
>
> Usually this means the alias domain or its page looked branded or health-related, or another source sent events from your store's domain. Use a neutral domain and page, turn off the other sources, and set up another new dataset.

> [accordion] Meta won't let me add the alias domain
>
> The splash page must be live before Meta accepts the domain. Check that the page loads, then add the domain again.

> [accordion] I changed my alias domain
>
> Update **Domain Alias** on the Meta destination's **Category Mode** tab, then click **Save Changes**. Add the new domain to the dataset's allow list too (**Settings** → **Traffic permissions**).

> [accordion] I have more than one store
>
> If your stores run ads from one ad account, send them all to one new dataset: Meta doesn't deduplicate between datasets, and one dataset gets more data to learn from. Each store needs its own Upstack account, and each store's Meta destination can point to the same dataset with the same alias domain.

> [accordion] I use a third-party checkout
>
> Tell the Upstack team before going live if you use a third-party checkout, such as Phoenix or Checkout Champ, so tracking can be set up for it.

## Need help?

Reach out in your shared Slack channel or contact [support](https://docs.upstackdata.com/troubleshooting/support.md) with your new dataset's ID.

## Related

* [How Upstack Data Solves Health & Wellness Restrictions](https://docs.upstackdata.com/guides/health-wellness/how-upstack-solves-health-wellness-restrictions.md)
* [How Data Sanitization Protects Health & Wellness Stores](https://docs.upstackdata.com/guides/health-wellness/data-sanitization-health-wellness.md)
* [How to Set Up an Alias Domain for Health & Wellness Tracking](https://docs.upstackdata.com/guides/health-wellness/setup-alias-domain-health-wellness.md)
* [How Domain Aliasing Works for Health & Wellness Tracking](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-domain-aliasing-works-for-health-wellness-tracking.md)
* [How to Configure Facebook (Meta) Ads Pixel Destination in Upstack Data](https://docs.upstackdata.com/destinations/catalog/meta-capi/how-to-configure-facebook-meta-ads-pixel-destination-in-upstack-data.md)


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