How to add Facebook pixel

Learn how to set up Facebook pixel in Finqu online store.

Written By Finqu Tuki

Updated at April 21st, 2022

About Facebook pixel

Facebook pixel is a helpful tool if you advertise your online store on Facebook. It helps you reach your target audience better and gives you information about your ads' efficiency. 

You can generate the pixel code by following the instructions on Facebook's support pages.

Adding the code to the online store

  1. Go to Online store > Snippets.

  2. Click Add on the Javascript (JS) section.

  3. Paste the code into the field and click Save.

Adding the code to the online store's checkout page

You can add the code also to the online store's checkout page. Then you can see information about customers' purchases and the conversions of your ads.

  1. Go to Settings > Checkout.

  2. Click Add on the Javascript (JS) section.

  3. Paste the code into the field and click Save

Adding a purchase event to the thank-you page

You can also use a purchase event when you add the pixel to the Thank you page (code below). Insert the event just before the </script> tag at the end of the pixel.

Delete

It's important to add the purchase event only to the thank you page. Otherwise, purchases are not sent correctly to Facebook.

Here's the purchase code that you can add to the thank you page:

fbq('track', 'Purchase', {value: {{ checkout.order.total }}, currency: 'EUR'});

Testing the Facebook pixel

It's worthwhile to test the Facebook pixel after you've added it to the online store. There's a Pixel helper tool available for that purpose.