Articles on: Advanced Tutorial
This article is also available in:

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:


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


Example:


<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:


<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:


<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:


YOUR_PIXEL_ID


with your Pixel ID.


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


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:


F12


Then go to:


Network


and reload the page.


2. Look for Meta requests


In the Network search field, search for:


facebook.com


or:


/tr


3. Open a request


Click one of the Pixel requests and look for:


Request Headers


Then check the field:


Referer


With:


<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:


<img ...>


is not enough.


The right approach is to configure the page:


<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:


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


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


Example:


<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:


<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:


referrerpolicy="no-referrer"


to the <img> element.

Updated on: 09/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!