Here’s how to get your Facebook Pixel code step-by-step

Here’s how to get your Facebook Pixel code step-by-step:


Step 1: Go to Meta Events Manager

  1. Log into your Facebook (Meta) Business Manager account.

  2. Go to Meta Events Manager.


Step 2: Create a Pixel

  1. Click the “Connect Data Sources” button.

  2. Choose “Web” and click “Connect”.

  3. Select “Meta Pixel” and click “Connect” again.

  4. Name your Pixel (e.g., “My Website Pixel”) and click “Continue”.

  5. Enter your website URL if asked (optional).


Step 3: Choose How to Install

You’ll get two options:

  • Partner Integration (e.g., Shopify, WordPress, Squarespace)

  • Manual Installation

Choose Manual Installation if you want the code yourself.


Step 4: Copy Your Pixel Code

  1. Meta will show you a code snippet.

  2. Click “Copy Code”.


Step 5: Add Code to Your Website

  1. Paste the base Pixel code into the <head> section of every page of your website.

    • Most website platforms let you add it via a header script section.

  2. Save and publish the changes.


Step 6: (Optional) Add Events

  • Use Event Setup Tool to track button clicks, form submissions, purchases, etc.

  • Or add custom code for standard events like AddToCart, Purchase, etc.


Step 7: Test

Use the Meta Pixel Helper Chrome extension to check if your Pixel is working.