# Add your Facebook Pixel code

Source: https://support.storeconnect.com/articles/add-your-facebook-pixel-code · Last modified 21 August 2026

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.

## Prerequisites

-   You will need a Facebook Ad Manager account.
-   You will also need to [create your Facebook Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142).

## Related help documents

-   [Adding Custom Javascript, CSS, Body and Head Content Scripts](adding-custom-javascript-css-and-head-content)
-   [Integrate Google Analytics in your store](add-your-google-analytics-code)

## 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 tag."

Within your **Salesforce Org**, install Facebook's Pixel code in the [Head Content](content-management) section as detailed on the Content Management page.

You 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.

If 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.

Learn more about the [Content management](content-management) section of the StoreConnect Config app

## Terms

**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.

**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.

---

## Follow StoreConnect

- [Email Newsletter](https://getstoreconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://getstoreconnect.com/partners)
- [News](https://getstoreconnect.com/articles/news)
- [Events](https://getstoreconnect.com/articles/events)
- [Feature Comparison](https://getstoreconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://getstoreconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

---

StoreConnect Support — https://support.storeconnect.com/articles/add-your-facebook-pixel-code