New aggregated insights just released Learn more →

Install Trace on a custom site (HTML)

Paste the snippet in your HTML head

Written by Trace Team Updated 05-04-26

  1. Copy the Trace snippet from your site dashboard (Overview or Install snippet).
  2. Paste it inside the <head> section of your HTML templates, before the closing </head> tag.
  3. Ensure the same head (or equivalent include) is used on every page you want to measure, not only the homepage.

If you use a static site generator, SPA framework, or CMS, add the snippet to the global document head (layout, index.html, or framework head API) rather than a single route.

After deployment, use Verify installation on your Trace Overview to confirm events are received.

Still need help?

Contact our support team and we will get back to you as soon as we can.

support@usetrace.io