{"title":"Add your Facebook Pixel code","slug":"add-your-facebook-pixel-code","url":"https://support.storeconnect.com/articles/add-your-facebook-pixel-code","url_markdown":"https://support.storeconnect.com/articles/add-your-facebook-pixel-code.md","subtitle":null,"summary":"Install your Facebook Pixel tracking code on a StoreConnect store by adding it to the Head Content section via a Content Block in the StoreConnect Config app.","type":"Help_Documentation","video_url":"","keywords":"facebook pixel, pixel tracking code, advertising tracking, head content, content block, facebook ads, install tracking code, meta pixel, javascript tracking, store configuration, custom scripts, ad tracking","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"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](https://www.facebook.com/business/learn/facebook-ads-pixel) on Facebook's learning site.\n\n## Prerequisites\n\n-   You will need a Facebook Ad Manager account.\n-   You will also need to [create your Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142).\n\n## Related help documents\n\n-   [Adding Custom Javascript, CSS, Body and Head Content Scripts](adding-custom-javascript-css-and-head-content)\n-   [Integrate Google Analytics in your store](add-your-google-analytics-code)\n\n## How to install the Facebook Pixel code\n\nOnce 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 tag.\"\n\nWithin your **Salesforce Org**, install Facebook's Pixel code in the [Head Content](content-management) section as detailed on the Content Management page.\n\nYou may need to create a new **Content Block** using the `+New Content Block` option. For best practice, refer to, [Adding Custom Javascript, CSS, Body and Head Content Scripts](adding-custom-javascript-css-and-head-content) when creating a new Content Block for your  content.\n\nIf you are installing other tracking codes such as [Google Analytics](add-your-google-analytics-code), you will need to add all the tracking codes into the same Content Block.\n\nLearn more about the [Content management](content-management) section of the StoreConnect Config app\n\n## Terms\n\n**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 tag.\n\n**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\".\n\n**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."}