> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.cloakup.me/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to install the Facebook Pixel

# How to install the Facebook Pixel without exposing your offer page URL

If you use the **Meta (Facebook) Pixel** on an offer page protected by Cloakup, it's important to configure the browser so it doesn't send that page's URL as the referrer in Pixel requests.

You can do this directly in the page code, with no server or hosting configuration needed.

## 1. Add the privacy setting

In your page's `<head>`, add:

```html
<meta name="referrer" content="no-referrer">
```

Example:

```html
<head>
    <meta name="referrer" content="no-referrer">

    <!-- rest of the page code -->
</head>
```

This setting tells the browser not to send the source page URL in the `Referer` header.

---

## 2. Install the Pixel as usual

After adding the setting above, you can install the Meta Pixel as usual.

Use the code provided by **Meta Events Manager**.

You don't need to change the standard Pixel code because of this setting.

The structure will look like this:

```html
<head>
    <meta name="referrer" content="no-referrer">

    <!-- Meta Pixel code -->
</head>
```

> **Important:** place the meta tag before the Pixel code.

---

## 3. If you use `noscript`

Meta also provides an alternative that uses an invisible image.

In this case, you can add `referrerpolicy="no-referrer"` directly to the element:

```html
<img
    height="1"
    width="1"
    style="display:none"
    src="https://www.facebook.com/tr?id=YOUR_PIXEL_ID&ev=PageView&noscript=1"
    referrerpolicy="no-referrer"
/>
```

Replace:

```text
YOUR_PIXEL_ID
```

with your Pixel ID.

If you already use the `noscript` provided by Meta, just add:

```html
referrerpolicy="no-referrer"
```

to the `<img>`.

---

# How to check that it's working

After installing the Pixel, we recommend checking the request directly in the browser.

### 1. Open DevTools

In Chrome, press:

```text
F12
```

Then go to:

```text
Network
```

and reload the page.

### 2. Look for Meta requests

In the Network search field, search for:

```text
facebook.com
```

or:

```text
/tr
```

### 3. Open a request

Click one of the Pixel requests and look for:

```text
Request Headers
```

Then check the field:

```text
Referer
```

With:

```html
<meta name="referrer" content="no-referrer">
```

the offer page URL should not be sent in this field.

---

# How to tell if the Pixel is working

Besides checking the Referer, also confirm that events are arriving normally in Meta Events Manager.

You can test, for example:

- PageView
- ViewContent
- Lead
- CompleteRegistration
- Purchase

The events and parameters used depend on your Pixel and page configuration.

---

# Common mistake: configuring only the noscript

If you use Meta's JavaScript Pixel, configuring only the noscript:

```html
<img ...>
```

is not enough.

The right approach is to configure the page:

```html
<meta name="referrer" content="no-referrer">
```

This way, the referrer policy is applied to all resources loaded by the page.

The `referrerpolicy="no-referrer"` on the `img` should be used as additional protection for that specific request.

---

# Common mistake: placing the setting after the Pixel

Place:

```html
<meta name="referrer" content="no-referrer">
```

at the beginning of the `<head>`, before the Pixel code.

Example:

```html
<head>
    <meta name="referrer" content="no-referrer">

    <!-- Meta Pixel -->
</head>
```

---

# Checklist

Before finishing, make sure that:

- The `no-referrer` meta tag is in the `<head>`.
- The meta tag is before the Pixel code.
- The Pixel is installed correctly.
- Events are showing up in Events Manager.
- The Pixel request is not sending the offer page URL in the Referer.

## Summary

In most cases, you only need to add:

```html
<meta name="referrer" content="no-referrer">
```

to your page's `<head>` and install the Pixel as usual.

If you also use Meta's noscript, add:

```html
referrerpolicy="no-referrer"
```

to the `<img>` element.