go-find-out
docs

Is my Google tag or HubSpot tracking code missing from this page?

It may be, and one visit from outside cannot settle it. A page with no tag installed, a page whose builder dropped the snippet, a page that waits for cookie consent and a page that showed our browser a bot check all look the same to the scan. Check the page in your own browser first, then work through the causes below.

The finding

The scan reports this:

No tracking tag was observed on this page

N host(s) contacted, none of them a tag host we recognise · N cookie(s) set

A page with no measurement on it and a page that blocked us look identical from outside. This is what we saw, not a diagnosis.

You may have seen the longer version: “We found no tracking tag on this page. A page with no measurement on it, a page behind a consent gate, and a page that refused us because we are not a person look identical from outside.”

The hosts we recognise are Google’s www.googletagmanager.com, which serves both gtag.js and Tag Manager containers, and HubSpot’s tracking and forms hosts, such as js.hs-scripts.com. A request to any of them counts, even a failed one, and the page made none.

Confirm it on your own setup

  1. Open the page in your browser, view the page source and search for googletagmanager.com. A Google tag installed directly shows as gtag/js?id= and a Tag Manager container as gtm.js?id=GTM-. Google shows the full snippet in Set up your Google tag in Google Ads.
  2. In the same source, search for your Hub ID followed by .js. HubSpot’s own check uses this search and also names js.hs-scripts.com as the script loader (Troubleshoot the HubSpot tracking code).
  3. Open your browser’s developer tools on the Network tab, reload, and filter for googletagmanager and for your Hub ID. HubSpot expects its file to return 200 OK or 304 Not Modified (same HubSpot article). A tag added through Tag Manager will not be in the page source, so the Network tab is the place to look for it.
  4. For the Google tag, connect Google Tag Assistant: choose Add domain, enter the page URL and click Connect (Troubleshoot with Tag Assistant).

If your browser finds the tag and the scan did not, look at the last three causes. One page load cannot tell the causes apart, so they are not ranked.

The tag was never installed on this page

A tag on your home page can still be missing from a landing page on another template. HubSpot adds its tracking code to HubSpot-hosted pages automatically, so this applies to pages hosted elsewhere (Install the HubSpot tracking code).

  1. In Google Ads, open Tools, then Data manager, find your Google tag, click Manage, then Installation instructions (Set up your Google tag in Google Ads).
  2. Choose Install manually, copy the snippet and paste it immediately after the <head> element on every page, this one included (same Google article).
  3. If you use Tag Manager instead, paste the container’s first snippet as high in <head> as possible and the second immediately after the opening <body> tag (Install a web container).
  4. In HubSpot, click the settings icon, go to Tracking & Analytics, then Tracking code, and copy the embed code (Install the HubSpot tracking code).
  5. Paste it before the closing </body> tag on each page. If the whole domain or subdomain is hosted outside HubSpot, add it in your HubSpot domain settings as well (same HubSpot article).
  6. Run HubSpot’s check: enter the page URL in the Validate your tracking code section of the same settings screen (Troubleshoot the HubSpot tracking code).

A site or page builder removes the script

Some builders and CMSs save a pasted script and leave it out of the served page, or apply it to some templates only.

  1. Compare the builder’s code settings with the page source. A snippet present in the settings and missing from the source was not served on this page.
  2. For the Google tag, open Installation instructions, click Select your platform and follow the steps for your builder. If it is not listed, Google says to use the platform’s custom HTML, header code or custom code field (Install your Google tag with a website builder or CMS).
  3. For HubSpot, use the section for your platform in Install the HubSpot tracking code. It covers WordPress (through the HubSpot plugin), Shopify, Drupal, Magento, Wix, Joomla and Squarespace.
  4. Publish, then view the source again.

These are confirmation steps. A tag that waits for consent is working as configured.

  1. Open the page in a private window, leave the cookie banner untouched and check the Network tab for googletagmanager.com and your Hub ID.
  2. Accept the banner and check again. Requests that appear only now mean the scan saw what a visitor who has not answered sees.
  3. In Google’s basic consent mode, Google tags do not load until the visitor interacts with the banner (About consent mode). HubSpot lists cookie consent tools among the things that can block its tracking code (Troubleshoot the HubSpot tracking code).

The site refused an automated browser

Bot protection on your host, CDN or firewall can show our browser a challenge page in place of yours, and a challenge page carries no tags. These are confirmation steps, and there is nothing to fix.

  1. Open the page in your own browser and check that your actual page loads.
  2. Run the confirmation steps above there. If your browser finds the tag, the scan most likely never saw your page.

No vendor page covers this case, since the setting lives in your hosting or security provider.

The tag is served from your own domain

Google tag gateway for advertisers loads the tag from your domain where a standard setup requests it from a Google domain (Set up Google tag gateway for advertisers). The scan recognises Google’s and HubSpot’s own hosts only. If the Network tab shows the Google tag loading from a path on your own site, the scan could not recognise it, and this finding says nothing either way about that tag.

Visitors’ browsers are a separate question

Ad blockers and privacy settings in visitors’ browsers can stop a correctly installed tag. The scan loads the page once in its own browser and cannot see theirs.

Check it again

After you make a change, scan the page again below to see whether a tag host shows up this time.

Free, no account. Shows whether the finding is still there.