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¶
- Go to Facebook Events Manager
- Sign in to your Facebook Business account
- Select your pixel (or create a new one)
- Click Continue Pixel Setup
- Choose Install code manually
- 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¶
- In your store admin, go to System Settings > Plugins
- Find the Meta Pixel card
- Click Configure
- Enable the plugin using the toggle switch
- Paste your complete pixel code in the Pixel Script field
- 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:
- Install the Meta Pixel Helper Chrome extension
- Visit your store website
- Click the extension icon - it should show your pixel is active
- Go to Facebook Events Manager > Test Events
- 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.