Here’s how to get your Facebook Pixel code step-by-step:
✅ Step 1: Go to Meta Events Manager
-
Log into your Facebook (Meta) Business Manager account.
-
Go to Meta Events Manager.
✅ Step 2: Create a Pixel
-
Click the “Connect Data Sources” button.
-
Choose “Web” and click “Connect”.
-
Select “Meta Pixel” and click “Connect” again.
-
Name your Pixel (e.g., “My Website Pixel”) and click “Continue”.
-
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
-
Meta will show you a code snippet.
-
Click “Copy Code”.
✅ Step 5: Add Code to Your Website
-
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.
-
-
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.