Skip to content
RankThat

URL parameters

URL parameters are the key=value pairs after a question mark in a web address, such as ?color=red&sort=price. They filter, sort, track or paginate a page, and each new combination can look like a separate URL to search engines.

By , co-founder of RankThat

Updated · How we write and check

URL parameters (also called query strings) are the part of a web address that comes after the ?. Each parameter is a key and a value joined by =, and several are chained with &, as in /coffee/?roast=dark&sort=price. They let one page show different versions of its content, but to a crawler every distinct string is a different URL.

That is the whole SEO issue in one line: a single category page with a handful of filters can turn into thousands of crawlable addresses that all show more or less the same thing.

The common types

Type Example Changes the content?
Filtering ?roast=dark&size=1kg Yes, narrows the list
Sorting ?sort=price-asc Reorders it, same items
Pagination ?page=2 Yes, a different set of items
Tracking ?utm_source=newsletter, ?gclid=... No
Session IDs ?sessionid=8f3a... No
Internal search ?s=decaf Yes, but rarely worth indexing

Google’s own URL structure guidance recommends the key=value and & format, and says to trim parameters that don’t change the content whenever you can.

Why they cause problems

  • Duplicate content. ?utm_source=facebook and the clean URL are the same page. If both get linked and crawled, Google has to pick one, and signals can split across them (see duplicate content).
  • Wasted crawling. Filters that combine freely create near-endless URLs. On a large store this eats into crawl budget, and Googlebot spends its time on ?sort= variations instead of new products.
  • Index bloat. Parameter URLs that slip into the index dilute the site with low-value pages. That is one of the most common causes of index bloat we see on ecommerce audits.
  • Messy reporting. Clicks and impressions for one page get spread across several URLs in Search Console.

An example

Bean & Barrel Coffee’s WooCommerce “Coffee” category has four filters (roast, grind, size, origin) and three sort orders. Ticking filters in different orders produced URLs like ?roast=dark&grind=whole and ?grind=whole&roast=dark, which are identical pages. A crawl found over 2,000 parameter URLs for a category with 40 products. The fix was a self-referencing canonical on the clean category URL, consistent parameter order, and robots.txt rules blocking the sort parameter.

How to control them

  1. Link to clean URLs. Internal links, menus and the XML sitemap should use the parameter-free address.
  2. Canonicalize. Parameter versions that show the same content should carry a canonical tag pointing to the clean URL.
  3. Block what should never be crawled. Sort orders, session IDs and internal search results can be disallowed in robots.txt. Don’t block a URL you also want Google to see a canonical or noindex on, because a blocked page can’t be read.
  4. Decide which filters deserve to rank. “Dark roast coffee” may be a real search worth its own indexable page. “Dark roast, whole bean, 1 kg, under $30” isn’t. Our faceted navigation entry covers how to split the two.
  5. Keep parameter order consistent, so one combination always produces one URL.

The URL Parameters tool is gone

Older guides tell you to configure parameters in Search Console. Google retired the URL Parameters tool in 2022, saying it had become much better at working out which parameters matter. Control now happens on your site: links, canonicals and robots.txt.

How to check

Search Console’s Page indexing report shows parameter URLs under “Duplicate without user-selected canonical” and “Alternate page with proper canonical tag”. A crawl with RankThat’s Site Audit flags duplicate content, missing, multiple or broken canonicals, and URLs with many parameters, which is where parameter problems usually show up first.

Do this month’s SEO in an afternoon.