Meta Pixel and Conversions API: A Beginner's Setup Guide

Edukatz Meta TeamUpdated · 4 min read · 860 words
SETUP & TRACKINGMeta Pixel andConversions API: ABeginner's Setup GuideEdukatz Meta · Meta Ads guide
Quick answer

The Meta Pixel is a code on your website that tells Meta when someone views a page, becomes a lead or buys. Conversions API sends the same events from your server so ad blockers and privacy settings don't hide them. Together they let Meta optimise for real results, build retargeting audiences and report cost per lead correctly.

If your ads send people to a website, the Meta Pixel is not optional. Without it, Meta can only see clicks. It does not know which of those people filled your enquiry form or bought your course — so it keeps finding more "clickers" instead of more customers. This guide walks through Events Manager the way you will use it on a real client account.

What the Pixel does

  • Measures results: leads, registrations and purchases appear in Ads Manager with cost per result and ROAS.
  • Optimises delivery: with a Leads or Sales campaign set to a website event, Meta shows ads to people similar to those who converted.
  • Builds audiences: website visitors, people who viewed a course page, people who started checkout — for retargeting and lookalikes.

Step 1: create a dataset

In Events Manager, click Connect data sources → Web. Meta now calls a pixel a dataset. Give it a clear name (e.g. "Edukatz website") and enter your website. Then choose how to connect:

  • Conversions API and Meta Pixel — recommended; most reliable.
  • Meta Pixel only — quickest; some events will be lost to ad blockers and iOS settings.
  • Partner integration — WordPress, Shopify, Wix and others connect with a plugin, no code.

Step 2: choose your events

The base code sends PageView on every page. Then add standard events for the actions that matter to the business:

BusinessMain eventWhere it fires
Course, coaching, servicesLeadThank-you page after the enquiry form
Any business with WhatsApp / call buttonsContactClick on the WhatsApp or call button
Demo or consultation bookingScheduleBooking confirmation
Online shopViewContent, AddToCart, InitiateCheckout, PurchaseProduct page, cart, checkout, order confirmation

For purchases, always send the value and currency (e.g. fbq('track', 'Purchase', {value: 1999, currency: 'INR'})), so Ads Manager can show purchase value and ROAS.

Step 3: install the code

Paste the base code inside the <head> of every page — usually in your theme header, or via Google Tag Manager. Place the event code on the page or button where the action happens. A classic mistake is firing Lead on the form page itself; then every visitor counts as a lead. Fire it on the thank-you page or on a successful submit.

Step 4: test events

Open the Test events tab in Events Manager, enter your website URL and browse it. Within seconds you should see PageView, and when you submit the form, Lead. You can also install the Meta Pixel Helper extension in Chrome to check each page. Don't run conversion campaigns until test events show up correctly.

Step 5: Conversions API

Browsers block more and more tracking. Conversions API (CAPI) sends events directly from your server to Meta. Most small businesses use one of these:

  • A partner integration (WordPress or Shopify plugin) that turns CAPI on with a toggle.
  • The Conversions API Gateway, a hosted setup from Events Manager.
  • A developer integration that sends events from your backend.

When both Pixel and CAPI send the same event, include the same event_id so Meta deduplicates it and doesn't count it twice. Meta shows an Event Match Quality score; sending hashed email and phone with server events improves it.

Step 6: verify your domain

In Business settings → Brand safety → Domains, add your domain and paste the facebook-domain-verification meta tag into your home page head (or use a DNS TXT record). Verification proves you own the website and lets you control which events are used for optimisation.

Common Pixel problems

  • Duplicate events: the Lead event fires twice (once from the theme, once from a plugin), so Ads Manager shows double the real leads. Check with Pixel Helper and keep only one source — or deduplicate with event_id.
  • Wrong page: Lead fires on the contact page instead of after submission. Results look amazing, sales don't follow.
  • Pixel on some pages only: a landing page built in a separate tool doesn't have the code, so visitors from ads are never counted.
  • No value on purchases: you can't see ROAS or use a ROAS goal.

How the Pixel changes your campaign

With a working Pixel, you can choose Website as the conversion location and optimise for Lead or Purchase. Meta's delivery then learns from every conversion: it notices that, say, women aged 25–34 in Indore who watched your Reel to the end convert well, and finds more people like them. Without the Pixel, the best you can do on a website is optimise for landing page views — people who load the page, not people who buy.

Checklist

  • Dataset created with the right website.
  • Lead (or Purchase) event fires only on success.
  • Test events received.
  • Conversions API on, with deduplication.
  • Domain verified.

Practise every step in the Edukatz Meta account: Events Manager walks you through creating the dataset, choosing events, testing, turning on Conversions API and verifying the domain. Website Leads and Sales campaigns can't be published there until the Pixel is in place — just like in real life.

Frequently asked questions

Is the Facebook Pixel the same as the Meta Pixel?

Yes. It was renamed Meta Pixel, and in Events Manager it is now called a dataset.

Where should the Lead event fire?

On the thank-you page or after a successful form submit — never on the page that shows the empty form.

Do I need Conversions API if I have the Pixel?

It is strongly recommended. It recovers events that browsers block, which improves both reporting and optimisation.

Edukatz Meta Team

Practical Meta Ads guides by Edukatz trainers — written for beginners and tested in our training accounts.