ShopBase Help Center

Explore How-To's and learn eCommerce best practices from our knowledge base.

Home Set up Facebook Pixel IDs and Conversions API

Set up Facebook Pixel IDs and Conversions API

This article is also available in:

This article explains how to integrate Facebook Pixel and Access Token to set up pixel and conversions API in ShopBase, helping you create effective ads campaigns for your store.

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: Track customer activities across the entire store.

  • Product-specific Facebook Pixel & Conversion API: Track customer activities for a specific product only.

  • Collection-specific Facebook Pixel & Conversion API: Track customer activities for products within a specific collection only.

It is optional, but recommended, to have both Facebook Pixel ID and Access Token.

You must set up the Universal Facebook Pixel & Conversion API before installing any product-specific or collection-specific pixel.

D. Set up Universal Facebook Pixel & Conversion API

  1. Log in to your store admin & paste the Pixel ID and access token.

    Go to Marketing & Sales > Sales Channel > Facebook.

    Paste the Pixel ID and access token into the corresponding fields. If you use the Theme Editor, go to Online Store > Preferences > Facebook Pixel & Conversions API.

  2. 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 product-specific Facebook Pixel & Conversion API

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.

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 collection-specific Facebook Pixel & Conversion API

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.

For the Pixel ID & Access Token attached in a product/collection to work, you must first install the Universal Pixel ID in your store.

Only 1 Pixel ID & Access Token can be attached to each product or collection, and the Access Token must match its Pixel ID.

G. Facebook pixel events

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 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.

Custom events

  • CheckoutButtonClicked: When a visitor clicks Checkout Button on Cart Drawer or Cart Page.

  • AddShippingInfo: When a visitor submits shipping info and click button Continue to Shipping method (3-step checkout only).

  • SelectShippingMethod: When a visitor selects a shipping method and click button Continue to Payment method (3-step checkout only).

  • UseCouponCode: When user applies coupon code successfully.

H. 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).

Updated about 19 hours ago