# Load your pixels with consent

Let the tracking tag load your Meta, Google, TikTok and other ad pixels, only once the visitor's consent allows it, with the same event ids as the server copy.

The tracking tag can load your ad pixels for you. It waits for the visitor's answer on your consent banner. Then it fires each event on the pixels with the server copy's event id.

## Turn it on

In the dashboard, open the site and add each pixel under **Settings**. Through the API, send the site's `pixels` with `PATCH /v1/tracking-sites/{siteId}`:

```bash
curl -X PATCH "https://zernio.com/api/v1/tracking-sites/6a2b3c4d5e6f7a8b9c0d1e2f" \
  -H "Authorization: Bearer $ZERNIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "pixels": [
    { "platform": "meta", "id": "1234567890123456" },
    { "platform": "google", "id": "AW-123456789" },
    { "platform": "tiktok", "id": "C4ABCDEFGHIJ12345678" }
  ] }'
```

The list replaces the one before. Send `null` or `[]` to remove every pixel. The tag picks up the change within a few minutes.

Then remove your own copy of each pixel from the page and from Tag Manager. Otherwise each event fires twice in the browser.

## Supported pixels

| `platform` | Pixel | `id` looks like |
|---|---|---|
| `meta` | Meta pixel | `1234567890123456` |
| `google` | Google Ads or Google Analytics 4, through gtag | `AW-123456789` or `G-XXXXXXXXXX` |
| `tiktok` | TikTok pixel | `C4ABCDEFGHIJ12345678` |
| `linkedin` | LinkedIn Insight Tag (partner id) | `1234567` |
| `pinterest` | Pinterest tag | `2612345678901` |
| `snapchat` | Snap pixel | `12345678-abcd-1234-abcd-123456789012` |
| `reddit` | Reddit pixel | `t2_abc123` |
| `x` | X pixel | `o1abc` |
| `microsoft` | Microsoft Advertising UET tag | `187654321` |

An id in the wrong format is refused with `400`, and the error shows the expected format. A site takes up to 20 pixels.

## Events each pixel gets

The tag maps each tracked event to the pixel's own event name.

| Pixel | Events |
|---|---|
| Meta | Page views, funnel steps and every standard conversion, under the same names |
| Google, Microsoft | GA4 names: `purchase`, `generate_lead`, `sign_up`, `add_to_cart`, `begin_checkout` and other funnel steps |
| TikTok | Page views, funnel steps, purchases, leads, registrations, subscriptions and contacts |
| Pinterest | Page views, product views, add to cart, purchases (`checkout`), leads, sign ups and searches |
| Snapchat | Page views, funnel steps, purchases, sign ups, subscriptions and trials |
| Reddit | Page visits, product views, add to cart, wishlist, searches, purchases, leads and sign ups |
| LinkedIn, X | Page views only |

Value, currency, order id and items go with each event where the pixel takes them.

## Consent by region

The tag reads your consent banner, as described on [Consent](/products/server-side-tracking/consent).

| Where the visitor is | A pixel loads |
|---|---|
| The EEA, UK or Switzerland, or an unknown country | Only after the visitor grants ad storage |
| Elsewhere, under `consentMode: opt_in` | Only after the visitor grants ad storage |
| Elsewhere, under `eu_opt_in` or `opt_out` | Unless the visitor denied ad storage |

A Google Analytics id (`G-`) waits for analytics consent. A Google Ads id (`AW-`, `GT-`) waits for ad consent, like every other pixel.

In those first two rows, a banner the visitor has not answered is no grant. Neither is consent the banner implies or pre-ticks.

## How it behaves

- **Counted once.** Each event fires on the pixel with the event id of the server copy, so the platform keeps one of the two. See [Deduplication](/products/server-side-tracking/deduplication).
- **Late consent still counts the page.** Events tracked before the grant fire once the pixel loads, up to 20 per page.
- **Withdrawal.** When the visitor turns consent off, Meta gets `consent revoke`, TikTok `revokeConsent`, and Google and Microsoft a Consent Mode update.
- **Other pixels stay loaded.** A loaded pixel cannot be unloaded. LinkedIn, Pinterest, Snapchat, Reddit and X get no further events from the tag after a withdrawal.
- **One UET tag.** A site takes one Microsoft UET tag.
- **LinkedIn and X.** Their conversions need a rule id per ad account, so the tag sends them page views only. Their conversions still reach them from the server.
- **No legal advice.** The tag applies the choices your banner collects. Whether your banner and its wording meet your local law is up to you.

## If it fails

| Problem | Cause | Fix |
|---|---|---|
| Events counted twice in the browser | Your own copy of the pixel still runs | Remove it from the page and from Tag Manager |
| No pixel loads in Europe | The visitor has not accepted, or your banner is not one the tag reads | Check your banner on [Consent](/products/server-side-tracking/consent) |
| `400` with "One Microsoft UET tag per site" | Two `microsoft` entries | Keep one |
| `400` with "Not a … pixel id" | The id is in another format | Use the format in the table above |

## Related

- [Consent](/products/server-side-tracking/consent)
- [The tracking script](/products/server-side-tracking/script)
- [Deduplication](/products/server-side-tracking/deduplication)
- [Update a tracking site](/conversions/update-tracking-site)