--- 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" stale: true --- > ## 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-21T04%3A04%3A06Z&se=2026-11-21T05%3A04%3A06Z&sr=b&sp=r&sig=14T5tycuc1jCwK0n68uz%2BHiRdLfHkcABmqr64LynNhU%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-21T04%3A04%3A06Z&se=2026-11-21T05%3A04%3A06Z&sr=b&sp=r&sig=NJJdyHbRt%2B61IAZ2Oc%2BjT6rTwFMxObqEeiSg75ZtVOA%3D) [](https://cdn.us.document360.io/cd8ea7a6-07f3-4846-a554-627ac016d3e3/Images/Documentation/58xninonkwwhepur57hgmceclip0.png?sv=2026-02-06&spr=https&st=2026-11-21T04%3A04%3A06Z&se=2026-11-21T05%3A04%3A06Z&sr=b&sp=r&sig=0i1b6yBaI9nMfQyn5OVO5u5SIXLCQsB5m4ZGivIdUZI%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-21T04%3A04%3A06Z&se=2026-11-21T05%3A04%3A06Z&sr=b&sp=r&sig=NjJSHuhyNBibMzuj1f5ISCKYVKvjYLjjWTgpf4iTFvE%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-21T04%3A04%3A06Z&se=2026-11-21T05%3A04%3A06Z&sr=b&sp=r&sig=mNM%2BkAX9yqwtPMPwg3RjiR38iJfdwvCPmatpJlrvK1o%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)