This guide shows how to add the Blue Tracely snippet to pages hosted on HubSpot's content management system, using HubSpot's site header HTML setting.
Before you begin
- The domain on your Script page must match the domain your HubSpot pages are served from. If they're on a subdomain such as
info.example.com, add that subdomain as its own domain and use the snippet made for it. Each domain uses one of your domain seats. See Installing Your Blue Tracely Tracking Script and Add Multiple Domains to Your Blue Tracely Account. - Adding code for a whole domain needs HubSpot's website settings permission.
Copy your snippet
- On the Script page, select Install next to your domain.
- Select Add it to your site's HTML.
- Under Copy the script, select Copy.

Add the snippet in HubSpot
Follow HubSpot's guide to using code snippets with HubSpot content, in its section on adding code to all content on a domain. When you add the code:
- Choose the domain your pages are on, or the default settings for all domains.
- Paste your snippet, unchanged, into the Site header HTML field.
- Save your changes.
Add the snippet at the domain level rather than to individual pages, so that every page, including new ones, carries it.
Check the installation
Open one of your HubSpot pages, then go back to the Script page and select Test script next to your domain. When the script answers, you'll see "The script is installed on your website." See Verifying Your Script Installation.
Test script opens the home page of the domain on your Script page. If that page isn't served by HubSpot, check that your HubSpot pages carry the snippet by viewing their source code instead. See Manually Verifying Your Script Installation.