Meta Pixel setup mistakes that make your ads learn from the wrong data

Duplicate events, purchases fired before payment, purchases without a value and automatic noise — how these Meta Pixel mistakes hurt your ads and how to find them yourself.

6 min read

In this article
  1. 1. The same code is installed twice
  2. 2. Purchase fires before payment
  3. 3. A purchase without value and currency
  4. 4. Automatic events nobody asked for
  5. 5. The consent plugin "broke" the Pixel — except it didn't
  6. 6. An unverified domain and settings from old guides
  7. When GA4 sees the purchase and Meta does not
  8. What to do tomorrow
  9. Frequently asked questions

Meta Pixel is more than a visitor counter. When a campaign is optimized for purchases or leads, Meta uses the events your Pixel sends to decide who sees the ad next. If the Pixel reports duplicate purchases, or purchases that were never paid, the algorithm learns to look for the wrong people — and you pay for it.

Below are the mistakes we have run into ourselves, and how to check each one in a few minutes. We recently cleaned up Meta Pixel and Google Analytics on a WordPress website with a booking plugin and on-page card payments (Stripe).

1. The same code is installed twice

A typical WordPress story: at some point the Pixel code was pasted into the theme header, later a plugin was installed that does the same thing, and Site Kit adds the Google tag on top. Each works correctly on its own, but together they send every event twice: two PageViews per visit, two Purchases per sale. In your reports, the ads look twice as good as they really are.

The rule is one source. Each tracking code is added to the site by exactly one tool — a plugin, Google Tag Manager or hand-written code — never several at once. We explained why WordPress plugins clash so easily in WordPress vs a custom-coded website.

A one-minute check: open your site, press Ctrl+U (page source) and search for fbq('init'. If you use one Pixel, that line must appear exactly once. The same goes for Google Analytics: your Measurement ID (it starts with G-) should be loaded by one tool, with one config line. Code loaded through Google Tag Manager does not show up in the page source, so also check with the Meta Pixel Helper browser extension — it shows which events fired and how many times.

2. Purchase fires before payment

Many booking systems and online shops create the order before payment: the booking is saved first, and only then does the card form open. So "booking created" does not mean "paid". If Purchase fires when the booking is created, the Pixel also counts declined cards and abandoned payments.

We made this mistake too: in the first version, Purchase was tied to a moment that came too early and would have counted declined cards as well. We fixed it so the event fires only when the payment provider sends the visitor back with a confirmation — for Stripe, the redirect_status=succeeded URL parameter. The principle is simple: a purchase counts only when the payment provider has confirmed it, not when the visitor tried to pay. And make sure that reloading the thank-you page does not send the purchase a second time.

The same applies to enquiries: the Lead event fires only when the form has actually been submitted, not when the button is clicked.

3. A purchase without value and currency

For the Purchase event, Meta needs two parameters: value (the amount) and currency (the currency code). Without them Meta does not know what the purchase was worth: you will not see return on ad spend (ROAS), and there is nothing to optimize for value. The correct line looks like this:

fbq('track', 'Purchase', { value: 45.00, currency: 'EUR' });

The value must come from the actual order, not be hard-coded "just to have something". The currency is the three-letter code EUR, not the "€" sign. The amount is a number with a decimal point, not a comma.

4. Automatic events nobody asked for

In Events Manager settings, automatic event tracking may be switched on ("Track events automatically without code"). The Pixel then guesses what matters on your site and sends events on its own — for example SubscribedButtonClick whenever someone clicks anything that looks like a button. Reports fill up with noise, and choosing the optimization event for a campaign gets confusing.

We switched it off in two places: in Events Manager settings and in the code, by adding fbq('set', 'autoConfig', false, 'PIXEL_ID') before fbq('init', …) (replace PIXEL_ID with your Pixel's number). We also turned off the setting that automatically adds more page and product details ("Automatically include more detailed page and product info"): we define events and their parameters ourselves, so no guessing is needed.

5. The consent plugin "broke" the Pixel — except it didn't

When a cookie consent plugin (for example, Complianz) runs on your site, the page source shows the Pixel script marked type="text/plain". That is not a bug: the browser does not run a script marked this way until the visitor accepts marketing cookies. Once they click "Accept", the plugin switches the script on.

So test like a new visitor:

  1. Open the site in an incognito window.
  2. Click "Accept" (the marketing category must be ticked).
  3. In the Events Manager "Test events" tab, watch for PageView and, after your test action, for your own event.

If the visitor declines, the Pixel should send nothing at all. That is correct behavior, not a fault.

6. An unverified domain and settings from old guides

Verify your domain in Meta's business settings — with a meta tag in your site's <head> or a DNS TXT record. DNS is the sturdier option: a meta tag pasted into the theme can disappear when you change the theme or a plugin.

Older guides still tell you to rank your 8 most important events by priority in the "Aggregated Event Measurement" section of Events Manager. Meta has been changing this since 2023, and many accounts no longer have manual ranking at all — ours did not have the section. If yours still does, put your most important event (usually Purchase) first. If it does not, there is nothing to look for.

When GA4 sees the purchase and Meta does not

If a purchase shows up in Google Analytics but not in Meta, check consent first: perhaps the visitor allowed only statistics cookies. The other common cause is an ad blocker. Ad blockers often block the Pixel file fbevents.js, so the browser simply never sends the event. No Pixel setting will fix that.

The fix is the Conversions API: the same event is sent from your server, with the same consent check. That is integration work — more about it on our automation service page. It is only worth doing once everything above is in order: a server that sends the same duplicates or early purchases just makes the problem bigger.

What to do tomorrow

  1. In your page source, count the fbq('init' lines and the Google config lines — each should appear once.
  2. In an incognito window, make a test purchase and check in "Test events" that Purchase arrives once, with value and currency, and only after a successful payment.
  3. In Events Manager, switch off automatic events and verify your domain.

Frequently asked questions

Is the Pixel worth installing if we are not running Meta ads yet?

If ads are planned, yes — but only together with a consent plugin and only with events you will actually use. Before any campaign starts, the Pixel already collects the data you can later build audiences from.

Why does Meta show a different number of purchases than our system?

Meta credits a purchase to an ad based on its own attribution window, and some visitors decline cookies or block the Pixel. So the numbers will never match exactly. But if Meta shows more purchases than your system recorded as paid, look for duplicates or an early-firing Purchase first.

Can the Pixel be installed through Google Tag Manager?

Yes — that is still one source, as long as the Pixel is not also installed by a plugin or by hand. Just remember that code loaded by GTM does not appear under Ctrl+U, so check with Pixel Helper and "Test events".

More posts

All posts