--- 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-10-20T15:50:24Z published: 2026-10-20T15:50:24Z canonical: "knowledge.technolutions.net/how-to-add-analytics-tracking-scriptscode-to-your-branding-template" --- > ## 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). Slate files requires valid [XHTML](https://www.w3schools.com/html/html_xhtml.asp). In XHTML, attribute minimization is forbidden, and attribute values must always be wrapped in quotes. To add a script 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?sv=2026-02-06&spr=https&st=2026-11-10T13%3A23%3A56Z&se=2026-11-10T14%3A23%3A56Z&sr=c&sp=r&sig=H2a0Ty5BrT5kK9sV2lz0YE6okk18HAxXiKUeW4ssowQ%3D) 4. On any line between the opening `<head>` tag and the closing `</head>` 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?sv=2026-02-06&spr=https&st=2026-11-10T13%3A23%3A56Z&se=2026-11-10T14%3A23%3A56Z&sr=c&sp=r&sig=H2a0Ty5BrT5kK9sV2lz0YE6okk18HAxXiKUeW4ssowQ%3D) [](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/58xninonkwwhepur57hgmceclip0.png?sv=2026-02-06&spr=https&st=2026-11-10T13%3A23%3A56Z&se=2026-11-10T14%3A23%3A56Z&sr=c&sp=r&sig=H2a0Ty5BrT5kK9sV2lz0YE6okk18HAxXiKUeW4ssowQ%3D) 5. [](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/pwydg9uzz0qedksbj6dmuwmceclip2.png?sv=2026-02-06&spr=https&st=2026-11-10T13%3A23%3A56Z&se=2026-11-10T14%3A23%3A56Z&sr=c&sp=r&sig=H2a0Ty5BrT5kK9sV2lz0YE6okk18HAxXiKUeW4ssowQ%3D) Select **Save.** [](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/oizdl37fgkgx3lixntdqamceclip0.png?sv=2026-02-06&spr=https&st=2026-11-10T13%3A23%3A56Z&se=2026-11-10T14%3A23%3A56Z&sr=c&sp=r&sig=H2a0Ty5BrT5kK9sV2lz0YE6okk18HAxXiKUeW4ssowQ%3D) **📖 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)