What is Meta Pixel?
Meta Pixel connects the activity on your website with your Meta ad account. You may know the tool as Facebook Pixel, which was Meta's previous name for it. Today, Meta uses the name Meta Pixel.
The base code can record a page view with the PageView event. You can build on it by linking other events to specific actions on your website. Your website triggers the code when a visitor opens a page or carries out an action you've chosen to measure. The code then sends the event to Meta through the visitor's browser.
You can send more information with each event. Meta calls this information parameters. A product ID, for example, tells Meta which product the event is about, while value and currency can give you more information about a purchase.
How do you use Meta Pixel?
You start by choosing which action counts as a conversion for your campaign. For a webshop, you might choose a completed purchase. For a lead generation campaign, you might choose a submitted form. You can also record the steps before the conversion, so you can tell the difference between people who show interest and people who reach the goal.
You can use the events to build audiences based on the activity on your website. For example, you can distinguish between people who have viewed a product and people who have added it to their basket. You can also start from an existing audience and let Meta find people similar to it. Meta calls this a lookalike audience.
Why should you use Meta Pixel?
You can compare ad interactions with the actions visitors then take on your website. This helps you assess which ads and campaigns Meta links to conversions. You can then tell the difference between a campaign that leads to product views and a campaign that Meta links to purchases.
Meta can also use the conversion you've chosen to optimise the delivery of your ads. In other words, Meta can direct delivery towards people who are likely to take the action you've set as your goal.
Which events and conversions can you use?
Standard events for common actions
Meta has given its standard events fixed names and purposes. You can use ViewContent for a product view, AddToCart for adding to the basket and InitiateCheckout for the start of checkout. You can use Purchase for a completed purchase and Lead for an action such as a form submission.
Custom events you define yourself
You can create a custom event if no standard event fits the action you want to measure. You choose the name yourself and decide which action should trigger the event.
Custom conversions to narrow down your goals
You can define a custom conversion based on events you already record. For example, you can use a specific URL or its parameters to narrow down which events should count. You don't necessarily need to create a new event for every goal.
How do you use Meta Pixel in practice?
You can install the base code directly on your website or through your CMS or a marketing platform. You then connect the pixel to your Meta ad account and choose the events that match your goals. You test the setup by carrying out the actions yourself and checking whether Meta receives the right events and parameters.
For example, you can test a purchase flow in a webshop:
You open a product page and check whether Meta receives ViewContent. You add the product to the basket and check AddToCart. You then complete the purchase and check whether Purchase contains the expected purchase value and currency.
What should you watch out for?
Meta Pixel doesn't necessarily give you a complete picture of your conversions. You can compare the numbers in Meta with your own sales or lead figures to see where they differ.
You can supplement the browser events with the Conversions API, which sends events directly from your server to Meta. Meta recommends using the same eventID for both versions of the same event if both the pixel and the server send it. This helps Meta recognise the overlap and avoid counting the action twice.
You also need to make sure your use of Meta Pixel complies with the applicable data protection and consent requirements.