---
title: "How-To: Add Meta Pixel Tracking code to your Branding Template"
slug: "how-to-add-facebook-tracking-pixel-code-to-your-branding-template"
updated: 2026-02-26T00:34:36Z
published: 2026-02-26T00:34:36Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.technolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# How-To: Add Meta Pixel Tracking code to your Branding Template

You can add your Meta Pixel code script to your Slate [branding template.](/v1/docs/branding-in-slate)

### Scripts in Slate

Slate files require valid XHTML. In XHTML, attribute minimization is forbidden, and attribute values must always be wrapped in quotes.

📖 [W3 Schools - HTML Versus XHTML](https://www.w3schools.com/html/html_xhtml.asp)

### Adding scripts to your branding template

1. Go to **Database → Files.**
2. Select **Shared**
3. Select /shared/build.xslt

![](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/image-TSQ48GSJ.png)
4. Locate the opening `&lt;head&gt;` tag and the closing `&lt;/head&gt;` tag, and place your Meta Pixel code just above the closing tag. In the example below this would be above line 18. Note: the contents inside will vary from template to template.

> [!NOTE]
> Note
> 
> Slate is expecting valid XHTML code. Some characters are reserved in HTML; the ‘&’ ampersand character is one of them. Character entities are used to display reserved characters. In the script the ampersand needs to be properly escaped using the proper HTML entity code: &amp;
> 
> 📖 [W3 Schools - HTML Character Entities](https://www.w3schools.com/html/html_entities.asp)

1. Click **Save**

For more information on the Meta Pixel and the default version of the script see: [Set up and install the Meta Pixel](https://www.facebook.com/business/help/952192354843755?id=1205376682832142)
