Skip to content
2.32K viewsConversion TrackingFacebook Tracking

Hi, I was wondering if is any way to add a Facebook pixel to my Shopify store manually?


Lebesgue Changed status to publish January 9, 2024

To manually add the Facebook pixel to a Shopify website, you can follow these steps:

  1. Log in to your Facebook Ads account and navigate to the Pixels tab in the Events Manager.
  2. Click on the “Create a Pixel” button.
  3. Give your pixel a name and click “Create Pixel”.
  4. Click on the “Add Pixel to Website” button and select “Manually Install the Code Yourself”.
  5. Copy the pixel code provided by Facebook.
  6. Log in to your Shopify account and navigate to the “Online Store” section of the sidebar.
  7. Click on “Themes” and then on the “Actions” button next to the theme you want to edit.
  8. Select “Edit Code” from the drop-down menu.
  9. Locate the theme.liquid file in the layout folder and open it.
  10. Scroll to the bottom of the file and paste the pixel code before the closing </body> tag.
  11. Save the changes to your theme.
  12. To check if the pixel is installed correctly, use the Facebook Pixel Helper chrome extension
  13. After you have confirmed that the pixel is working correctly, you can start creating and optimizing your campaigns, setting up events and tracking conversions.
Lebesgue Changed status to publish August 21, 2023
Write your answer.