Verify Facebook Pixel and Conversions API are working correctly
Following the updates on Apple's App Tracking Transparency Framework, Facebook has introduced the Aggregated Event Measurement to provide a way that help merchants to take on Apple's limitation.
This protocol has been fully supported by ShopBase. Merchants can now set up Conversions API and fire events from both browser and server. All events received will be displayed in Facebook Events Manager.
Below is a guide on how you can make sure Facebook Pixel and Conversions API are firing events correctly from your ShopBase stores.
In this article
A. Verify Facebook Pixel is working correctly
B. Verify Conversions API is working correctly
C. Facebook Event Matching Quality
D. FAQs: Fix common warnings and alerts from Facebook
Appendix 1. Events ShopBase fires to FacebookAppendix 2. Event parameters sent to FacebookA. Verify Facebook Pixel is working correctly
To make sure Facebook Pixel is firing events correctly from your browser:



B. Verify Conversions API is working correctly
To make sure Facebook Pixel is firing events correctly from your server:


For example, your Access token is demo and your Test code is TEST42552, then you should enter demo-testcode-TEST42552 in your Access token field.

See the following article to understand more about Facebook Events Deduplication.
C. Facebook Event Matching Quality
D. FAQs: Fix common warnings and alerts from Facebook
Below are some of the common warnings and alerts you may receive in your Facebook Events Manager and actions you could take when encountering these problems.
Please note that Facebook Pixel and Conversions API are integrated natively in ShopBase (in Online store > Preferences > Facebook Pixel & Conversion API), so you don't need to attach any other scripts from Facebook in the Additional scripts section.
ShopBase has already been sending the matching value for all parameters to both the pixel and the server. However, Facebook may require some times to update data, you will receive this alert at first. If the alert keeps coming on a regular basis, you can check it in two ways:
Event setup tool from Facebook. If there are some events marked as Event setup tool in the Test event tab as in the photo below, it must be deleted so that the event is not fired repeatedly, causing data differences. Please refer to this article for more information about Facebook event setup tool.
After you completed the steps above, in the Facebook's warning, click How to fix the issue > Mark As Resolved. Facebook will automatically update when new data is available.

Appendix 1. Events ShopBase fires to Facebook
Search: When a search is made. A person lands on search results page (including no result page)*
Event Name: Search
Parameters: search_string
Visit Product Detail Page: When a key page is viewed such as a product page. A person lands on a product details page.*
Event Name: ViewContent
Parameters: content_ids, content_name, content_type, content_category, currency, value
Event Name: CheckoutButtonClicked
Parameters: content_ids, content_type, currency, value, num_items
Event Name: BuyNowButtonClicked
Parameters: content_ids, content_type, currency, value, num_items
Add to Cart: When a product is added to the shopping cart. A person clicks on an add to cart button.*
Event Name: AddToCart
Parameters: content_ids, content_type, content_category, currency, value
Start Checkout: When a person enters the checkout flow prior to completing the checkout flow. A person clicks on a checkout button, buy now, or Accelerated Checkout button (eg. Checkout with Paypal)*
Event Name: InitiateCheckout
Parameters: content_category, contents, content_brand, currency, value, num_items
Event Name: UseCouponCode
Parameters: coupon
Purchase: When a purchase is made or checkout flow is completed. A person has finished the purchase or checkout flow and lands on thank you page.*
Event Name: Purchase
Parameters: content_category, contents, content_brand, currency, value, num_items
Appendix 2. Event parameters sent to Facebook
To make sure events are fired correctly to Facebook, ShopBase is closely following Facebook's guideline on required event data parameters.
event_name, event_time, user_data, custom_data, event_source_url, event_id, action_source
em (email), ph (phone), ge (gender), db (date of birth), ln (last name), fn (first name), ct (city), st (state), zp (zip code), country (country), external_id (external ID), client_ip_address (client IP address), client_user_agent (client user agent), fbc (click ID), fbp (browser ID), subscription_id (subscription ID), fb_login_id (Facebook login ID), lead_id (lead ID)Some of these parameters are hashed as recommended from Facebook.