Is there a way to install the FB Pixel without the FB app?

So back in the day you could simply put in the Pixel tracking code and it would work with your website, but now on the new Shopify stores you have to connect it with the FB app.

Is there any way to install the FB pixel WITHOUT using the app? Like can you manually integrate it into the pages?

I hope someone has an answer. Thanks

Hey, @Vranklin !

This is Moira from the Social Care team at Shopify.

Thanks for taking the time to reach out to us here in the Shopify Community. You’ve definitely posted in the right place!

Having a Facebook Pixel properly installed on your Shopify store is crucial for your success in Facebook advertising. And as Facebook is one of the most popular advertising platforms out there, you want your Facebook ads to be as profitable as they can be!

Both Facebook and Shopify provide you with interfaces that will make it easy for you to install the Pixel properly. Firstly, if you haven’t created one yet, you should read this article about creating a Facebook Pixel below:

Adding Facebook Pixel to your Shopify Store

You can add the Facebook Pixel to your website via Shopify or via Facebook’s Events Manager.

Add your Pixel ID to your Shopify Store’s Preferences

  1. First, you need to go to Facebook’s Events Manager and copy your Pixel ID.

  2. To add your Facebook Pixel ID to your Shopify store preferences, go to your Shopify dashboard > Online Store > Preferences.

  3. Paste your Pixel ID under Facebook Pixel ID.

  4. Click Save to apply the changes.

Implementing the Facebook Pixel via the Shopify Integration

  1. From Facebook, go to the Events Manager.

  2. Select your Pixel.

  3. Click Continue Pixel Setup and then Use a Partner.

Note: If you already installed your Pixel on another website, you can connect it to your Shopify store as well by selecting “Partner Integrations” on the left-side menu when you enter the Events Manager.

  1. Select Shopify from the partner integration list:

  1. Follow the on-screen setup instructions.

Removing old Pixel from your Shopify Store

If you have taken over an existing store or already installed a Pixel on your store and you want to use a new one, you should first remove any old pixel from your store to avoid duplication of Facebook pixels and conveyance of incorrect data. You can remove any old Pixels from your store by editing the theme.liquid file if it was hard-coded into the store theme or using Online Store > Preferences.

Removing an old Facebook Pixel by editing the theme.liquid file

  1. Access your Shopify admin and go to Online Store → Themes.

  2. In your Current theme section, click Actions, and then select Edit code.

  3. Click the theme.liquid file in order to open it in the code editor.

  4. Search for the Facebook Pixel code between the header tags and . You can also search for “fb” via Ctrl + F on Windows or ⌘ + F on Mac to locate the Facebook Pixel script.

  5. Delete the code and click Save.

Removing the old Facebook Pixel via Preferences

  1. Select Online Store on your Shopify admin and go to Preferences.

  2. Remove the current Facebook pixel ID from the Facebook Pixel account.

  3. Click Save for the changes to take effect.

Facebook Channel

The main benefit of the Facebook channel is that you have everything under one channel instead of spread over 3 different ones. Simply connect your Facebook account and you’re set up for Facebook, Instagram, and marketing. The free and easy-to-use platform provides a quick way for customers to ask questions about certain products and allows you to access a wider audience base. You can learn more about installing the Facebook channel below:

I do hope this helps! Let me know how you get on with the steps above and feel free to let me know if I can clarify anything further.

Cheers!