Adding Facebook pixel to your store

Last updated

The Facebook Pixel is a piece of code from Facebook that you can add to your website or online store and use to retarget, optimize, and track the effectiveness of your Facebook advertising campaigns.

Using the Facebook Pixel can be a bit challenging, but here at Ecwid, we made it more than simple. You can install the Facebook Pixel to your Ecwid store without touching any code and get your ad campaigns up and running right away.

The Facebook Pixel integration is available on Ecwid paid plans. Upgrade to get this feature
  1. Before you start
  2. Create Facebook Pixel
  3. Add Facebook Pixel ID to your Ecwid store
  4. Check Facebook Pixel status

Before you start

If you haven't done so already, go to Facebook and sign up for a Facebook account. You can also read the Facebook setup instructions and FAQ about the Facebook Pixel.

Remove old Facebook Pixel code from your store

Adding a Facebook Pixel account ID to your Ecwid store when you have a pixel code already embedded could result in duplicated or partial data.

You need to make sure that Facebook Pixel isn't already installed in your Ecwid Control Panel under Settings > General > Cart page, Tracking code on "Thank you for your order" section.


Create Facebook Pixel

To create a Facebook Pixel:

  1. Go to your Facebook Pixel tab in Ads Manager and click "Create a Pixel".
  2. Enter a name for your pixel. You can have only one pixel per ad account, so choose a name that represents your business.
  3. Check the box to accept the terms.
  4. Click "Create Pixel".
  5. On the next screen, click "Copy and Paste the Code".


6. Copy the Pixel code, paste it into a .doc or .txt file, select your Pixel ID, and copy it.


Add Facebook Pixel ID to your Ecwid store

Now you can easily add your Facebook Pixel to your Ecwid store. Go to your Сontrol Panel > Settings > General > Tracking and Analytics page and paste your Facebook Pixel ID there. Save the changes.


The installed Pixel will support the most of standard events automatically:

  • ViewContent: a product or a category page is viewed
  • Search: a product search query is made
  • AddToCart: a product is added to the shopping cart (a click on the "Add to cart" button)
  • InitiateCheckout: a person enters the checkout flow (a click on the "Checkout" button)
  • AddPaymentInfo: a person is halfway through the checkout flow (payment information is saved)
  • Purchase: an order is is completed (landing on the "Thank you for your order" page)

Check Facebook Pixel status

Now you need to verify that your Facebook Pixel is working.

  1. Navigate to your store to get the Pixel triggered.
  2. Go back to the Pixels tab in Facebook Ad Manager and check your Pixel’s status. The green light means it’s active.


It might take up to twenty minutes to activate your Pixel.

All your Facebook Pixel activity will be displayed in your Ad Manager profile as a graph showing how many times the Pixel was triggered. Below you’ll see the tabs with the stats for the Pixel events.


To make advertising more efficient, you can also add your products to Facebook Product Catalog.


Back to top
Was this article helpful? 6 out of 8 found this helpful