> ## 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 Restricted Category Mode for Meta in Upstack Data

> Turn on Restricted Category Mode and the domain alias for a Meta destination in Upstack, click by click: Tracking Method, Meta Pixel ID, Conversion API Key, the Category Mode tab, and saving.

Restricted Category Mode changes how a Meta destination sends events. It's for stores that Meta has flagged or restricted under its Health & Wellness category, such as supplements, CBD, wellness, and other regulated products. With it on, Upstack:

* never loads the Meta browser pixel on your store
* sends events to Meta through the Conversions API only
* replaces product names with placeholders and removes product categories and brands
* reports every event from your alias domain, with a hashed page path, once you turn on the domain alias

See [How Data Sanitization Protects Health & Wellness Stores](/guides/health-wellness/data-sanitization-health-wellness) for exactly what Meta receives.

> [!NOTE]
>
> This page covers the settings in Upstack. For the full onboarding, including the alias domain, the new dataset, Meta's allow list, and moving your campaigns, follow [How to Set Up a Health & Wellness Pixel for Meta](/guides/health-wellness/setup-health-wellness-pixel-for-meta).

## Before you start

You need:

* The ID of a **new Meta dataset** (pixel). A pixel that Meta has already flagged stays flagged. See [How Do I Find My Facebook Ads Pixel (Dataset) ID](/destinations/catalog/meta-capi/how-do-i-find-my-facebook-ads-pixel-dataset-id).
* A **Conversions API access token** for that dataset. See [How to Generate My Facebook Conversion API Key](/destinations/catalog/meta-capi/how-to-generate-my-facebook-conversion-api-key).
* An **alias domain** with a live splash page, added to the new dataset's allow list. See [How to Set Up an Alias Domain for Health & Wellness Tracking](/guides/health-wellness/setup-alias-domain-health-wellness).
* Every other source that sends events to Meta turned off, such as the Shopify Facebook & Instagram app's data sharing. See [How to Disable Facebook and Instagram Data Sharing in Shopify](/destinations/catalog/meta-capi/how-to-disable-facebook-and-instagram-data-sharing-in-shopify).

## Set up a new Meta destination

Turn on Restricted Category Mode before you create the destination, so no event reaches the new dataset without it.

**1. Open Destinations**

Sign in to [app.upstackdata.com](https://app.upstackdata.com) and click **Destinations** in the left sidebar.

**2. Add a Meta destination**

Click **New Destination** in the top-right corner. Click the **Meta Ads** card. To find it faster, type `Meta` in **Search destinations…**.

**3. Set the Tracking Method to Server**

On the **Overview** tab, under **Tracking Method**, select **Server**.

Restricted Category Mode never loads the Meta browser pixel, whichever Tracking Method you pick. **Server** matches what it does.

**4. Enter the dataset ID and access token**

* **Meta Pixel ID**: enter the new dataset's ID, digits only.
* **Conversion API Key**: paste the dataset's Conversions API access token. It's required when the Tracking Method includes **Server**.

  ![Upstack Meta Ads destination: the Meta Pixel ID and Conversion API Key fields, and Create Destination](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/06-upstack-meta-pixel-id-capi-key.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=ffa7629b6f5adc86cd91d07229bb3e9c)

**5. Open the Category Mode tab**

In the destination's left menu, click **Category Mode**.

**6. Turn on Restricted Category Mode**

Turn on the **Enable Restricted Category Mode** switch. The **Enable Restricted Category Mode?** dialog opens. Click **Enable**.

![Upstack Enable Restricted Category Mode? dialog with the Cancel and Enable buttons](https://mintcdn.com/upstackdata-afbed50d/uzavz9eG1NgD2_zo/images/health-wellness/08-upstack-enable-rcm-dialog.png?fit=max\&auto=format\&n=uzavz9eG1NgD2_zo\&q=85\&s=d996ceb91ef17f17a5fd791fba40ebbe)

**7. Turn on the domain alias**

The **Enable Domain Alias** switch appears below. Turn it on.

**8. Enter your alias domain**

In **Domain Alias**, enter your alias domain as a full URL, including `https://`. For example, `https://youraliasdomain.com`.

If you see *"Domain alias must be a valid URL (e.g., [https://example.com](https://example.com))"*, add the `https://` prefix.

![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)

**9. Create the destination**

Click **Create Destination** at the bottom of the page. Upstack starts sending events to the new dataset.

## Turn it on for an existing Meta destination

**1. Open the destination**

Click **Destinations** in the left sidebar, then click your Meta destination.

**2. Switch the destination off**

Use the switch in the top-right corner of the destination page, next to its status. No events go out while you change the settings.

**3. Check the Overview settings**

On the **Overview** tab, set **Tracking Method** to **Server**. Check that **Meta Pixel ID** and **Conversion API Key** belong to the new dataset.

**4. Turn on Restricted Category Mode and the domain alias**

Click **Category Mode** in the left menu, then:

1. Turn on **Enable Restricted Category Mode**, and click **Enable** in the dialog.
2. Turn on **Enable Domain Alias**.
3. In **Domain Alias**, enter your alias domain, such as `https://youraliasdomain.com`.

**5. Save and switch the destination back on**

Click **Save Changes** at the bottom of the page, then turn the switch in the top-right corner back on.

## Check that it's working

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

* Events arrive through the **Conversions API**, with no browser events. If browser events appear, another source is still sending to the dataset. Turn it off.
* The **Event Source URL** is your alias domain followed by `?path=` and a hash, not your store's domain.
* You see the standard events, such as **Purchase**, and also custom events: `ncPurchase`, `rcPurchase`, and the legacy `UPSTACK_HW_*` events. If Meta asks you to review the custom events, approve them. Optimize on the standard **Purchase** event.

## Change the alias domain or turn it off

* **To change the alias domain:** open the destination, click **Category Mode**, update **Domain Alias**, and click **Save Changes**. Add the new domain to the dataset's allow list in Meta too (**Settings** → **Traffic permissions**).
* **To turn Restricted Category Mode off:** turn off **Enable Restricted Category Mode** and click **Save Changes**. Events then go to Meta with your product details and your store's domain. If the Tracking Method includes **Browser**, the Meta browser pixel loads again.

## Troubleshooting

> **I don't see a Category Mode tab**
>
> The **Category Mode** tab appears only on Meta destinations. Check that you added a **Meta Ads** destination.

> **The Domain Alias field shows an error**
>
> Enter the full URL, including `https://`, such as `https://youraliasdomain.com`.

> **Events still show my store's domain**
>
> Check that **Enable Domain Alias** is on and that **Domain Alias** holds your alias domain, then click **Save Changes**. Without the domain alias, Upstack still hashes the page path but keeps your store's domain.

## Related

> **[Set Up a Health & Wellness Meta Pixel](/guides/health-wellness/setup-health-wellness-pixel-for-meta)**
>
> The full Health & Wellness onboarding, from alias domain to moving campaigns.

> **[What Meta Receives](/guides/health-wellness/data-sanitization-health-wellness)**
>
> What Restricted Category Mode removes and what Meta still gets.

> **[Set Up an Alias Domain](/guides/health-wellness/setup-alias-domain-health-wellness)**
>
> Register the alias domain and publish its splash page.

> **[Set Up Meta](/destinations/catalog/meta-capi/how-to-configure-facebook-meta-ads-pixel-destination-in-upstack-data)**
>
> The standard Meta destination setup.


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