Add Your Facebook Pixel Code

This article is intended for advanced users and our partners as it requires advanced web development or Salesforce admin or programming knowledge. While the functionality is part of StoreConnect, we do not provide end user assistance to implement it beyond our help documentation. If you need help or are unsure on how to do this, you can hire one of our StoreConnect partners.

The Facebook Pixel is “a piece of code for your website that lets you measure, optimise and build audiences for your advertising campaigns.” Learn more about Facebook Pixel on Facebook’s learning site.


How to install the Facebook Pixel code

Once you have created your Facebook Pixel, you are required to, “paste the base code at the bottom of the header section, just above the closing <head>1 tag.”

Within your Salesforce Org2, install Facebook’s Pixel code in the Head Content section as detailed on the Content Management page.

You may need to create a new Content Block3 using the +New Content Block option. For best practice, refer to, Adding Custom Javascript, CSS, Body and Head Content Scripts when creating a new Content Block for your <head> content.

If you are installing other tracking codes such as Google Analytics, you will need to add all the tracking codes into the same Content Block.

Learn more about the Content Management section of the StoreConnect Config app



  1. <head> tag: Used to contain metadata such as the title of the page, its description, and any relevant keywords. Scripts (code), links to scripts and CSS files (for page styling) may also be contained in the <head> tag. 

  2. Salesforce Org: The virtual space provided to an individual customer of Salesforce. It includes all of your data, records, etc and applications. A Salesforce Org, or “Org” for short is an abbreviation of “organisation”. 

  3. Content Block: Content Blocks are used to place content on your Pages and Articles. There are two types of Content Blocks 1) A Container Content Block, and 2) A Template Content Block. 


Back to Documentation