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

# Connect Meta Pixel

> Send your store's visits and sales to your own Meta Pixel to measure your Facebook and Instagram ads.

If you run ads on Facebook or Instagram, Meta Pixel tells you what people do after they click your ad: which products they look at, what they add to the cart and what they buy. Meta uses this to show your ads to the right people.

In this guide, you'll learn how to connect your Meta Pixel to your store.

## What you get

* **Page views** across your store, including searches.
* **Shopping events**: `ViewContent`, `AddToCart`, `InitiateCheckout` and `Purchase`, with the order value.
* **Product variant IDs** with each event, ready to match a Meta product catalog.
* **Privacy-friendly tracking**: visitors in the EEA, the UK and Switzerland, and visitors whose country is unknown, aren't tracked.
* **No slowdown**: Meta's script loads only after your store's page has finished loading.

## Before you start

You need a Meta Pixel in [Meta Events Manager](https://business.facebook.com/events_manager2). If you don't have one, create it there with **Connect data → Web**.

***

## Connect Meta Pixel

### Step 1 — Copy your Pixel ID

1. Open [Meta Events Manager](https://business.facebook.com/events_manager2).
2. Go to **Data sources** and click your pixel.
3. Copy the pixel's **ID**. It's the 15 or 16 digit number under the pixel's name.

### Step 2 — Paste it in Commert

1. In Commert Admin, go to **Settings → Integrations**.
2. On **Meta Pixel**, click **Connect**. The setup panel opens.

![Meta Pixel setup panel](https://mintcdn.com/commert/aSaHrBhWLyrrttuw/images/user-guide/settings/integrations/meta-pixel/setup-drawer.png?fit=max\&auto=format\&n=aSaHrBhWLyrrttuw\&q=85\&s=8db251b2328e0ba62c3a0acea6f1dd3f)

3. Paste the ID into the **Pixel ID** field.
4. Click **Connect**.

![Pixel ID pasted in the setup panel](https://mintcdn.com/commert/aSaHrBhWLyrrttuw/images/user-guide/settings/integrations/meta-pixel/paste-pixel-id.png?fit=max\&auto=format\&n=aSaHrBhWLyrrttuw\&q=85\&s=49d84383be65ec0a4f3e32346bb55f4a)

### Step 3 — You're connected

The panel shows **Done** with your Pixel ID, and the status changes to **Connected**.

![Meta Pixel setup panel showing Done](https://mintcdn.com/commert/aSaHrBhWLyrrttuw/images/user-guide/settings/integrations/meta-pixel/connected-drawer.png?fit=max\&auto=format\&n=aSaHrBhWLyrrttuw\&q=85\&s=569e03b5ce7f69ee83513ec31fed7b04)

***

## Check that it works

1. Open your store in a new browser tab.
2. In Meta Events Manager, open your pixel and go to **Test events**.
3. A `PageView` event shows up within a couple of minutes.

> [!NOTE]
>
> In your pixel's **Settings** in Events Manager, keep **Automatic advanced matching** off. Your store sends only the events listed above.

***

## View or change the connection

In **Settings → Integrations**, click **Manage** on Meta Pixel. The page shows when you connected it and your saved **Pixel ID**.

![Meta Pixel integration page](https://mintcdn.com/commert/aSaHrBhWLyrrttuw/images/user-guide/settings/integrations/meta-pixel/integration-page.png?fit=max\&auto=format\&n=aSaHrBhWLyrrttuw\&q=85\&s=581be5865b078512fa7d6310f6ca2713)

* To use another pixel, click the **⋯** button at the top right of the first card, click **Update credentials**, enter the new ID and click **Save**.
* To disconnect, click the **⋯** button and click **Disconnect**. Your store stops sending data within a minute.

***

## Frequently asked questions

> [accordion] Will this slow down my store?
>
> No. Meta's script loads only after your store's page has finished loading.

> [accordion] Which events are sent?
>
> `PageView`, `Search`, `ViewContent`, `AddToCart`, `InitiateCheckout` and `Purchase`. Product IDs are your variant IDs, and values are before tax and shipping.

> [accordion] Why are visitors from Europe missing?
>
> Visitors in the EEA, the UK and Switzerland haven't agreed to advertising cookies, so the pixel doesn't track them. Visitors whose country is unknown aren't tracked either, in case they are in one of these places.

> [accordion] Can I add more than one pixel?
>
> Not yet. Each store connects one pixel.

***

## Next steps

* [Google Analytics](https://docs.commert.com/en/settings/integrations/google-analytics.md) — see all your store's visitors and sales, not only those from ads.
* [Integrations overview](https://docs.commert.com/en/settings/integrations.md) — statuses, managing and disconnecting integrations.


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