The BigCommerce Meta pixel integration sends your shoppers’ behavioral data to Meta to enhance the efficacy of your Meta advertising and reporting.

Our solution includes support for Meta's JavaScript tracking pixel, which is set up as a first-party cookie. We also support Facebook's Conversions API, which acts as a fallback mechanism to address situations where data is not sent via the JavaScript tracking pixel.

For merchants providing shoppers with the ability to set their data privacy preferences, shopper data is only shared with Meta if they provide consent to the "Targeting; Advertising" category.

 
 

Requirements

  • If you have not already done so, you’ll need to create a Meta pixel.
  • You need to be able to log in to the Facebook account that owns the Meta Pixel you want to use.
 
 

Setting Up Meta Pixel in BigCommerce

Go to Advanced SettingsData Solutions. Under Web analytics, click Connect next to Meta Pixel.

Meta Pixel under Web analytics in Data Solutions

Click the Connect with Meta Pixel button. You will be redirected to Facebook to log in or to confirm the currently logged-in account is the correct one. Click Continue as… once you are logged in with the correct account.

Facebook account login confirmation

Click Continue to connect BigCommerce to Facebook.

Select your Business Manager, Facebook Page, and Meta Pixel, then click Continue.

Facebook account settings confirmation

For What is BigCommerce allowed to do, leave all options enabled and click Next.

Once connected, you’ll see a success message. Click Done to return to BigCommerce.

Edit Connection / Disconnect

After setup, if you need to change any of your settings (like which Facebook account, Business Manager, Facebook Page, or Meta Pixel to use), go to Advanced SettingsData Solutions and click on Meta Pixel. Click Edit connection to be redirected to Facebook and go through the setup process again.

Edit connection button

To stop sending data to Facebook, click Disconnect.

Disconnect button

 
 

Event Data Sent to Meta

Data is shared with Meta in the form of events. An event occurs when a shopper performs a specific action at a specific moment in time. Below you'll find detailed information on what events are supported by BigCommerce.

Meta Javascript Pixel FieldMeta Conversions API FieldExample value sent to MetaDescription
idevent_id1234567891234Randomly generated event id, unique per event per storefront
evevent_namePageViewName of the event
dlevent_source_urlhttps://site.comDirect link / URL
N/Aaction_source"website" or "physical store" 
rlN/Ahttps://google.comRedirect link / URL (previous page)
tsevent_time1609436797071Timestamp
fbcNot supported fb.1.1609264779718...When a user clicks on an ad on Facebook, the link sometimes includes a fbclid query parameter. When the user lands on the target website, if the website has a Meta pixel that uses first-party cookies, the pixel automatically saves the fbclid query parameter to an _fbc cookie for that website domain. See About Cookie Settings For Your Meta Pixel for information on first-party cookie settings. Source
fbpfbpfb.1.1609261681576.1975923224When the Meta pixel is installed on a website, and the pixel uses first-party cookies, the pixel automatically saves a unique identifier to an _fbp cookie for the website domain if one does not already exist. Source
DATA PROCESSING PARAMETERS
dpodata_processing_optionsThis is set to "LDU" if shopper has not provided consent and the store is not using the shopper cookie consent features. If we have shopper consent this is left blank. 
dpocodata_processing_options_country0 
dpostdata_processing_options_state0 
ADVANCED MATCHING PARAMETERS SENT WHEN SHOPPER IS LOGGED IN FOR ALL EVENTS
fnfn755581aab5df6cff1f739a1c5b...Customer's first name hashed
emem75c40012ccd761ab5e77dc8c...Customer's email hashed
lnlnb1f74ef7ff3e7dfa1a0541915e1...Customer's last name hashed
Additional fields automatically sent and outside of BigCommerce control
client_ip_addressNot supported  
client_user_agentuser_agent  
 
 

Event Name: PageView

Javascript tracking pixel sends an event when a shopper visits any storefront web page.

Conversions API sends an event when a shopper visits one of the following web pages:

  • Home Page
  • Product Category Pages
  • Product Detail Pages
  • Web Pages
 
 

Event Name: ViewContent

Javascript tracking pixel sends an event when a shopper visits a product detail page.

Conversions API uses the same logic.

Meta Javascript Pixel FieldMeta Conversions API FieldExample value sent to MetaDescription
content_typecontent_typeproduct_groupDenotes the parent/base product.
content_idscontent_ids["13"]

BigCommerce Product ID
This is the product.id value

valuevalue220

BigCommerce Product Sale Price
If no Sale Price is defined, then Price.

currencycurrencyUSD 
 
 

Event Name: ViewCategory

Javascript tracking pixel sends an event when a shopper visits a product category page.

Custom parameters sent:

Meta Javascript Pixel FieldExample value sent to MetaDescription
content_typeproduct_groupDenotes the parent/base product.
content_ids[ ]This was left blank and did not include an array of products shown on the category page.
content_categoryCarmen's BicycleThe name of the product category
 
 

Event Name: CompleteRegistration

Javascript tracking pixel sends an event when a shopper creates an account on the storefront through the account signup flow (does not apply to checkout flow).

Conversions API uses the same logic.

Server parameters sent:

Meta Conversions API FieldExample value sent to Meta
action_source"website" or "physical_store"
 
 

Event Name: AddToCart

Javascript tracking pixel sends an event when a shopper adds an item to a cart.

Conversions API uses the same logic.

Custom parameters sent:

Meta Javascript Pixel FieldMeta Conversions API FieldExample value sent to MetaDescription
content_ids content_ids["93"] 
content_typecontent_type"product_group" 

Server parameters sent:

Meta CAPI Field (via Conversions API)Example value sent to Meta
action_source"website" or "physical_store"

Limitations:

  • If the shopper sets the quantity to 2 or more this is ignored when calculating the value sent. The value calculation always assumes a quantity of 1.
  • Quantity changes on the cart page are not recorded.
  • If an item is removed from the cart, that is not recorded.
  • For CAPI the event_source_url (aka dl for direct link; aka request url) is not supported for this event.
 
 

Event Name: InitiateCheckout

Javascript tracking pixel sends an event when the shopper visits the checkout page.

 
 

Event Name: AddPaymentInfo

This is generated when a shopper completes an order on the order confirmation page.

Custom parameters sent:

Meta Pixel Field (via Javascript)Example value sent to Meta
content_ids

[88,93]
This is an array of product.id values.

content_typeproduct_group
 
 

Event Name: Purchase

Javascript tracking pixel sends this event when a shopper completes an order on the order confirmation page.

Conversions API sends this event whenever an order is placed, even if for some reason the shopper does not make it to the order confirmation page. This is limited to orders placed through your online storefront.

Custom parameters sent:

Meta Pixel Field (via Javascript)Meta CAPI Field (via Conversions API)Example value sent to MetaDescription
content_typecontent_typeproduct_groupDenotes a product.
content_idscontent_ids[88,93] 
contents  [ ]contents [object]"88" 
contents.discountN/A0Discount
contents.idcontents.id88BigCommerce Product ID
contents.item_pricecontents.item_price23.45Product's item price for 1 quantity Excluding Taxes
contents.nameN/A[Sample] Chemex Coffeemaker 3 CupBigCommerce Product Name
contents.price_ex_tax 49.5Product's item price for 1 quantity Excluding Taxes
contents.quantitycontents.quantity1Quantity
contents.skuN/ACC3CBigCommerce Product SKU
contents.total_ex_taxN/A49.5BigCommerce Product Price * Quantity Excluding Taxes
currency currencyUSD 
valuevalue63.5The sum of all order line items with...
shipping and taxes excluded 
all discounts included 

Server parameters sent:

Meta Conversions API FieldExample value sent to Meta
action_source"website" or "physical_store"
 
 

Event Name: Lead (subscribe to newsletter)

Javascript tracking pixel sends this event when a shopper subscribes to the newsletter and gets to the subscribe.php page.

 
 

Event Name: AddToWishList

Javascript tracking pixel sends this event when a shopper adds an item to their wishlist.

Custom parameters sent:

Meta Pixel Field (via Javascript)Example value sent to MetaDescription
content_ids ["86"]BigCommerce Product ID
content_typeproduct_groupDenotes the parent/base product.
 
 

FAQ

Can I have a different Meta Pixel for each storefront?

Yes. By default, the Meta Pixel information set up in Advanced SettingsData Solutions is “global” and applies to all connected storefronts. To override this, go to Channel Manager and click your storefront name. In the left navigation, go to Data solutions, then click Connect next to Meta Pixel.