How-To: Add Meta Pixel Tracking code to your Branding Template
  • 26 Feb 2026
  • Dark
    Light
  • PDF

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

  • Dark
    Light
  • PDF

Article summary

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

  1. Go to Database → Files.

  2. Select Shared

  3. Select /shared/build.xslt

  4. 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: &amp;

📖 W3 Schools - HTML Character Entities

  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


Was this article helpful?

What's Next