SEO
XML Sitemaps for Ecommerce: The Agency Guide
How agencies build and maintain ecommerce XML sitemaps at scale, from a Diamond HubSpot partner with 17+ years of ecommerce SEO experience.

Key Takeaways
- A single XML sitemap can hold no more than 50,000 URLs and must stay under 50MB uncompressed, per Google Search Central, so large or complex catalogs need a sitemap index referencing multiple split files.
- Generation method should match the client's platform and catalog size: built-in exports for small mainstream-platform stores, scoped plugins for mid-size custom catalogs, and custom feeds for large or Magento-based catalogs over roughly 50,000 SKUs.
- Auto-generated sitemap exports commonly drop custom product types, out-of-stock items, or paginated category pages, so agencies should treat the export as a draft and diff it against the actual product count before submitting.
- Submitting a sitemap through Google Search Console's Sitemaps report is only the starting point; ongoing monitoring there surfaces parse errors and coverage gaps that often flag a broken template or an accidental robots.txt block early.
- In 2025, 77% of observed AI-agent activity occurred on ecommerce product and search pages, per HUMAN Security's State of AI Traffic report, making clean sitemaps relevant to AI-agent discoverability as well as classic search crawling.
If you deliver SEO for ecommerce clients, the XML sitemap is one of the smallest deliverables you own and one of the easiest to get wrong at catalog scale. This is how agencies build, submit, and maintain sitemaps for client stores, and how to package that work so it earns recurring revenue instead of disappearing into a one-off setup fee.
Why ecommerce clients need XML sitemaps (and why the agency owns them)
An XML sitemap tells crawlers which of a store's pages matter most and hands search engines the freshness and priority signals they can't reliably infer on a large, deep catalog. Most ecommerce sites are sprawling: thousands of products, faceted navigation, and pages buried several clicks deep. Crawlers will visit, but they won't necessarily reach everything at the frequency it deserves, and a product Google never indexes is a product that can't sell.
Domain authority tips the math. A site with millions of visitors like Amazon earns aggressive crawling; a client doing a few dozen orders a month does not. The sitemap is how you compensate; you make the important URLs explicit instead of hoping crawl budget stretches far enough. For agency delivery, that means the sitemap isn't a checkbox at launch; it's a lever you tune against Search Console coverage data over the life of the engagement.
The stakes now extend past classic search. In 2025, 77% of observed AI-agent activity happened on product and search pages, with more than 2% reaching checkout flows, per HUMAN Security's State of AI Traffic report (via Search Engine Land). Meanwhile, Google is rolling out agentic commerce where AI agents purchase on a user's behalf across Search, Gemini, YouTube, and Gmail through a unified Universal Cart, a shift from search-to-click toward search-to-purchase. Clean, complete, current sitemaps are the substrate that makes a client's catalog legible to both the crawlers indexing it and the agents increasingly shopping it. When you pitch AEO or AI-search work alongside SEO, discoverability hygiene like this is the foundation you build on.
How agencies generate sitemaps for large product catalogs
Match the generation method to the client's platform and catalog size, because that decision drives your delivery hours. Roughly three tiers:
| Client situation | Approach | Agency delivery notes |
|---|---|---|
| Small catalog, mainstream platform (WooCommerce, BigCommerce, HubSpot-hosted) | Built-in sitemap export | Minutes to enable; verify it actually includes products, not just pages |
| Mid-size catalog, custom product types | Free generator or a scoped plugin | Free tools cap at a page limit, crawl in category chunks or you'll ship a partial map |
| Large or complex catalog (Magento, custom PIM, 50k+ SKUs) | Custom feed or custom-built plugin | Real dev work; scope it as a distinct line item, not "part of SEO setup" |
The trap is the built-in export button that "works" but silently drops custom product types, out-of-stock items, or paginated category pages. On any catalog worth billing for, treat the auto-generated file as a draft and diff it against the actual product count before you submit anything.
Mind Google's hard limits: a single sitemap can hold no more than 50,000 URLs and must stay under 50MB uncompressed. Past that, split into multiple sitemaps and publish a sitemap index that references them, per Google's sitemap documentation. Splitting by category or product type also gives you cleaner Search Console diagnostics; you can see which segment of the catalog is having indexing trouble instead of staring at one 50,000-line file.
Submitting and monitoring sitemaps in Search Console
Submit every client sitemap through Google Search Console's Sitemaps report (under Indexing) and then treat that report as an ongoing monitoring surface, not a one-time confirmation. Add the sitemap URL, confirm Google reads it, and you're live.
The value for an agency is what comes after. Search Console flags parse errors, URLs it couldn't fetch, and coverage gaps, which is often your earliest warning of a technical problem on the client's site, from a broken template to a robots rule accidentally blocking a whole category. Build a light recurring check into your retainer so you catch these before the client notices a traffic dip. That monitoring cadence is exactly the kind of "we're watching this for you" work that justifies a maintenance line rather than a project fee.
Keeping sitemaps fresh: the maintenance layer you bill for
A sitemap has to change every time the catalog changes, which is precisely why it belongs in a retainer, not a launch scope. Products get added, discontinued, renamed, and reslugged constantly on an active store. A stale sitemap points crawlers at dead URLs and hides new ones, the opposite of the job.
For agency delivery, the pattern is: automate regeneration where the platform allows it, then audit on a schedule. Prioritize the pages that actually earn (homepage, top category pages, hero products) and make sure your freshness workflow always includes only the canonical version of each URL so you're not feeding duplicates back into the index. Position this to clients as catalog hygiene: the same reason you keep their robots.txt and canonical tags correct, packaged as an ongoing technical-SEO retainer instead of a favor you do for free every quarter.
XML sitemap vs. Google product feed: what to tell clients
They are different files with different jobs, and confusing them is a common client (and junior-strategist) mistake. An XML sitemap is a list of URLs, the addresses of your products and pages. A Google product feed carries the product data: name, description, image, price, availability, and so on. The feed is what you upload to Google Merchant Center to appear in Shopping and to run Shopping ads; the sitemap is what helps organic search find and index the same pages.
Most platforms won't hand you a clean product feed from a single export button, so budget real hours for it separately from sitemap work. When a client asks why both exist, the short version: the sitemap gets pages found, the feed gets products merchandised. You typically want both, and they're independent deliverables on your scope.
Ecommerce sitemap best practices
Run every client sitemap against the same checklist so quality doesn't depend on which team member built it:
- Do include only the canonical version of each URL.
- Don't submit internal search results pages.
- Do submit category and collection listing pages.
- Do split large catalogs into smaller sitemaps to ease management and avoid file-size disapprovals.
- Do add image URLs to the sitemap or publish a separate image sitemap, product imagery is a real discovery channel.
- Do reference the sitemap in the site's robots.txt so crawlers find it without being told.
- Do pair sitemaps with correct schema markup; the sitemap gets products crawled, structured data helps them stand out in the result.
Packaging sitemap work into a client engagement
Sitemap and technical-SEO work sells best as a standing capability, not a task, because the maintenance never ends. The setup is quick; the ongoing value is monitoring coverage, regenerating on catalog changes, and catching indexing regressions early. Frame it that way and it fits naturally into a retainer or a reserved-capacity block rather than a shrinking one-time fee.
There's a business case behind the retainer, too. Ecommerce reached 20.5% of total global retail sales in 2025, growing 6.8% year over year, per eMarketer's May 2025 forecast, the channel your client's catalog lives in is still expanding, and the surfaces indexing it are multiplying. That's also the AEO opening: across 94 ecommerce sites analyzed over 2025, ChatGPT referral traffic converted at 1.81% versus 1.39% for non-branded organic search, a 31% higher rate, per Search Engine Land's 2026 analysis. Discoverability hygiene like sitemaps is the credible on-ramp to selling AI-search and AEO work on top of the SEO retainer you already run.
For clients whose commerce fits inside HubSpot (memberships, subscriptions, recurring revenue, and manageable product sets) you can keep the store, sitemap, and CRM in one place with native HubSpot ecommerce rather than duct-taping platforms together. For heavier catalogs, HubSpot sits alongside a dedicated store platform for CRM, marketing, and lifecycle work while the commerce engine lives elsewhere. Either way, the sitemap discipline is the same.
Where Meticulosity fits
Meticulosity is the HubSpot agency for HubSpot agencies, a Diamond Solutions Partner (top 3% globally) that builds and maintains ecommerce and technical-SEO deliverables under your brand. Across 11,800+ completed projects and 17+ years, we've generated and maintained XML sitemaps, customized catalog feeds, and untangled indexing problems on stores of every size, from mainstream platforms to custom Magento builds.
If a client's sitemap, feed, or crawl budget is a delivery you'd rather not staff in-house, we can run it white-label alongside your account team. Get in touch and we'll scope it to your client's platform and catalog.
Sources
- HUMAN Security, State of AI Traffic report (via Search Engine Land) (opens in new tab)
- Search Engine Land: Google Universal Cart / agentic commerce (opens in new tab)
- Google Search Central: Build and submit a sitemap (opens in new tab)
- Google Search Central: Image sitemaps (opens in new tab)
- eMarketer: Ecommerce more than 20% of worldwide retail sales (May 2025 forecast) (opens in new tab)
- Search Engine Land: ChatGPT vs non-branded organic search conversions (2026) (opens in new tab)
Frequently Asked Questions
What is an XML sitemap for an ecommerce site?
An XML sitemap is a file listing the URLs on a store that a business wants search engines to crawl and index, typically prioritizing products, categories, and other high-value pages. On large catalogs it compensates for limited crawl budget by making the important URLs explicit instead of relying on crawlers to find everything on their own.
How big can an XML sitemap be?
A single XML sitemap can contain no more than 50,000 URLs and must stay under 50MB uncompressed, per Google Search Central's current documentation. Catalogs that exceed either limit need to be split into multiple sitemaps referenced by one sitemap index file rather than submitted as one oversized file.
What's the difference between an XML sitemap and a Google product feed?
An XML sitemap is a list of URLs that helps organic search find and index a store's pages, while a Google product feed carries product data (name, description, image, price, and availability) that powers Google Shopping and Shopping ads. Most agencies budget for them as separate deliverables since one export rarely produces both.
How often should an ecommerce sitemap be updated?
An ecommerce sitemap should update every time the catalog changes, since products are added, discontinued, renamed, or reslugged constantly on an active store. Agencies typically automate regeneration where the platform allows it, then audit on a recurring schedule as part of a technical-SEO retainer rather than a one-time launch task.
Should out-of-stock products stay in the sitemap?
Out-of-stock products are one of the most common items an auto-generated sitemap export silently drops, which is why agencies should diff any auto-generated file against the actual product count before submitting it. Whether to keep a given out-of-stock URL depends on whether the client expects restock, but the omission should be a deliberate choice, not an export bug.
Native HubSpot Ecommerce
Ecommerce, Without Leaving HubSpot
Our native ecommerce app puts products, carts, and orders inside your clients' portals: no duct-taped platforms.
Related Articles

Outsource SEO for Agencies: A White-Label Playbook
When should your agency outsource SEO delivery instead of hiring? How to white-label it for clients, from a Diamond HubSpot partner of 17+ years.

