By Gatedleads team ·
How to Add a Meta Pixel to a Lead Magnet Page
To track a lead magnet page in Meta Ads, add your Meta pixel ID to the page and make sure each sign-up is sent to Meta as a Lead event. Meta can then report how many leads each ad brought in and find more people likely to sign up. The whole job takes a few minutes: copy your pixel ID from Events Manager, paste it into your page tool, then test a sign-up to confirm the Lead event arrives.
Why the pixel matters for lead magnet ads
Without the pixel, Meta only knows who clicked your ad. With it, Meta knows who signed up. That changes three things:
- Reporting. You see cost per lead for each ad, not just cost per click.
- Optimisation. Meta can show your ad to people more likely to sign up, rather than people likely to click.
- Audiences. You can build audiences of people who visited the page but did not sign up, and show them a different ad.
Step 1: Find your pixel ID
- Open Meta Events Manager.
- Choose your dataset (Meta now calls pixels datasets in some places).
- Copy the ID, a long number of around 15 or 16 digits.
If you do not have a pixel yet, Events Manager walks you through creating one.
Step 2: Add it to the page
How you add it depends on your page tool:
- A field for the pixel ID. The simplest route. Paste the ID and the tool loads the pixel and sends the Lead event for you.
- A header code box. Paste Meta's base code, then add a Lead event on your thank you page or form submit.
- A tag manager. If you use Google Tag Manager, add the Meta pixel there and fire the Lead event on your form submission.
The important part is the Lead event. A pixel that only counts page views tells Meta who visited, not who signed up.
Step 3: Test it
- Install the Meta Pixel Helper browser extension, or open the Test events tab in Events Manager.
- Visit your page. You should see a PageView.
- Sign up with your own email. You should see a Lead event.
- Remove your test sign-up from your leads so it does not skew your numbers.
If the Lead event does not appear, check that the right ID is on the page, that an ad blocker is not stopping it in your browser, and that the page is published, not a draft preview.
Step 4: Use it in your ads
- Set your campaign objective to Leads, with the conversion location set to your website.
- Choose the Lead event as the one to optimise for.
- Use UTM tags on your ad links as well, so your page tool also records which ad each lead came from. UTM links for lead magnets shows how.
Cookie rules to know
The Meta pixel sets cookies. If your visitors are in the UK or the EU, you generally need their consent before marketing cookies load, which means a cookie notice on the page. Other countries have their own rules. Check what applies to you, and keep your privacy policy linked from the page.
How Gatedleads handles it
On Gatedleads Pro, at $29 a month, each page has a Tracking section in its settings where you paste your Meta pixel ID, your Google tag ID, or both. Gatedleads adds the tag to the page and counts each sign-up as a lead, so Meta and Google Ads both see your conversions. Every lead in Gatedleads also records its source and campaign, so you can compare what your ads report with what actually arrived.
Gatedleads shows a reminder that these tags set cookies, so if your visitors are in the UK or EU you will need your own cookie notice.
See everything that is included on the features page, or start free and have a page ready for your ads in under 10 minutes.
If your ads already get clicks but few sign-ups, read paying for ad clicks but no leads before you change the campaign.
FAQ
Where do I find my Meta pixel ID?
In Meta Events Manager. Open your dataset and copy the ID, a number of around 15 or 16 digits.
What event should a lead magnet page send to Meta?
The Lead event, fired when someone signs up. A pixel that only sends page views cannot tell Meta which visits became leads.
How do I check my Meta pixel is working?
Use the Meta Pixel Helper extension or the Test events tab in Events Manager. Visit the page, sign up with your own email and check that a Lead event appears.
Do I need a cookie notice for the Meta pixel?
If your visitors are in the UK or the EU, generally yes, because the pixel sets marketing cookies. Check the rules that apply where your visitors are.