How do I set up and install the Meta Pixel?
Setting up a pixel involves 2 steps:
- Create your pixel and set up the base code on your website. You can use a partner integration, if available, or add code manually to your website.
- Set up events on your website to measure actions like making a purchase. You can use a partner integration, the point-and-click event setup tool, or add code manually to your website.
There are several options for how to set up your pixel and events, and you’ll be guided through the available options during setup. If you set up your pixel or events manually, you may need a developer's help to add the code to your website.
If you share events with Meta using your pixel, we recommend using the Conversions API too. The Conversions API helps improve the performance and measurement of your Meta ad campaigns by working with your Meta Pixel. Learn more about the Conversions API and how it works.
Prerequisites
- You need a business website.
- You or your developer must be able to update your website's code for manual pixel setup using code.
Set up the Meta Pixel and events on your website
- Go to Meta Events Manager.
- Click Connect data and select Web.
- Click Connect.
- Enter a name for your pixel, then click Create pixel. This creates a new ID, viewable in Events Manager.
- Note: Events from your Meta Pixel are shared to a dataset, which groups events from different sources. Your new dataset ID is the same as your new pixel ID.
- Learn more about datasets.
- Your next steps depend on if you have a website or not:
- If you have a website, enter your website URL to check for easy partner integration setup options and click Check.
- If a partner integration is available to you, you’ll see it on the screen. Click Next and follow the onscreen instructions to set up your pixel and events through your partner’s website.
- If a partner integration is not available, click Next.
- If you don’t have a website, click to check the box next to I don't have a website and click Continue.
- Select how you would like to connect your data with Meta: Get guidance (recommended) or Do it yourself.
- Select Get guidance if you would like setup recommendations. You can skip the rest of the instructions in this article if you select this option, and you can follow the onscreen instructions in Events Manager instead.
- Select Do it yourself if you already know how you’d like to connect your data and don’t want setup recommendations. If you select this option, follow the rest of the instructions in this article.
- Select Conversions API and Meta Pixel or Meta Pixel only as your setup option, then click Next.
- If you select Conversions API and Meta Pixel, choose how you want to set up the Conversions API and pixel: Set up with partner integration, Set up with Conversions API Gateway or Set up manually. If you’re not sure which option to choose, you can compare Conversions API setup options by cost and complexity.
- If you select Set up with partner integration, select your partner and follow the ons-creen instructions to set up the pixel, Conversions API and events.
- If you select Set up with Conversions API Gateway, follow the onscreen instructions to set up the pixel, Conversions API Gateway and events.
- If you select Set up manually, follow the on-screen instructions to create personalized instructions to set up the pixel, Conversions API and events. On the last screen, you’ll have the option to set up the Conversions API yourself using the personalized instructions or send the instructions to a developer. If you need help creating the instructions, you can learn how to set up the Conversions API using personalized instructions.
- If you select Meta Pixel only, choose how you want to set up your pixel code: Install code manually or Check for partner. If you have a developer who will set up your pixel for you, you can click Email instructions instead.
Install the code manually
- Copy the pixel base code.
- Find the header of your website or locate the header template in your CMS or web platform.
- Paste the base code at the bottom of the header section, just above the closing head (</head>) tag, on every page of your website. Your ID will be included in your base code, and you can use one ID across your whole website.

- Click Continue.
- Optional: Toggle on Automatic advanced matching and verify the customer information you want to send.
- Click Continue.
- Add events using the event setup tool or by manually adding code to your website.
- To use the event setup tool: Click Open event setup tool and follow the onscreen instructions to add events and parameters without the need for additional coding. If you need additional help, learn how to use the event setup tool.
- To use manual setup: Click Install events using code to learn how to set up the Meta Pixel using code.
Related Articles
Meta Ads Key Metrics Explained
Meta Ads Metrics: A Complete Guide Overview This article explains the most commonly used performance metrics in Meta Ads Manager. Understanding these terms will help you analyze results, optimize campaigns, and make informed decisions. ? Bid ...
How to set u a iContact connector
What Is a Connector? Franchise Ninja offers a great feature called Connectors. Connectors automatically connect emails and newsletters using programs, such as iContact, which we will discuss in this article, to get your leads into your mail platform ...
How To Install Franchise Ninja on GoDaddy Website Builder v8+
The latest GoDaddy Website Builder does not allow custom JavaScript to be added directly to the <head> or <body> of your website. You can only add custom code to sections of individual pages using their built-in HTML element. If you're using the ...
How to set up the GetResponse connector
What Is a Connector? Franchise Ninja offers a great feature called Connectors. Connectors automatically connect emails and newsletters using programs such as GetResponse, which we will discuss in this article, to easily get your leads into your mail. ...
How Do You See What Ads a Company Is Running?
To see what ads a company is currently running, you can use several ad transparency tools provided by major platforms, as well as some third-party solutions. Here are the most effective methods: Scroll down for a table at the end. 1. Google Ads ...