Skip to content

Facebook Pixel (Meta Pixel)

Facebook Pixel (Meta Pixel) allows you to track visitor actions on your website and use that data for Facebook ad targeting, conversion tracking, and audience building.

Setup

  1. Go to Meta Events Manager and create a Pixel if you don't have one. Copy your Pixel ID (a numeric string, e.g. 123456789012345).

  2. In your admin panel, go to Admin -> Settings -> Ecommerce -> Tracking.

  3. Enable Facebook Pixel (Meta Pixel).

  4. Paste your Pixel ID in the Facebook Pixel ID field.

  5. Optionally enable Facebook Pixel debug mode to log events in the browser console for troubleshooting.

  6. Click Save.

TIP

After saving, the pixel base script (fbq('init', ...) and PageView event) is automatically injected into every page of your website, including checkout pages.

Tracked Events

The following Meta Pixel events are tracked automatically:

Server-Side Events

These events are pushed from the server when pages load:

EventTriggerData
PageViewEvery page loadAutomatic
ViewContentProduct detail pagecontent_ids, content_name, content_type, content_category, contents, currency, value
ViewCategoryCategory pagecontent_category, content_ids, content_type
InitiateCheckoutCheckout pagecontent_ids, content_name, contents, currency, num_items, value
PurchaseOrder success pagecontent_ids, content_name, content_type, contents, currency, value, order_id

Client-Side Events

These events fire via JavaScript when users interact with the site:

EventTriggerData
AddToCartAdd product to cartcontent_ids, content_name, content_type, contents, currency, value
AddToWishlistAdd product to wishlistcontent_ids, content_name, content_type, currency, value
AddToCompareAdd product to compare (custom event)content_ids, content_name, content_type, currency, value
RemoveFromCartRemove product from cart (custom event)content_ids, content_name, content_type, contents, currency, value
ViewContentClick on a product linkcontent_ids, content_name, content_type, currency, value
SearchSubmit a search or filter formsearch_string, content_type
CompleteRegistrationCustomer registration or newsletter signupcontent_name, status, currency, value
LeadContact form submissioncontent_name, content_category
AddPaymentInfoSelect payment method at checkoutcurrency, value, payment_type

INFO

Events marked as "custom event" use fbq('trackCustom', ...) instead of fbq('track', ...). Custom events can be used in Facebook Ads for custom audience building but are not standard conversion events.

Verifying Your Pixel

Method 1: Browser Console (Debug Mode)

  1. Enable Facebook Pixel debug mode in admin settings.
  2. Open your website in Chrome and press F12 to open Developer Tools.
  3. Go to the Console tab.
  4. Look for blue messages like Facebook Pixel Debug Mode Active and green messages for each event fired.

Method 2: Meta Pixel Helper Extension

  1. Install the Meta Pixel Helper Chrome extension.
  2. Visit your website.
  3. Click the extension icon - it shows all pixel events firing on the page.

Method 3: Facebook Events Manager

  1. Go to Meta Events Manager.
  2. Select your Pixel.
  3. Go to the Test Events tab.
  4. Enter your website URL and click Open Website.
  5. Browse your site - events will appear in real-time in the Test Events panel.

WARNING

It may take up to 24 hours for event data to appear in the Events Manager overview. Use Test Events for immediate verification.

Currency Handling

The pixel automatically uses your store's active currency. For zero-decimal currencies (JPY, VND, KRW, etc.), values are rounded to whole numbers. For all other currencies, values are rounded to 2 decimal places.

Troubleshooting

IssueSolution
No events in Events ManagerVerify the Pixel ID is correct and the toggle is enabled. Clear your site cache.
Events not firingCheck browser console for JavaScript errors. Ensure no ad blocker is active.
Duplicate eventsThis is normal - some events fire from both server and client side for redundancy. Facebook deduplicates them automatically.
Wrong currency or valuesCheck your store's active currency in Admin -> Ecommerce -> Currencies.
Pixel Helper shows warningWarnings about "non-standard parameters" are safe to ignore for custom events.