Skip to the content
Start free

URL parameter

A URL parameter is a key and a value added to the end of a web address after a question mark, such as ?colour=blue. Several are joined with an ampersand: ?colour=blue&sort=price. Parameters tell a page what to show, how to sort it, or where the visitor came from. To a search engine or an AI crawler, each new mix of parameters can look like a brand new page.

What is a URL parameter? #

It is part of the query string of a URL. The rules for web addresses are in RFC 3986. It says the query starts at the first question mark and ends at a # or at the end of the address. The RFC does not define the key=value shape. It only notes that queries often carry information as “key=value” pairs. That shape is a habit the whole web shares, not a law.

What are the parts of an address? #

Part In https://example.com/dresses?colour=blue&sort=price#reviews Sent to the server?
Scheme https Yes
Host example.com Yes
Path /dresses Yes
Query (the parameters) ?colour=blue&sort=price Yes
Fragment #reviews No: RFC 3986 says it is split off before the address is fetched

In a browser, MDN describes URL.search as a string with a “?” followed by the parameters. With no query, it is an empty string.

What kinds of parameter are there? #

  • Parameters that change the content: a filter (?colour=blue), a page number in pagination, a site search (?q=teapot).
  • Parameters that change the order only: ?sort=price. Same items, new order.
  • Parameters that change nothing on the page: tracking tags such as UTM parameters, ad click IDs and session IDs. The page is identical; only the address differs.

The first kind can deserve its own place in search. The last two usually should not.

Google says overly complex addresses with many parameters can create many URLs with identical or similar content. That can waste crawl bandwidth and stop a site being fully indexed. Every copy competes with the real page for your crawl budget. It can also create duplicate content, so Google has to pick one version for its search engine index. Without a canonical tag, Search Console may list the copies as duplicate without canonical.

Why does it matter for AI answers? #

An AI crawler asks for addresses just as a search crawler does. A visit spent on ?sort= copies is a visit not spent on pages it has never read. And the address an assistant reads is the address it can quote. If the clean page and five parameter copies all exist, any of them can end up as the citation. One clean address per idea keeps your AI visibility pointing at the page you chose.

How does Google handle parameters today? #

Search Console used to have a URL Parameters tool. On 28 March 2022 Google said it would retire it within a month. Google said only about 1% of the settings people had entered were useful for crawling, and that its crawlers would learn how to deal with parameters on their own. For more control it pointed to robots.txt rules. So there is no switch to flip any more. Your own site structure does the work.

What format does Google prefer? #

Google’s URL structure guide asks for an equals sign between key and value, and an ampersand between parameters. For several values under one key, it suggests a comma.

Recommended:
https://example.com/category?category=dresses&color=purple,pink,salmon&sort=low-to-high

Not recommended:
https://example.com/category?[category:dresses][sort:price-low-to-high]
https://example.com/category?category,dresses,,sort,lowtohigh

The same guide says to avoid session IDs in addresses and to use cookies instead. It also says to trim parameters that do not change the content.

What about filters on a shop? #

Filters on a category page are called faceted navigation. Google’s faceted navigation guide says crawlers cannot tell if a filter address is useful without fetching it. So they often fetch many useless ones first, and new pages are found later. If you do not want filter pages indexed, it offers four options:

  • Disallow the filter addresses in robots.txt.
  • Put filters after a #, because Google Search generally does not support fragments in crawling and indexing.
  • Point filtered pages to the unfiltered page with rel="canonical".
  • Mark every link to a filtered page nofollow.

Google says canonical and nofollow are generally less effective in the long term than robots.txt and fragments. If you do want filter pages indexed, keep the filters in one fixed order, never repeat a filter, and return a 404 when a combination has no results. See 404 and 410 and ecommerce SEO.

What about tracking tags? #

Google Analytics reads campaign tags from the address. Its URL builder help page lists utm_id, utm_source, utm_medium, utm_campaign, utm_source_platform, utm_term and utm_content, plus two it does not report yet. These tags are useful for attribution in Google Analytics 4. But each tagged link is another address for the same page.

Google’s canonical guide uses exactly this case: a product page also reached at ?gclid=ABCD. It ranks the fixes. A redirect and rel="canonical" are strong signals. Listing the clean address in an XML sitemap is a weak one. The signals stack, so use more than one.

Common mistakes #

  • Putting UTM tags on internal links. Every click makes a new address for a page you already own. Use them only on links from other places. See internal linking.
  • Blocking parameters in robots.txt, then expecting the canonical to work. A blocked page cannot be read, so its canonical tag is never seen. Pick one method per address group.
  • Trusting robots.txt to keep addresses out of Google. Google says it may still index a blocked URL and show it without a snippet. That is the indexed, though blocked by robots.txt report. Use noindex on a crawlable page instead. Our guide noindex, nofollow or robots.txt explains the choice.
  • Endless combinations. Calendars, filters and sort orders that can be stacked forever make a crawl trap.
  • Session IDs in addresses. Every visitor gets a different copy of every page.
  • Changing the parameter order. ?a=1&b=2 and ?b=2&a=1 are two addresses to a crawler.
  • Linking to parameter addresses that redirect again. Each extra hop wastes a fetch.

A worked example: one category, 120 addresses #

A shop has one dresses category. It offers 5 colours, 4 sizes and 3 sort orders. Each filter can be on or off.

Choice Options With “none”
Colour 5 6
Size 4 5
Sort 3 4
Addresses 6 × 5 × 4 = 120

That is 120 addresses for one real page, before any UTM tag or random order. A sensible plan: let “colour” pages be indexed if people search for “blue dresses”, give each a self-referencing canonical and a fixed order. Put size and sort after a # or disallow them in robots.txt. Keep UTM tags off every internal link.

How to check it #

  1. List the parameters your site makes. Click every filter, sort and search box and note the address. A site crawl in the SEO Audit will list them for you.
  2. Open one parameter address in the Meta Tag Checker. Look for a canonical tag and a robots meta tag. The Canonical Tag Checker is live.
  3. Check the headers with the HTTP Header Checker. It shows the status code and any X-Robots-Tag. Empty filter combinations should answer 404, not 200: see soft 404.
  4. Run tagged and untagged addresses through the Redirect Checker. It shows every hop, 301 or 302. See 301 vs 302 redirect.
  5. Test your parameter rules with the Robots.txt Checker. Google supports * and $ in paths, so Disallow: /*?sort= is valid. Then run the AI Bot Checker to make sure the rule does not shut out AI search bots by accident.
  6. Open your sitemap in the XML Sitemap Checker. It should list clean addresses only, never ?utm_ or ?sort=.
  7. Scan a category page with the Broken Link Checker to catch filter links that lead nowhere.
  8. Look for filter mazes with the Crawl Trap Checker and for copies with the Duplicate Content Checker (coming soon).
  9. In Google Search Console, use URL inspection on a parameter address to see which page Google chose as canonical. Watch crawled, currently not indexed for a flood of parameter copies.
  10. Read your server logs to see how many bot requests hit parameter addresses. The AI Crawler Log Analyser does this in your browser.
  11. Put your site next to a rival with Compare Two Websites, and get an overall score from the AI Readiness Checker.
  12. To watch it every day, crawl trap guard, crawl budget by bot and campaigns are in URSY Pro, opening in stages.

What URSY.com counts #

We never store query strings: only the path. So /dresses?sort=price and /dresses count as reads of one page, and “pages read” figures use distinct paths. A bot that asks for the same page 10 times is still 10 requests, because we count reads, not pages. When a person arrives from an AI app, we record the referrer where one is sent. The full rules are on our methodology page.

Questions #

Do URL parameters hurt SEO? #

Not by themselves. Google can crawl them. The harm comes from too many copies of the same page, which waste crawling and split signals.

Should I block parameters in robots.txt? #

For pure sort and filter copies you never want indexed, Google lists it as an option. Do not block a page whose canonical or noindex you need Google to read.

Is a # fragment a parameter? #

No. It is a separate part of the address. It is not sent to the server, and Google Search generally ignores it.

Can I still set parameter rules in Search Console? #

No. Google retired the URL Parameters tool in 2022. Use your site’s structure, canonicals and robots.txt instead.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: URL parameter. URSY. Updated 26 November 2026. https://ursy.com/wiki/url-parameter/ · Section links

Tools for this

All 871 wiki entries, A to Z →