Ad Platforms
Pixel Issues

Facebook Pixel Setup & Troubleshooting

What is Facebook Pixel?

Facebook Pixel is a code snippet that tracks visitor actions on your website, enabling conversion tracking, optimization, and remarketing.

Setting Up Your Pixel

Step 1: Create a Pixel

  1. Go to Events Manager in Business Manager
  2. Click "Connect Data Sources"
  3. Select "Web" → "Facebook Pixel"
  4. Name your pixel and enter your website URL

Step 2: Install Pixel Code

Choose one method:

Method A: Manual Installation

<!-- Facebook 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 Facebook Pixel Code -->

Method B: Partner Integration

  • Shopify, WordPress, Wix, etc. have built-in integrations
  • Follow platform-specific instructions

Step 3: Connect Pixel to Ad Account

  1. Go to Business Settings
  2. Navigate to "Data Sources" → "Pixels"
  3. Click "Assign Assets"
  4. Select your Ad Account
  5. Save changes

Common Issues & Solutions

Pixel Not Showing in Campaign Setup

Solution:

  1. Verify pixel is assigned to your ad account
  2. Check Business Manager → Settings → Data Sources
  3. Ensure you have proper permissions
  4. Refresh your connection in BoxNCase AI

No Events Firing

Solution:

  1. Use Facebook Pixel Helper Chrome extension
  2. Check for JavaScript errors in console
  3. Verify pixel ID matches
  4. Test in Events Manager's Test Events tool

Duplicate Events

Solution:

  1. Check for multiple pixel installations
  2. Review GTM/tag manager setup
  3. Ensure pixel isn't fired twice on same page

Event Tracking

Standard Events

  • ViewContent: Product/content views
  • AddToCart: Add to cart actions
  • Purchase: Completed purchases
  • Lead: Form submissions
  • CompleteRegistration: Sign-ups

Custom Events

fbq('trackCustom', 'ShareDiscount', {value: 10});

Best Practices

  • Test pixel before launching campaigns
  • Use Conversions API for better tracking
  • Set up custom conversions for specific goals
  • Monitor pixel diagnostics regularly

Next Steps