HubSpot XML Sitemap: How It Works and How to Fix It

HubSpot builds a sitemap for every domain it hosts, at /sitemap.xml. Pages and blog posts go in on their own, landing pages don't, and noindex pages need you to pull them out by hand.

Night pixel-art scene with a list of URLs beside a signpost, a sitemap pointing search crawlers at the right pages.

Your HubSpot sitemap is an XML file HubSpot builds for each domain it hosts, at yourdomain.com/sitemap.xml. It adds live website pages and blog posts on its own. Landing pages must be added by hand. You edit it under Settings, Content, Domains & URLs, Sitemap. Keep noindex, private and redirected pages out of it.

That's the short version. The long version matters because HubSpot hides a few rules in its docs. Landing pages don't go in by default. HubDB child pages only show up if their parent does. A page you mark noindex can stay in the file. And if your main site runs on another CMS, HubSpot's sitemap may not be the one Google reads.

This guide covers where the file lives, what goes in it, how to edit it, how to handle tag pages, noindex pages and subdirectories, how to submit it, how robots.txt fits, and a troubleshooting table for when the sitemap stops matching your site.

Key takeaways

  • One file per domain. Every HubSpot-hosted domain and subdomain gets its own sitemap at /sitemap.xml.
  • Landing pages are manual. HubSpot adds website pages and blog posts on its own, but you must add landing pages yourself.
  • Priority is noise. Google ignores priority and change frequency, and only trusts lastmod when it's accurate.
  • Noindex means remove. A noindex page in the sitemap sends mixed signals, and HubSpot won't always pull it for you.
  • Check it monthly. Run the file through a validator and compare it with Search Console's page indexing report.

Where is the HubSpot sitemap?

Add /sitemap.xml to the end of any domain HubSpot hosts. For a site on www.example.com, that's https://www.example.com/sitemap.xml. HubSpot's sitemap doc says each HubSpot-hosted domain has one, and the feature is on all products and plans.

You can also open it from inside HubSpot:

  1. Click the settings icon in the top bar.
  2. In the left sidebar, go to Content, then Domains & URLs.
  3. Click the Sitemap tab.
  4. Pick a domain from the Domain dropdown.
  5. Click View XML file.

A sitemap is a list of URLs you want search engines to crawl. It's a hint, not an order. Google's build a sitemap guide says submitting one doesn't guarantee Google will download it or use it. But it's still the cleanest way to tell crawlers what exists, especially for new pages with few links pointing at them.

What does HubSpot add to the sitemap on its own?

HubSpot fills the file for you, but not with everything. Here's what its docs say, as of November 2026.

Content type Added on its own? What to know
Website pages Yes, once live Live HubSpot-hosted pages go in by default
Blog posts Yes, once live Published posts go in by default
Landing pages No HubSpot says they "must be manually added"
HubDB dynamic child pages Only if the parent is in the sitemap They don't show in the sitemap editor
Images on HubDB dynamic pages Yes Not for dynamic pages built on CRM objects
Videos on HubSpot pages Can be Entries carry title, description, tags and thumbnail
Blog listing, tag and author pages Not stated Open your file and check
Knowledge base articles Not stated Check the sitemap for the domain your knowledge base uses

The landing page rule trips up a lot of teams. A marketing team builds a comparison page or a webinar page in the landing page tool, not the website page tool. It ranks slowly, and nobody knows why. Often the page simply isn't in the sitemap, and nothing links to it but an ad. That's an orphan page, and a sitemap entry is the cheapest fix.

The HubDB rule matters for programmatic pages. If you build a directory or location pages from a HubDB table, the child pages only make it into the file when the parent page is in it. Check the parent first.

For blog listing, tag and author pages, HubSpot's doc is silent. Don't guess. Open the file, search for /tag/ and /author/, and see what's there. Then decide using the section on tag pages below.

What does a HubSpot sitemap look like?

Here's a trimmed example with fake URLs. A real HubSpot file is one long line, so it's split up here to read.

<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"
  xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
  <url>
    <loc>https://www.example.com/</loc>
    <lastmod>2026-11-20</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/pricing</loc>
    <lastmod>2026-11-14</lastmod>
  </url>
  <url>
    <loc>https://www.example.com/blog/lead-routing-guide</loc>
    <lastmod>2026-10-02</lastmod>
  </url>
</urlset>

HubSpot's doc says the file includes the required urlset, url and loc tags, plus the optional lastmod tag. You can't add other tags. The image and video namespaces sit on the root so HubSpot can add media entries when a page has them.

Two things to look for when you open yours. First, every loc should be the full https URL you want in search results. Second, the lastmod dates should look real. If every page shows today's date, something is touching every page, and Google will learn to ignore the field.

How do you edit the HubSpot sitemap?

You edit it in the same Sitemap tab. Here's the path as of November 2026, from HubSpot's sitemap doc.

  1. Click the settings icon in the top bar.
  2. Go to Content, then Domains & URLs.
  3. Click the Sitemap tab.
  4. Choose the domain in the Domain dropdown.
  5. Make your changes, then click Save.

Changes can take up to 30 minutes to show in the live file. If you check sooner, you may think the save didn't work.

How do you add a page to the HubSpot sitemap?

Click + Add a page. Pick the page from the dropdown and click Add. Then save the sitemap. This is how landing pages get in.

Only add pages you want found in search. A good test: would you be happy if someone landed on this page from Google with no other context? A pricing page, a comparison page or a strong webinar page passes. A thank-you page or a paid-only variant does not.

How do you remove a page from the HubSpot sitemap?

Hover over the page and click Remove. Then save.

Here's the catch. HubSpot's doc says removing a page "won't explicitly tell search engines that a page shouldn't be indexed." Removal only drops the hint. If Google already knows the page, it can keep it in the index. To keep a page out of search, you also need a noindex tag. The noindex section below covers the steps.

Do priority and change frequency matter in a HubSpot sitemap?

Not for Google. HubSpot lets you hover over a page, click Options, and set a Change frequency and a Priority. But Google's sitemap guide says plainly: "Google ignores <priority> and <changefreq> values."

The field Google does read is lastmod. It uses the value only when it's "consistently and verifiably" accurate. It should reflect a real change to the main content, structured data or links. A new copyright year in the footer doesn't count.

Bing leans the same way. A Bing Webmaster blog post from September 2023 tells site owners to "pay special attention to the lastmod attribute."

My take: leave priority and change frequency at their defaults. Put the time into keeping lastmod honest. That means don't republish 200 blog posts just to bump a date. Update a post when you change what it says, and let the date follow.

How does the sitemap work with multiple domains and subdomains?

Each HubSpot-hosted domain gets its own file. In HubSpot, a subdomain is its own domain. So www.example.com, blog.example.com and info.example.com each have a separate sitemap, picked from the Domain dropdown.

That has three effects:

  • Submit each one. Submit each sitemap in a Search Console property that covers its host.
  • Point robots.txt at the right file. Each domain's robots.txt should list its own sitemap.
  • Watch for strays. A forgotten domain like an old campaign subdomain still has a live sitemap. If those pages are stale, redirect them or noindex them.

Here's how that plays out for three common setups:

Setup Sitemaps you have What to submit
Whole site on www.example.com in HubSpot One That one file
Site on www, blog on blog.example.com, both HubSpot Two Both, each in its own property, or both in a domain property
Main site on another CMS, landing pages on go.example.com in HubSpot Two, on two platforms The other CMS's file and HubSpot's go subdomain file

HubSpot also gives you system domains with hs-sites in the name. HubSpot's guide to keeping content out of search says content on those is always set to no-index in robots.txt. You don't need to submit them.

Should blog tag and author pages be in your HubSpot sitemap?

Usually not. Tag and author pages are lists of links to posts you already have. They rarely rank, and they can look like duplicate content when a tag has one or two posts. On a small blog, they also spread Google's crawl over pages that don't earn traffic.

There's an exception. A tag page with a real intro, a clear topic and lots of posts can act like a hub. My bar is about 15 posts. If yours do that, keep them and treat them as real pages.

HubSpot doesn't give you a switch to noindex all tag or author pages at once. A long-running HubSpot community idea asking for one was still marked "Idea Submitted" as of June 2025. The workaround posted there is a check in the blog listing template:

{% if tag or author %}
  {% require_head %}
  <meta name="robots" content="noindex">
  {% end_require_head %}
{% endif %}

Test it on a staging copy of the template first. Then view the source of a tag page and confirm the meta tag is in the head. After that, pull any tag and author URLs out of the sitemap.

Don't block /tag/ in robots.txt as your first move. A blocked page can't be crawled, so Google never sees the noindex tag. The page can then stay indexed with no snippet.

Why must a noindex page stay out of the sitemap?

A sitemap says "please index this." A noindex tag says "don't index this." Put both on one URL and you've sent two opposite signals. Google will obey the noindex. Search Console will then flag the URL as URL marked 'noindex' in the page indexing report. On a big site, that list buries the real problems.

HubSpot won't always fix this for you. A community thread reports noindex pages staying in the sitemap, and removed pages coming back. So check by hand.

Here's the full process for a page you want out of search, from HubSpot's noindex guide:

  1. Open the page or post and click Settings at the top right.
  2. Click Advanced in the left sidebar. For knowledge base articles it's Advanced Options.
  3. In the Head HTML field under Additional code snippets, add <meta name="robots" content="noindex">.
  4. Close the panel and click Update or Publish.
  5. Go to the Sitemap tab and Remove the page. Save.
  6. Leave the page crawlable. Don't add a Disallow line for it in robots.txt.

HubSpot's doc warns against step 6 too. It says not to combine noindex with the robots.txt method, because robots.txt stops crawlers from seeing the tag.

What about password-protected and private pages?

HubSpot's noindex guide says private and password-protected pages "won't be crawled." That's good for keeping them out of search. But it also means search engines can't read a noindex tag on them.

So the rule is simple. A private page has no place in the sitemap. If one shows up in the file, remove it. Otherwise Google tries to fetch it, gets blocked, and logs an error you have to read past every month.

The same goes for pages behind a login on a customer portal or a gated knowledge base. If a visitor needs an account to see it, it's not a sitemap URL.

How do you handle HubSpot pages under a subdirectory of another site?

This is the messy one. Say your main site runs on Next.js or WordPress at www.example.com. Your blog runs on HubSpot, but you want it at www.example.com/blog, not on a subdomain. The usual way is a reverse proxy: your main site's server or CDN fetches HubSpot pages and serves them under your path.

HubSpot's reverse proxy overview covers this case. Three points matter for the sitemap:

  • HubSpot's support team won't set it up. The docs say setup "is not provided by HubSpot's support team." Your developers own it.
  • Your main sitemap won't see the HubSpot pages. The docs say that if you proxy only a subpath, the main sitemap.xml "won't automatically include HubSpot pages." You add them by hand or pull from more than one source.
  • It needs a CDN, not one server. HubSpot asks for specific headers and warns that traffic from one server can look like an attack and get blocked.

The cleanest fix is a sitemap index. That's a sitemap of sitemaps. Your main site hosts it and lists one child file for its own pages and one for the HubSpot pages.

<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <sitemap>
    <loc>https://www.example.com/sitemap-pages.xml</loc>
    <lastmod>2026-11-27</lastmod>
  </sitemap>
  <sitemap>
    <loc>https://www.example.com/sitemap-blog.xml</loc>
    <lastmod>2026-11-26</lastmod>
  </sitemap>
</sitemapindex>

The blog file lists the HubSpot posts with their www.example.com/blog URLs, not the HubSpot domain URLs. You can build it on a schedule from HubSpot's content APIs, or from an export, and write it as a static file on the main site. Every URL must be the public one people see.

Two Google rules make this work. Its build a sitemap guide says you can submit a single index file. It also says a sitemap placed in a folder only covers URLs under that folder unless you submit it in Search Console, so keep the index at the root. Google's Sitemaps report help adds one limit: an index can list sitemaps, but not other index files.

If you run a Next.js main site, the Next.js SEO on Vercel guide covers generating the main file there.

How do you submit a HubSpot sitemap to Google and Bing?

Submit it once, then let the crawlers come back on their own.

Google Search Console

Google's Sitemaps report help lists these steps:

  1. Make sure you have owner access to the property. Without it, list the sitemap in robots.txt instead.
  2. Run a live URL inspection on the sitemap URL and check that the fetch succeeds.
  3. Open the Sitemaps report.
  4. Paste the full URL in Add a new sitemap and click Submit.
  5. Check the status. You want Success. Has errors means some URLs parsed and some didn't. Couldn't fetch means Google got nothing.

After a good read, Google refetches the sitemap on its own schedule. If a fetch fails, it retries for a few days and then stops, so fix it and resubmit.

Skip the old ping trick. Google announced in June 2023 that its sitemaps ping endpoint was going away.

Bing Webmaster Tools

Bing has its own Sitemaps page in Webmaster Tools. Its September 2023 post says you can submit missing sitemaps there or reference them in robots.txt. It's worth the two minutes. If AI answers are part of your plan, pair this with clean schema markup for AI search and an llms.txt file from the llms.txt generator.

How do you set up robots.txt in HubSpot?

HubSpot keeps robots.txt in a different place from the sitemap. Here's the path from its guide to keeping content out of search, as of November 2026:

  1. Click the settings icon in the top bar.
  2. In the left sidebar, go to Content, then Pages.
  3. In the Choose a domain to edit its settings dropdown, pick Default settings for all domains or one domain. Click Override default settings if you need a domain to differ.
  4. Click the SEO & Crawlers tab.
  5. Edit the text in the Robots.txt section.
  6. Click Save.

Here's a sample for a typical HubSpot site. Adjust the paths to yours.

User-agent: *
# Example: keep bots out of internal search results
Disallow: /search-results

User-agent: HubSpotContentSearchBot
Allow: /

Sitemap: https://www.example.com/sitemap.xml

A few notes on that sample:

  • The Sitemap line uses the full URL. Google's sitemap guide lists a robots.txt Sitemap line as a valid way to submit.
  • The HubSpot search bot gets its own block. HubSpot's doc says to add HubSpotContentSearchBot as a separate user-agent if you use its site search module.
  • The Disallow path is an example. Check what your own site uses before you block anything.

Use robots.txt for crawl control, like keeping bots out of internal search results. Use noindex for index control. Mixing the two on one page breaks both, as the noindex section shows.

How do you validate a HubSpot sitemap?

Open the file and paste it into the XML sitemap validator. It checks that the XML is well formed, counts the URLs, and flags duplicates, non-https URLs, mixed hosts and bad lastmod dates. For an index file, it lists the child sitemaps too.

Google's limits are 50,000 URLs or 50MB uncompressed per file. Most HubSpot sites sit far below that. The file must also be UTF-8 and use full, absolute URLs.

Then do the check a validator can't. Crawl the URLs and confirm each one returns a 200 status with a self-referencing canonical tag. A free crawler in list mode does this in a few minutes. Anything that redirects, 404s or points its canonical elsewhere comes out of the file.

Last, compare the sitemap with Search Console. In the page indexing report, filter by All submitted pages. That view shows only URLs from your submitted sitemaps, and why each one is or isn't indexed.

Why is my HubSpot sitemap not updating or showing the wrong URLs?

Most HubSpot sitemap problems fall into a few patterns. Here's how to spot each one and fix it.

Symptom Likely cause Fix
New page missing It's a landing page, or you checked within 30 minutes Add it under + Add a page, then wait 30 minutes
HubDB pages missing The parent page isn't in the sitemap Add the parent page
Page missing on one domain It lives on another domain or subdomain Switch the Domain dropdown
Old URLs still listed Page was unpublished, renamed or moved Remove the old URL and add a 301 redirect
Redirected URLs in the file Slug changed after the page went in Replace with the final URL; Search Console shows these as Page with redirect
404s in the file Page deleted but entry kept Remove the entry, redirect if the page had links
Noindex pages listed HubSpot kept the entry Remove by hand, keep the noindex tag
Both http and https URLs HTTPS not enforced Turn on Require HTTPS and keep https entries only
Both www and non-www URLs Two hosts serving the same pages Pick one primary domain and redirect the other
Every lastmod is today Bulk republish or a global module change Stop bulk republishing; let dates follow real edits

The HTTPS fix lives in the same settings area. HubSpot's SSL and domain security doc says to go to Content, then Domains & URLs, open the Actions dropdown for the domain, choose Update domain security settings, check Require HTTPS and save. It notes SSL can take up to four hours to provision.

Redirects live on the URL Redirects tab of Domains & URLs. HubSpot's redirects doc says new redirects default to permanent (301) and can take up to 48 hours to spread. So after a site move, give it two days before you judge the sitemap.

What are the most common HubSpot sitemap mistakes?

These show up again and again on HubSpot sites:

  • Assuming landing pages are in. They aren't, until you add them.
  • Removing a page and calling it hidden. Removal drops a hint. It doesn't stop indexing.
  • Blocking and noindexing the same page. The block hides the noindex tag, so neither works.
  • Tuning priority for hours. Google ignores it. Fix lastmod and URL quality instead.
  • Forgetting old subdomains. A 2021 campaign subdomain still has a live sitemap full of stale pages.
  • Republishing everything to "refresh" it. Every lastmod changes at once, and Google learns the dates mean nothing.
  • Proxying a blog without a combined sitemap. The main site's file skips the blog, and posts get found slowly.
  • Never opening the file. A two-minute look each month catches most of the issues above.

A broader technical SEO audit catches the rest, like crawl budget waste and indexing gaps that a sitemap can't fix on its own.

HubSpot sitemap checklist

Run this once to set things up, then monthly as a quick check.

  1. List your domains. In Domains & URLs, write down every connected domain and subdomain.
  2. Open each sitemap. Add /sitemap.xml to each and save a copy.
  3. Validate each file. Paste it into the XML sitemap validator and fix any errors.
  4. Add missing landing pages. Use + Add a page for each landing page you want in search.
  5. Check HubDB parents. Make sure each dynamic page's parent is in the file.
  6. Decide on tag and author pages. Keep strong hubs. Noindex and remove the rest.
  7. Clear noindex and private pages. Remove every one from the file.
  8. Crawl the URLs. Remove or replace anything that isn't a 200 with a self canonical.
  9. Enforce one host. Turn on Require HTTPS and redirect the non-primary host.
  10. Edit robots.txt. Add the Sitemap line with the full URL for each domain.
  11. Submit. Add each sitemap in Search Console and Bing Webmaster Tools.
  12. Compare with indexing. Filter Search Console to All submitted pages and read the reasons.
  13. Log it. Note the date, URL count and fixes, so next month's check is faster.

If your stack also includes a store, the same habits apply to the Shopify sitemap. And if your HubSpot blog feeds email or other tools, the HubSpot RSS feed guide covers that file. For loading data into HubSpot from XML, see importing XML into HubSpot.

What to do this week

Pick one hour this week and do four things.

First, open the sitemap for every HubSpot domain you own. Search each file for your three newest landing pages. If they're missing, add them.

Second, run each file through the sitemap validator. Fix duplicates, http URLs and mixed hosts.

Third, add the Sitemap line to robots.txt for each domain, then submit each file in Search Console.

Fourth, put a monthly reminder on the calendar to repeat the check. It takes ten minutes once the first pass is done.

If your HubSpot site sits behind a proxy, spans several domains, or shares a sitemap with another CMS, that's a build worth doing once and doing right. That's the kind of work we do in GTM engineering.

FAQ

Where is my HubSpot sitemap?

Add /sitemap.xml to the end of any domain HubSpot hosts, like https://www.example.com/sitemap.xml. You can also open it from settings: go to Content, then Domains & URLs, then the Sitemap tab, pick the domain and click View XML file. Each connected domain and subdomain has its own file, so a blog on blog.example.com has a separate sitemap from www.example.com.

Why is my HubSpot landing page not in the sitemap?

HubSpot doesn't add landing pages on its own. Its sitemap doc says they must be added by hand. Go to the Sitemap tab in Domains & URLs, pick the domain, click Add a page, choose the landing page and save. Only add landing pages you want found in search. Paid-only and campaign pages with thin copy are better left out and set to noindex.

How long does a HubSpot sitemap take to update?

HubSpot says changes can take up to 30 minutes to show in the file. If a page is still missing after that, check that it's published, that it lives on the domain you're viewing, and that it isn't a landing page or a HubDB child page whose parent is missing from the sitemap. Google then picks up the change on its next fetch of the sitemap.

Does Google use priority and change frequency from my HubSpot sitemap?

No. Google's sitemap docs say it ignores priority and changefreq values. It uses lastmod, but only when the date is consistently and verifiably accurate. So you can leave HubSpot's priority and change frequency options alone. Spend the time on keeping the sitemap clean: only live, indexable, canonical URLs that return a 200 status.

Do I need to submit my HubSpot sitemap to Google?

It helps, and it takes two minutes. Submit the full URL in the Sitemaps report in Google Search Console, which needs owner access to the property. Also add a Sitemap line to your HubSpot robots.txt so Google and Bing can find it without a submission. Google retired its old sitemap ping endpoint in 2023, so a ping no longer counts.

Can I upload my own sitemap.xml file to HubSpot?

HubSpot's sitemap doc only covers editing the generated file. It says the file uses the required urlset, url and loc tags plus the optional lastmod tag, and you can't add other tags. If you need a custom sitemap, like a combined index for a site split across HubSpot and another CMS, host that index on the other platform and point it at HubSpot's file.

More like this

Startup? Let's talk.

20 minute fit call. You'll leave knowing the first thing we'd fix and roughly what it costs. If we're not the right fit, we'll tell you who is.