Before you start#
- Madder’s pixel window shows your pixel ID and the code block (see What is the Meta pixel?).
- Access to your site’s header template, or to its Google Tag Manager container.
- Google Chrome, for the checking step.
1Copy the code from Madder#
In the campaign’s launch panel press Set up tracking. Madder looks for your ad account’s pixel; with none, press Create my Pixel. Once the window has a Pixel ID, found, created or pasted, press Copy code. The block starts with <!-- Meta Pixel Code --> and already contains your ID twice, so do not edit it. It fires PageView on every page it loads on, which is the signal Meta needs first. If someone else builds your site, Copy for my AI agent or Download .md gives them the code with instructions.
2Put it in the head, directly or via Tag Manager#
- Directly
- Paste the block between the
<head>and</head>tags of every page. Meta advises placing it high in the shared header. Site-specific steps: Shopify, WordPress, Webflow, Framer, Wix, Next.js. - Via Google Tag Manager
- Add the block as a Custom HTML tag that fires on all pages; the clicks are in Google Tag Manager. Never install both ways, because two copies double-count.
If your platform has a native Meta integration (Shopify, Wix), that integration installs the same pixel by ID; you then paste the ID rather than the code.
3Check that PageView arrives#
Check in both of these places, since each one catches a mistake the other can miss:
- Meta Pixel Helper
- The Chrome extension, now listed as Meta Ads Data Advisor. Install it from the Chrome Web Store, open your site, click the extension icon. A badge with a number means the pixel fired; the panel lists
PageViewand any errors. - Test events
- A tab in Events Manager. Open your dataset › Test events tab, enter your site URL, click Open website, browse a page or two. Events should appear within about a minute.
4Check it in Madder#
In Madder, open the pixel window again with Set up tracking. Madder checks as it opens, reading your page for the pixel and asking Meta for its events. “The pixel is live.” means you are done. Otherwise press Check again after a minute; if Madder still can’t see the pixel, check with the Meta Pixel Helper extension, then press Mark as installed. Nothing changes in your campaign either way. Next: How to track leads from Facebook ads on your website.
If it doesn’t work#
- Nothing in Test events after a minute
- Disable ad blockers and privacy extensions, refresh, and try Chrome.
- Pixel Helper shows a red error
- Usually the ID is wrong or the code was pasted inside another script; re-copy from Madder.
- PageView fires twice
- The code exists both in the theme and in Tag Manager (or a platform integration); keep one.
- Fires on the home page only
- The snippet was pasted into one page’s content, not the site-wide header template.
- Events land on the wrong dataset
- The site carries an older pixel ID. Replace it with Madder’s code, or paste the older ID into Madder’s pixel window to check that one. Next time the window shows the ad account’s own pixel again, since the ID lives on Meta.