- 26 Feb 2026
- Print
- DarkLight
- PDF
How-To: Add Meta Pixel Tracking code to your Branding Template
- Updated 26 Feb 2026
- Print
- DarkLight
- PDF
You can add your Meta Pixel code script to your Slate branding template.
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
Adding scripts to your branding template
Go to Database → Files.
Select Shared
Select /shared/build.xslt

Locate the opening
<head>tag and the closing</head>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
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: &
Click Save
For more information on the Meta Pixel and the default version of the script see: Set up and install the Meta Pixel
