Code BLACKGO: cookie banner free for a year. Create an account →

Publications / Analytics and marketing

Meta Pixel and cookie consent – the most common mistakes and how to fix them

Meta Pixel (Facebook) is a marketing tool – it loads only after consent to marketing. The most common mistakes: pixel before consent, in the Analytics category, in GTM without blocking, Conversions API without a consent check.

Author: Carol.B Published: Updated: 4 min read

Meta Pixel and cookie consent – the most common mistakes and how to fix them

Meta Pixel (formerly the Facebook pixel) measures what people who come from ads on Facebook and Instagram do on the website, and builds audiences for remarketing. It is a marketing tool: it stores a cookie in the browser (_fbp) and sends data to Meta, so it may start only after consent to marketing (Article 5(3) of the ePrivacy Directive, implemented in the national law of each Member State). Below are the most common mistakes and how to fix them.

The most common case: the pixel code is in the template, a plugin or GTM and starts together with the page, while the banner is only displayed. You can check this in a private window: developer tools (F12) → Network, type “facebook”. Before a click in the banner there should be no requests to connect.facebook.net or facebook.com/tr, and no _fbp cookie in the cookies tab.

Fix: the pixel script must wait for consent to marketing. consetgo blocks it on the server before the page reaches the browser – regardless of whether the code is in the template or in a plugin.

Mistake 2: the pixel in the wrong category

The pixel is sometimes put under “Analytics” or “Functional” because it “measures traffic”. But it measures ad performance and builds profiles for remarketing – that is marketing. A visitor who agreed only to statistics should not get the pixel. In consetgo, Meta Pixel is always Marketing.

Mistake 3: the pixel in Google Tag Manager without blocking

If the pixel is a tag in GTM and the container loads before consent or after consent to analytics, the pixel may start together with it. consetgo inserts a guard before GTM that blocks scripts and pixels of known services according to their category – Meta Pixel waits for consent to marketing even when the container is already running. More: Google Tag Manager and consent.

The Conversions API sends events (purchase, add to cart) from the shop’s server directly to Meta. The banner in the browser does not see this and cannot block it. The server-side integration should send events only for people who consented to marketing – check whether your shop plugin has such a setting and whether it is switched on.

Mistake 5: advanced matching without information

Advanced matching sends encrypted data from forms to Meta, e.g. the e-mail address. This is personal data – it requires consent to marketing and a description in the privacy policy, including the fact that the data is transferred outside the European Economic Area.

If the pixel was running before the banner was implemented, or the visitor withdrew consent, an _fbp cookie may remain in the browser. From version 1.3.37, consetgo deletes the cookies of services in categories without consent on every page load. The website cannot delete the fr cookie in the facebook.com domain – the visitor can delete it in the browser settings.

How to set up the pixel in consetgo

  • The pixel code is already on the website (template, plugin, GTM): the scanner will find it and the module will block it until consent. Leave the “Code” field empty.
  • The code is not there yet: in the Services and categories tab, enter the Meta Pixel ID (15–16 digits) in the “Code” field. The module will insert the pixel itself after consent to marketing.

Checklist

  • Before consent and after rejection: no requests to connect.facebook.net or facebook.com/tr, no _fbp cookie.
  • After consent to analytics only: the pixel is still blocked.
  • After consent to marketing: the pixel works (check in Meta Events Manager, e.g. with the Test Events tool).
  • The Conversions API sends events only for people who consented to marketing.
  • The pixel, the _fbp and fr cookies and data transfers outside the EEA are described in the cookie policy.

Full browser test: How to check whether a website sets cookies before consent.

Questions and answers

Which category does Meta Pixel belong to?

Marketing. The pixel measures conversions from ads and builds audiences for remarketing. In consetgo it cannot be moved to another category.

Does the Conversions API bypass consent?

It should not. The Conversions API sends events from the shop’s server, so the banner in the browser does not block them. The server-side integration should send events only for people who consented to marketing – check this in the plugin settings or with whoever implemented it.

What about the _fbp cookie after a refusal?

Without consent the pixel does not load, so it does not store new cookies. An _fbp cookie stored earlier (e.g. before the banner was implemented or before consent was withdrawn) is deleted by consetgo on the next page load – from version 1.3.37.

Read also

GA4 and cookie consent – how to block Google Analytics until consent

GA4 and cookie consent – how to block Google Analytics until consent

Analytics and marketing

Google Analytics 4 stores its own cookies in the browser, so on a website in the EU it may set them only after consent. We show three GA4 setups with the banner, the Consent Mode modes and what a refusal means for your reports.

· 10 min read