Add Your Facebook Pixel Code
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.
Prerequisites
- You will need a Facebook Ad Manager account.
- You will also need to create your Facebook Pixel.
Related help documents
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
-
<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. ↩
-
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”. ↩
-
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