Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Meta Pixel not respecting consent: fbq revoke fix guide

TRK-307High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

The Meta Pixel is a script that sends visitor actions (page views, leads, purchases) to Meta for ad measurement and targeting. It has a built-in consent control: fbq('consent', 'revoke') tells the pixel not to send data, and fbq('consent', 'grant') lets it start.

Why it costs you leads or sales

How the pixel ignores a rejection
  1. Visitor landsConsent banner appears
  2. Visitor rejectsChoice stored by the banner tool
  3. Pixel loadsNo fbq consent revoke before init
  4. Events sent to MetaPageView and Lead hits leave the browser
  5. Data in your audiencesReports include people who declined

The visitor says no, but the pixel was never told.

How to check if your site has it

Check it by hand in your browser
  1. Open a clean session

    Use a private window so no earlier consent choice is stored.

  2. Open DevTools, Network tab

    Press F12, choose Network, tick Preserve log and filter by facebook.com/tr.

  3. Reject marketing cookies

    Load the page and click Reject (or leave all optional categories off).

  4. Look for requests

    Any request to facebook.com/tr with ev=PageView after you reject means the pixel is ignoring consent.

  5. Test the page before any choice

    Reload in a new private window and look at the Network tab before touching the banner. Hits at this stage mean the pixel fires before consent.

  6. Check the source

    Search the page source or your tag manager for fbq('consent'. If revoke is missing, or comes after fbq('init', that is the cause.

How to fix it

Meta Pixel base code with consent revoked by defaulthtml
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');

fbq('consent', 'revoke');   // must come before init
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
</script>
Grant consent when the visitor accepts marketing cookiesjavascript
// Call this from your banner's accept callback
function onMarketingAccepted() {
  fbq('consent', 'grant');
}

// Call this if a visitor later withdraws consent
function onMarketingRevoked() {
  fbq('consent', 'revoke');
}
Where to make the change
  1. Add revoke before init

    Put fbq('consent', 'revoke'); directly above fbq('init', ...) in the base code.

  2. Wire your banner

    In your banner's accept and reject callbacks, call fbq('consent', 'grant') or fbq('consent', 'revoke'). On returning visitors, read the stored choice on page load and call the matching one.

Pixel behaviour after Reject

Before

  • No fbq('consent','revoke') call
  • PageView sent to facebook.com/tr after Reject
  • Lead events reach Meta from people who declined

After

  • revoke runs before init
  • No hits to facebook.com/tr after Reject
  • grant runs only after the visitor accepts marketing
Try it: what the pixel does after RejectInteractive
fbq consent revoke is missing

Revoke missing

Leads or data lost

The visitor rejects, but PageView and Lead hits still go to Meta.

Toggle the cause to compare what leaves the browser after a rejection.

How to confirm it's fixed

Confirmation checks
  • In a new private window, no request to facebook.com/tr appears before you make a choice
  • After clicking Reject, no request to facebook.com/tr appears on any page you visit
  • After clicking Accept, PageView requests start to appear
  • Withdrawing consent through your banner's settings stops further requests
  • Only one Meta Pixel ID is firing (no duplicate installs)
  • Your lead or purchase event still reaches Meta for visitors who accepted

How to prevent it happening again

Prevention habits
  • Keep one documented place where the pixel is installed
  • Re-test with Reject and Accept after any change to the banner, theme, plugins or tag manager
  • Treat a new consent tool or a banner redesign as a reason to repeat the Network tab check
  • Keep revoke above init in any copy of the base code you reuse
  • Check consent behaviour on landing pages and funnel builders, not only the main site

How FunnelGuard handles this

Questions people ask

Why is my Meta Pixel still firing after I reject cookies?

Most often the pixel code has no fbq('consent', 'revoke') call before fbq('init'), so it starts sending as soon as it loads. Another common cause is a second copy of the pixel in your theme or a plugin that ignores your banner. Check the Network tab for requests to facebook.com/tr after rejecting.

What does fbq('consent', 'revoke') do?

It tells the Meta Pixel not to send data to Meta until consent is granted. You call it before fbq('init'), then call fbq('consent', 'grant') once the visitor accepts marketing cookies. If they later withdraw consent, you call revoke again.

How do I block the Meta Pixel until a visitor gives consent?

Set fbq('consent','revoke') before fbq('init'), then call fbq('consent','grant') from your banner's accept callback. Alternatively, load the pixel only after consent through your consent tool's marketing category or a Google Tag Manager trigger tied to your banner.

How can I test if my Meta Pixel respects consent?

Open a private window, open DevTools, go to the Network tab and filter by facebook.com/tr. Click Reject and browse. No requests should appear. Then click Accept and confirm that PageView requests start.

Will adding consent revoke stop my Meta ads from tracking conversions?

It stops tracking for visitors who have not accepted marketing cookies, which is the intended behaviour. Visitors who accept are still tracked once grant runs. Expect lower reported volume, because declined visitors are no longer counted.

Does Google Tag Manager consent mode control the Meta Pixel?

Not by itself. Meta uses its own fbq consent calls, though GTM's built-in consent settings on a tag can stop it firing until ad_storage is granted. Use those settings or revoke and grant tags so the pixel follows your banner.

Can FunnelGuard tell me if my Meta Pixel ignores a rejection?

Yes. FunnelGuard runs a denied-consent variant of your journey and checks whether Meta Pixel hits still go out. If they do, it re-checks from a second region and sends one alert with a screenshot and a likely cause.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: denied variant.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.