This article will guide you on how to install a Facebook Pixel on your Cratejoy site.
This article only applies to the old designer. Not sure which designer you have? Check here.
Using a Facebook tracking pixel, you can track how well Facebook ads perform in terms of real purchases on your site.
Cratejoy sites built with the new designer have built-in support for adding a Facebook pixel without any coding required! Let's get started.
Create a pixel via Facebook Ad Manager
Assuming you already have a Facebook Ads account setup, go to Ads Manager to create a new pixel. Click on the green "Create a Pixel" button.
Name your pixel and click the "Create Pixel" button.
Next, copy the "Pixel ID" under the name of your new pixel. Make sure to only grab the numbers!
Add the Pixel ID to your theme
First, open the "Design" tab on the main Cratejoy sidebar
Next, open the Designer for the theme you want to change
Next, open the Settings
Next, open the Site Settings
Next, paste the Pixel ID into the "Facebook Pixel ID" field
That's it! Let's make sure to save your changes.
Note: If you have previously installed a Facebook Pixel to your Old Designer theme by manually adding a script to your thank_you.html file using the Code Editor, you may get duplicate Pixel events recorded. You can remove the Facebook Pixel script from thank_you.html to resolve this.
The following events are recorded with the built-in integration:
- PageView on every page
- InitiateCheckout on the checkout page, with the order value, currency, and number of items
- Purchase on the thank you page, which is the page customers are directed to upon successful purchase, also with the order value, currency, and number of items
- Add to cart
- Subscribe on the thank you page if a product is a subscription based one.
If the customer is logged in, their name and email will be recorded.