Blog / Technical SEO /

What to do with parameter URLs in a sitemap

A crawler reports thousands of duplicate pages. You open the sitemap and find URLs like /collections/shoes?utm_source=newsletter&sort_by=price-ascending. Somebody’s sitemap has quietly become a list of every route the system can invent.

Before you start deleting, ask how those URLs got there. A sitemap lists the URLs a site owner wants considered. It shouldn’t be a dump of everything the platform can generate.

Inventory the parameter patterns

Export the sitemap URLs and group them by parameter name, path, response, canonical and page content. Spot the tracking codes, sorting, pagination, filters, variant selection, search results and session values. Similar syntax doesn’t mean the same function, so open representative examples and see what visitors get. I always open a handful by hand before I trust the pattern.

Find the source of each URL: internal links, the CMS, apps, product feeds, analytics campaigns or manual uploads. If an app adds parameter URLs to the sitemap, fix that source. Editing the generated file every week is a losing game.

Decide which URLs belong

Include the preferred, canonical version of useful pages the site wants search engines to find. Leave out tracking and temporary variants that aren’t a distinct page. A filtered URL may be useful to users, but whether it belongs in a sitemap depends on whether it should be a search landing page. Decide based on page purpose and architecture.

Check that every sitemap URL returns an appropriate status, can be crawled and points to itself or the intended canonical, following current guidance. Don’t list redirects, noindex URLs or pages blocked from crawling as preferred destinations.

Fix internal signals

Update internal links and feeds to use the preferred URLs. If a parameter route shouldn’t be a standalone destination any more, consider a canonical or redirect approach that keeps shoppers’ functionality intact. Robots.txt controls crawling and can stop page-level signals being seen, so read current official guidance before you reach for it.

Validate after changes

Regenerate or resubmit the sitemap through the normal process and recheck representative URLs. Search reporting can lag. Keep the counts and exceptions as evidence, not as a target to shrink blindly.

Keep the sitemap maintainable

If the sitemap is automatic, learn which system supplies its URLs and by what rules. Check whether product apps, localisation features or filter tools add routes. A manual patch will be overwritten on the next run, so fix the source and then validate the output.

Split large sitemaps by page type when the architecture allows it and it helps you investigate. Grouping can show whether parameter URLs are limited to products, collections or another template. Don’t create extra files just to make reporting look tidy.

Investigate URLs that should remain functional

Some parameter URLs support filtering, sorting or variant selection that shoppers need. Leaving them out of the sitemap doesn’t mean blocking them. Keep the functional route, and decide separately whether it’s a search destination. Test that your canonical or redirect approach doesn’t drop the selected option.

If a parameter shows up in internal links, find the component generating it. A campaign URL may be shared externally on purpose, but internal navigation should use a cleaner destination.

Compare samples after regeneration, not just counts. A big drop can hide missing product pages, and a small count can still contain the wrong URLs. Be patient too: search systems may remember old URLs for a while.

Do not confuse sitemap hygiene with crawling control

Removing a URL from the sitemap doesn’t stop it being discovered through links. If a pattern creates a crawl trap, investigate how internal links and routes are generated. Sitemap inclusion and crawl access answer different questions.

A quick example. Say the sitemap lists /collections/shoes and also /collections/shoes?sort_by=price-ascending and /collections/shoes?utm_campaign=spring. Only the first belongs. The other two are the same page with a different order or a tracking tag. Fix the generator or the app that adds them, regenerate, and spot-check that the clean URL is still listed and returns a 200. Then leave the sorted version working for shoppers, and don’t list it.

Write down who owns sitemap generation and how changes are deployed. If it’s automated, add a check for unexpected parameter patterns. Can you explain which URLs on your site are crawlable, which are linked, and which are listed as preferred destinations?