---
title: "How-To: Add analytics tracking scripts/code to your Branding Template"
slug: "how-to-add-analytics-tracking-scriptscode-to-your-branding-template"
updated: 2026-05-20T14:35:45Z
published: 2026-05-20T14:35:45Z
---

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

# Add Analytics Tracking to Your Branding Template

You can add analytics tracking scripts, such as those from Google Tag Manager, Facebook, Capture, and others to your Slate [branding template](/v1/docs/branding-in-slate).

## Scripts in Slate

Slate files requires 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/Select shared build file.png)
4. On any line between the opening `&lt;head&gt;` tag and the closing `&lt;/head&gt;` tag, paste the script. Do not change the ‘Path’ or ‘Visibility’ settings. ![](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/Paste script between head tags.png)

[](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/58xninonkwwhepur57hgmceclip0.png)
5. [](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/pwydg9uzz0qedksbj6dmuwmceclip2.png)

Select **Save.**

[](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/oizdl37fgkgx3lixntdqamceclip0.png)

### 📖 Further reading

- [Add Facebook tracking pixel to your branding template](/v1/docs/how-to-add-facebook-tracking-pixel-code-to-your-branding-template)
- [Add GTM container script code to your branding template](/v1/docs/how-to-add-gtm-container-script-code-to-your-branding-template)
