Skip to content

Meta Pixel (Facebook Pixel)

What It Does

Track how people interact with your store after seeing your Facebook or Instagram ads. Meta Pixel helps you measure ad performance, build targeted audiences, and optimize your advertising campaigns for better results.

When to Use It

Enable this plugin if you:

  • Run Facebook or Instagram ads
  • Want to track conversions from social media campaigns
  • Need to create custom audiences for retargeting
  • Want to optimize ad delivery to people likely to buy
  • Need to measure return on ad spend (ROAS)

How It Works

The pixel tracks visitor actions on your store (page views, add to cart, purchases) and sends this data to Facebook. This helps Facebook show your ads to the right people and measure campaign effectiveness.


Setup Instructions

Step 1: Get Your Pixel Code

  1. Go to Facebook Events Manager
  2. Sign in to your Facebook Business account
  3. Select your pixel (or create a new one)
  4. Click Continue Pixel Setup
  5. Choose Install code manually
  6. Copy the entire code snippet (from <script> to </script>)

The code looks like this:

<!-- 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 -->

Step 2: Enable the Plugin

  1. In your store admin, go to System Settings > Plugins
  2. Find the Meta Pixel card
  3. Click Configure
  4. Enable the plugin using the toggle switch
  5. Paste your complete pixel code in the Pixel Script field
  6. Click Save

Configuration Fields

Enabled

Type: Toggle Description: Turn the plugin on or off

Pixel Script

Type: Text Area Required: Yes Description: The complete Meta Pixel tracking code from Facebook Events Manager, including the <script> tags

What to paste: Copy everything from <script> to </script> from the Events Manager


Verification

After enabling the plugin:

  1. Install the Meta Pixel Helper Chrome extension
  2. Visit your store website
  3. Click the extension icon - it should show your pixel is active
  4. Go to Facebook Events Manager > Test Events
  5. You should see your page views appearing in real-time

Common Events Tracked

The plugin automatically tracks:

  • PageView - Every page visit
  • ViewContent - Product page views
  • AddToCart - Items added to cart
  • InitiateCheckout - Checkout started
  • Purchase - Completed orders

These events help Facebook optimize your ad delivery.