Set up Facebook Pixel IDs and Conversions API
This article explains how to integrate Facebook Pixel and Access Token to set up Conversions API in ShopBase, helping you create effective ads campaigns for your store.
To see more information on how to set up Facebook ads for your ShopBase online store, click this link.
A. Creating a Facebook pixel
B. Generating an Access token for Conversions API
C. Types of Facebook Pixel & Conversion API in ShopBase
D. Set up Universal Facebook Pixel & Conversion API
E. Set up single-item Facebook Pixel & Conversions API for products
F. Set up Single-item Facebook Pixel & Conversions API for collections
G. Troubleshoot duplicate events
H. Facebook pixel events
To integrate Facebook Pixel into ShopBase, you need to create a Pixel in Facebook Events Manager. See more information on how to create a Facebook Pixel here.
To establish Conversions API ads optimization, you need to generate an Access token for each Pixel in your store. See more information on how to generate an access token here.
ShopBase currently supports 3 types of Facebook Pixel & Conversion API.
Universal Facebook Pixel & Conversion API: To track all customers' behaviors across the entire store, including all products and collections.
Single-item Facebook Pixel & Conversion API for products: To track all customers' behaviors related to a specific product where the pixel is attached.
Single-item Facebook Pixel & Conversion API for collections: To track all customers' behaviors related to specific products in the collection where the pixel is attached.
Log in to your store admin & paste the Pixel ID and access token.
If you use the Theme from Theme Editor, go to Online Store > Preferences > Facebook Pixel & Conversions API.
If you use the Template from Website Builder, go to Marketing & Sales > Sales Channel > Facebook > Facebook Pixel & Conversions API.
Click Save once finished.
You can attach multiple universal Facebook Pixel IDs into your ShopBase online store by clicking Add other pixel IDs.
Go to Products > All products and select the product where you want to set up the Pixel ID & Conversions API.
In the product detail page, navigate to Facebook Pixel & Conversion API, paste the Pixel ID and Access Token.
Click Save changes once finished.
You can quickly add Pixel IDs and Access Tokens to your products when importing products into your store using CSV files.
When a product is cloned and imported to another ShopBase store, the original product's Pixel ID and Access Token can be preserved.
Go to Products > Collections and select the collection where you want to set up the Pixel ID & Conversion API.
In the collection detail page, navigate to Facebook Pixel & Conversion API, paste the Pixel ID and Access Token.
Click Save changes once finished.
You can attach only 1 single-item Facebook Pixel ID & Access Token into a product or a collection. An Access Token must be linked to its designated Pixel ID.
For the Pixel ID & Access Token attached in a product/collection to work, you must first install the Universal Pixel ID in your store.
After you add the pixel to your online store, you can double check to make sure that it's working by using Facebook Ads Manager. Learn about how to tell if your Facebook pixel is working from the Facebook Help Center. If you've recently added a Facebook pixel to your online store, then you need to wait for customer activity before you'll see any data in Facebook Ads Manager.
It is optional, but recommended, to have both Facebook Pixel ID and Access Token.
Purchase event are logged using your website's source code, if you have the Track Events Automatically Without Code function enabled, this leads to duplicate events being received and may affect the accuracy of your pixel reporting.
To turn automatic events off:
Go to Events Manager.
Select your pixel.
Click Settings.
Click to toggle OFF the Track Events Automatically Without Code feature under Event Setup.
Select Stop Tracking and Confirmed (additional).
Go to Overview > Purchase > Manage > Click on the trash can icon > Delete (additional).
When an action happens on your online store after you've added a Facebook pixel in ShopBase, Facebook counts the action as an event. You can use event data to learn more about how customers interact with your store. Learn more about using Facebook Pixel Standard and custom events at the Facebook Help Center.
After you integrate a Facebook pixel with your online store, it automatically tracks 6 standard events and 4 custom events, with their descriptions as follows:
Search: When a visitor makes a search
ViewContent: When a visitor views a page, for example a product page
AddToCart: When a visitor adds a product to the shopping cart
InitiateCheckout: When a visitor clicks on the checkout button
AddPaymentInfo: When a visitor enters payment information in the checkout
Purchase: When a customer completes a purchase and views the thank you page in the checkout
CheckoutButtonClicked: When a visitor clicks Checkout Button on Cart Drawler or Cart Page
AddShippingInfo: When a visitor finishes step 1 and click button Continue to Shipping method. (Only in 3-step checkout layout)
SelectShippingMethod: When a visitor finishes step 2 and click button Continue to Payment method (only in 3-step checkout layout)
UseCouponCode: When user applies coupon code successfully
In case you want to change product ID that sent to marketing services like Facebook, you can customize product tracking id.
Facebook Pixel and Conversions API will fire events simultaneously as the buyer performs an action. Facebook will automatically deduplicate these events to make sure your report display correct data.
Since iOS 14, all apps must adhere to Apple's App Tracking Transparency Framework and all users can ask apps (including Facebook) not to track their activities while using. In response to these changes, Facebook has introduced a tracking mechanism via Conversion API to ensure uninterrupted user behavior tracking. However, with this mechanism, in some cases it can take up to 72 hours for events successfully sent from ShopBase to Facebook. Therefore, the data on Facebook might be different from ShopBase admin site. For example: You might notice the Purchase event for an order on July 25th recorded on Facebook, but cannot find the same order on July 25th in your ShopBase admin site corresponding to the real time of the event. This is because the events you see on Facebook might be recorded for the activities from the previous days (The actual time of order placement on ShopBase is July 22nd).
Verify Facebook Pixel and Conversions API are working correctly
Update Facebook tracking to comply with iOS 14 App Tracking
Create Facebook Pixels and generate Access Tokens for your Pixels
Verify domain ownership on ShopBase with Facebook Business Manager
Configure conversions events in Facebook Events Manager
Overview of Preferences
To see more information on how to set up Facebook ads for your ShopBase online store, click this link.
In this article
A. Creating a Facebook pixel
B. Generating an Access token for Conversions API
C. Types of Facebook Pixel & Conversion API in ShopBase
D. Set up Universal Facebook Pixel & Conversion API
E. Set up single-item Facebook Pixel & Conversions API for products
F. Set up Single-item Facebook Pixel & Conversions API for collections
G. Troubleshoot duplicate events
H. Facebook pixel events
A. Creating a Facebook pixel
To integrate Facebook Pixel into ShopBase, you need to create a Pixel in Facebook Events Manager. See more information on how to create a Facebook Pixel here.
B. Generating an Access token for Conversions API
To establish Conversions API ads optimization, you need to generate an Access token for each Pixel in your store. See more information on how to generate an access token here.
C. Types of Facebook Pixel & Conversions API in ShopBase
ShopBase currently supports 3 types of Facebook Pixel & Conversion API.
Universal Facebook Pixel & Conversion API: To track all customers' behaviors across the entire store, including all products and collections.
Single-item Facebook Pixel & Conversion API for products: To track all customers' behaviors related to a specific product where the pixel is attached.
Single-item Facebook Pixel & Conversion API for collections: To track all customers' behaviors related to specific products in the collection where the pixel is attached.
D. Set up Universal Facebook Pixel & Conversion API
Log in to your store admin & paste the Pixel ID and access token.
If you use the Theme from Theme Editor, go to Online Store > Preferences > Facebook Pixel & Conversions API.
If you use the Template from Website Builder, go to Marketing & Sales > Sales Channel > Facebook > Facebook Pixel & Conversions API.
Click Save once finished.
You can attach multiple universal Facebook Pixel IDs into your ShopBase online store by clicking Add other pixel IDs.
E. Set up single-item Facebook Pixel & Conversions API for products
Go to Products > All products and select the product where you want to set up the Pixel ID & Conversions API.
In the product detail page, navigate to Facebook Pixel & Conversion API, paste the Pixel ID and Access Token.
Click Save changes once finished.
You can quickly add Pixel IDs and Access Tokens to your products when importing products into your store using CSV files.
When a product is cloned and imported to another ShopBase store, the original product's Pixel ID and Access Token can be preserved.
F. Set up Single-item Facebook Pixel & Conversions API for collections
Go to Products > Collections and select the collection where you want to set up the Pixel ID & Conversion API.
In the collection detail page, navigate to Facebook Pixel & Conversion API, paste the Pixel ID and Access Token.
Click Save changes once finished.
You can attach only 1 single-item Facebook Pixel ID & Access Token into a product or a collection. An Access Token must be linked to its designated Pixel ID.
For the Pixel ID & Access Token attached in a product/collection to work, you must first install the Universal Pixel ID in your store.
After you add the pixel to your online store, you can double check to make sure that it's working by using Facebook Ads Manager. Learn about how to tell if your Facebook pixel is working from the Facebook Help Center. If you've recently added a Facebook pixel to your online store, then you need to wait for customer activity before you'll see any data in Facebook Ads Manager.
It is optional, but recommended, to have both Facebook Pixel ID and Access Token.
G. Troubleshoot duplicate events
Purchase event are logged using your website's source code, if you have the Track Events Automatically Without Code function enabled, this leads to duplicate events being received and may affect the accuracy of your pixel reporting.
To turn automatic events off:
Go to Events Manager.
Select your pixel.
Click Settings.
Click to toggle OFF the Track Events Automatically Without Code feature under Event Setup.
Select Stop Tracking and Confirmed (additional).
Go to Overview > Purchase > Manage > Click on the trash can icon > Delete (additional).
H. Facebook pixel events
When an action happens on your online store after you've added a Facebook pixel in ShopBase, Facebook counts the action as an event. You can use event data to learn more about how customers interact with your store. Learn more about using Facebook Pixel Standard and custom events at the Facebook Help Center.
After you integrate a Facebook pixel with your online store, it automatically tracks 6 standard events and 4 custom events, with their descriptions as follows:
Standard events
Search: When a visitor makes a search
ViewContent: When a visitor views a page, for example a product page
AddToCart: When a visitor adds a product to the shopping cart
InitiateCheckout: When a visitor clicks on the checkout button
AddPaymentInfo: When a visitor enters payment information in the checkout
Purchase: When a customer completes a purchase and views the thank you page in the checkout
Custom events
CheckoutButtonClicked: When a visitor clicks Checkout Button on Cart Drawler or Cart Page
AddShippingInfo: When a visitor finishes step 1 and click button Continue to Shipping method. (Only in 3-step checkout layout)
SelectShippingMethod: When a visitor finishes step 2 and click button Continue to Payment method (only in 3-step checkout layout)
UseCouponCode: When user applies coupon code successfully
In case you want to change product ID that sent to marketing services like Facebook, you can customize product tracking id.
Facebook Pixel and Conversions API will fire events simultaneously as the buyer performs an action. Facebook will automatically deduplicate these events to make sure your report display correct data.
Since iOS 14, all apps must adhere to Apple's App Tracking Transparency Framework and all users can ask apps (including Facebook) not to track their activities while using. In response to these changes, Facebook has introduced a tracking mechanism via Conversion API to ensure uninterrupted user behavior tracking. However, with this mechanism, in some cases it can take up to 72 hours for events successfully sent from ShopBase to Facebook. Therefore, the data on Facebook might be different from ShopBase admin site. For example: You might notice the Purchase event for an order on July 25th recorded on Facebook, but cannot find the same order on July 25th in your ShopBase admin site corresponding to the real time of the event. This is because the events you see on Facebook might be recorded for the activities from the previous days (The actual time of order placement on ShopBase is July 22nd).
Related articles
Verify Facebook Pixel and Conversions API are working correctly
Update Facebook tracking to comply with iOS 14 App Tracking
Create Facebook Pixels and generate Access Tokens for your Pixels
Verify domain ownership on ShopBase with Facebook Business Manager
Configure conversions events in Facebook Events Manager
Overview of Preferences
Updated on: 28/03/2024
Thank you!