The Meta Pixel (formerly Facebook Pixel) remains one of the most powerful tracking tools for online businesses. Whether you run an eCommerce brand, a service-based website, a blog, or a landing page, installing Meta Pixel lets you track user behavior, optimize ad performance, and measure conversions with precision.
This 2025 guide shows you step-by-step how to create, install, verify, and optimize the Meta Pixel on any website—including Shopify, WordPress, Wix, Webflow, and custom-coded sites.
Recommended for you:
- Want to dive deeper into Pixel setup? Read How to Find the Facebook Dataset Pixel ID 2025 for a clearer understanding of Pixel identification and data connections.
- Troubleshooting event tracking? Check out Common Facebook Pixel Errors & How To Fix It to quickly resolve the most frequent issues.
- If your diagnostics show FBC warnings, Meta Missing FBC Warnings: Understanding the Facebook Click ID Absence 2025 explains why they happen and how to fix tracking gaps.
- Ready to improve data quality? Facebook Pixel Optimization: How To Train Your Facebook Pixel? guides you through strengthening event learning and conversion accuracy.
- Scaling into advanced tracking? Learn how server-side events boost attribution with How To Set Up Facebook Pixel Conversion API On Shopify.
- Need clean testing before scaling ads? Use How to Test Facebook Pixel Conversion API [Updated] for validation and debugging.
- And if you’re preparing to run better campaigns after fixing your Pixel, explore Mastering Facebook Advertising: 13 Pro Tips for Enhanced Performance to upgrade your ad strategy.
Let’s get started.

What Is Meta Pixel? (Formerly Facebook Pixel)
The Meta Pixel is a lightweight tracking script that you place on your website. It collects behavioral data and sends it back to Meta’s Events Manager. This data helps your ad account optimize delivery, improve targeting, and track important actions such as purchases, leads, page views, add-to-cart events, and more.
How Meta Pixel Works
Meta Pixel uses three pillars:
- Signals – tracking user behavior such as clicks, scrolls, purchases, and page visits.
- Events – predefined or custom actions like AddToCart, ViewContent, AddPaymentInfo, or Purchase.
- Aggregated Event Measurement (AEM) – Meta’s privacy-compliant framework for measuring conversions after iOS 14.
Every time a user interacts with your site, the Pixel fires an event and sends anonymized data to Meta for optimization and reporting.
Meta Pixel vs Facebook Pixel: What Changed?
Meta rebranded several advertising tools after its shift from Facebook Inc. to Meta Platforms. While the core functionality remains similar, here’s what changed:
- New interface: Events Manager was redesigned for better navigation.
- Privacy updates: AEM and Conversion API (CAPI) are now strongly recommended.
- Better event deduplication: Cleaner data for Purchase & Lead events.
- Meta ecosystem integration: Pixel works seamlessly with CAPI and Meta Shops.
In short, Meta Pixel is simply the evolved, privacy-ready, more reliable version of Facebook Pixel.
Requirements Before Installing Meta Pixel
Before installation, ensure you have:
- Business Manager account
- Pixel created in Events Manager
- Admin access to the Pixel
- Domain verification (recommended for AEM)
- CMS access (Shopify, WordPress, Wix, etc.) or FTP/file editor for custom sites
If your domain is not verified, certain events may not be prioritized for conversion tracking.
Read more: How to Create a Meta Pixel (Step by step)
How to Install Meta Pixel on Any Website
Below are all major installation methods used in 2025.
Option 1 — Install Meta Pixel via Code (Manual Method)
This approach works for:
- Custom HTML websites
- PHP websites
- Landing pages without CMS
- Any website with direct
<head>access
Steps
- In Events Manager → Install Code Manually
- Copy the Meta Pixel Base Code
- Paste it inside the
<head>section on every page - Add event codes (optional)
- Publish the changes
Tip: If you use global templates like header.php or main layout, you only paste the code once.
Option 2 — Install Meta Pixel Using Google Tag Manager (GTM)
A popular choice for marketers.
Steps:
- Open Google Tag Manager
- Click New Tag
- Choose Custom HTML
- Paste your Meta Pixel base code
- Set trigger to All Pages
- Save → Submit → Publish
This keeps your code clean and reduces the need to touch your site’s backend.
Option 3 — Install Meta Pixel on Popular CMS Platforms
Below is how to install Meta Pixel on top CMS platforms.
Shopify (2025 Updated)
Shopify provides two main methods to install the Meta Pixel: using the built-in Customer Events feature or installing a third-party app when you need more advanced tracking and event mapping
.Method 1 — Install Meta Pixel Directly in Shopify
- Open Shopify Admin
- Go to Settings → Customer Events
- Click Add Custom Pixel
- Paste your Meta Pixel base code into the code editor
- Save and publish
- Verify the Pixel in Meta Events Manager
This method works well if you only need to track basic events such as PageView, ViewContent, or AddToCart.
Method 2 — Use a Pixel Integration App (Recommended for Advanced Events)
If you want to track more event types, enable dynamic values, or optimize tracking after iOS14 restrictions, Shopify allows you to use third-party Pixel integration apps.
One of the popular choices among Shopify merchants globally is the Orichi Pixel app, because it provides:
- One-click installation for Facebook/Meta Pixel
- Auto-tracking for standard events (PageView, AddToCart, InitiateCheckout, Purchase)
- Full support for dynamic parameters (order value, content_ids, currency)
- Automatic data mapping from Shopify without editing theme files
- Reduced duplicate events thanks to built-in validation
- A clean, beginner-friendly interface with no coding required
This app is especially suitable for advertisers because it works seamlessly with all Shopify 2.0 themes and ensures accurate event firing. Based on real-world usage, Orichi’s Pixel app can reduce up to 80% of common tracking issues, especially for stores with medium to high traffic.
Looking for an easier, more accurate way to track Shopify events?
👉 Try Orichi Pixel App — the most precise Pixel & CAPI solution for Shopify merchants.
You can install Meta Pixel manually or use a Shopify app like Orichi Pixel for easier event tracking without editing your theme
WordPress (Two Methods)
Method 1 — Using a Plugin
Recommended plugins:
- PixelYourSite
- Insert Headers & Footers
- WPCode
Steps:
- Install plugin
- Paste Pixel ID or base code
- Save
Method 2 — Manual Code Install
Add code to: Appearance → Theme File Editor → header.php
Paste before </head>.
Wix Website
- Go to Marketing Integrations
- Choose Facebook Pixel
- Enter Pixel ID
- Enable Automatic Event Tracking
- Save
Wix does not require manual code.
Webflow
- Project Settings → Custom Code
- Paste Pixel base code in the
<head>field - Publish
Custom-coded Website (HTML/PHP)
Add Pixel inside index.html or your global header file. If you use frameworks like Laravel or Next.js, paste into your layout template.
How to Verify Your Meta Pixel Is Working
Method 1 — Meta Pixel Helper
Install the Chrome extension.
It shows:
- Pixel active/inactive
- Events firing
- Errors
Method 2 — Test Events Tool
Inside Events Manager:
- Open Test Events
- Visit your website
- Watch events fire in real time
Method 3 — Diagnostics Tab
Shows warnings like missing parameters or duplicate events.
How to Set Up Meta Events (Conversions)
Events can be installed in three ways.
- Using Event Setup Tool (Recommended for Beginners)
- Go to Events Manager
- Select your Pixel
- Choose Open Event Setup Tool
- Enter your website
- Tag buttons (AddToCart, Purchase, Lead, etc.)
No coding required.
- Manual Event Code Installation
Use when you need:
- Custom events
- Parameter-rich events
- Dynamic values (e.g., purchase amount)
Example:
<script>
fbq('track', 'Purchase', {
value: 45.00,
currency: 'USD'
});
</script>
- Using Google Tag Manager
Best for advanced marketers who want structured tagging.
You can define triggers such as:
- Clicks
- Form submissions
- DOM events
- URL conditions
Common Meta Pixel Issues & How to Fix Them
- Pixel Not Firing
- Check if code is inside
<head> - Clear CDN cache
- Disable conflicting plugins
- Duplicate Events
Occurs when multiple integrations exist (e.g., Shopify + Manual code). Solution: keep only one integration.
- Missing Parameters
Purchase events must have:
- value
- currency
- content_ids
Add them manually or via GTM.
- Domain Not Verified
Verify in Brand Safety → Domains.
- Event Not Prioritized
Set your top events inside AEM configuration.
Meta Pixel Best Practices (2025 Edition)
These strategies help maximize data accuracy and ad performance.
- Use Pixel + CAPI Together
This creates a hybrid tracking system that improves:
- Data accuracy
- Attribution
- Event deduplication
- Use Advanced Matching
Let Pixel match emails, phone numbers, and client data (hashed).
- Prioritize High-Value Events
Purchase, Lead, AddToCart, and CompleteRegistration should rank highest.
- Add Conversion API (CAPI)
Use server-side tracking to capture conversions lost due to privacy limitations.
- Use Clean Event Naming
Avoid custom event chaos. Use Meta’s standard events.
- Test Your Events Regularly
Check Diagnostics weekly to avoid event mismatches.
Meta Pixel Code Templates (Copy/Paste)
Base Code
<!-- Meta Pixel Code -->
<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', 'YOUR_PIXEL_ID');
fbq('track', 'PageView');
</script>
<!-- End Meta Pixel Code -->
Purchase Event Template
fbq('track', 'Purchase', {
value: 99.99,
currency: 'USD'
});
Lead Event
fbq('track', 'Lead');
Meta Pixel Setup Checklist (2025)
Before Installation
☐ Business Manager created
☐ Pixel created
☐ Domain verified
☐ Admin access granted
Installation
☐ Pixel base code added
☐ Events added (manual/tool/GTM)
☐ No duplicate integrations
Post-Installation
☐ Pixel Helper shows events
☐ Test Events validated
☐ AEM configured
☐ Diagnostics has no errors
☐ CAPI enabled
Conclusion
The Meta Pixel is essential for modern advertising. It helps track visitors, optimize campaigns, and ensure your ads reach the right audience at the right time. With this 2025 guide, you can create, install, verify, and optimize the Meta Pixel on any website—Shopify, WordPress, Wix, Webflow, or even a custom-coded site.
Follow the steps, use best practices, and keep your tracking clean.
Your Meta campaigns will thank you.
![]()