Blog · 2026-11-18
How to tell if your Meta Pixel fires before consent
The Meta Pixel is one of the most common reasons a cookie banner doesn't do what it says. It's easy to add, it's often added by someone in marketing rather than development, and it starts reporting the moment its script runs. If that happens before the visitor has chosen anything, the banner has already lost.
Why it fires too early
- It's hard-coded in the page template. The snippet sits in the page head, outside whatever consent tool you installed, so the consent tool never gets a chance to hold it back.
- A tag manager fires it on every page view. The tag's trigger is "All pages" with no consent condition.
- A plugin or app adds it. Store and CMS integrations often switch the pixel on independently of your banner.
- The banner only hides. The banner collects a choice but nothing is wired to it.
How to check
- Open your site in a private window with developer tools on the Network tab.
- Reload and, before touching the banner, filter requests for
facebookandfbevents. A request tofacebook.com/tris the pixel reporting an event. - If you see it before any click, it fires without consent.
- Click Reject, reload, and look again. It should still be absent.
- Only after Accept should it appear.
You can also install Meta's own debugging helper in your browser, but it tells you the pixel is installed, not whether it waited for consent.
How to fix it
- Move the pixel out of the page template and into your consent tool or tag manager, with a rule that it only fires after marketing consent.
- In a tag manager, give the tag a consent requirement, not just a page trigger.
- Check any plugin that also installs the pixel, and make sure there's only one copy.
Then check again. A fix that isn't re-tested is a guess.
Let a scan do the clicking
TrackerGrade runs the before-click, Reject and Accept passes for you and lists each tracker it finds at each step, the Meta Pixel included. It's free and takes under a minute. It's a technical check, not legal advice: what your consent rules require depends on where your visitors are and on your own situation.