Meta Pixel
Opinionated path: CMP first, pixel after consent state is known, wired through GTM when possible.
Prerequisites
- Quickstart or GTM equivalent so
uc.jsruns early. - You use Meta’s consent or limited data use options in line with your policy (Meta’s docs define the exact parameters).
Google Tag Manager
- Fire the Meta Pixel tag only on triggers that match accepted marketing/advertising consent (or your container’s consent checks).
- Do not place the pixel in Custom HTML that runs on All Pages before consent unless you have deliberately configured Meta’s API for that case.
Inline pixel
If the pixel is hard-coded:
- Avoid injecting the base pixel script above the CMP in
<head>. - Prefer loading it from a post-consent callback or a tag manager—hard-coded pixels are the hardest to keep aligned with granular choices.
Verify
- Network:
facebook.net/fbeventsrequests should not appear as full marketing firing before accept (unless your legal setup explicitly allows it). - After accept, you should see the expected pixel traffic.
Related
Last updated