---
title: "URL parameter"
description: "A URL parameter is a key=value pair after the ? in a web address. It can filter, sort or track a page, and each mix can look like a new page to crawlers."
url: https://ursy.com/wiki/url-parameter/
updated: 2026-11-26T15:39:45+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/url-parameter/
---

# URL parameter

> A URL parameter is a key=value pair after the ? in a web address. It can filter, sort or track a page, and each mix can look like a new page to crawlers.

**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](https://ursy.com/wiki/search-engine/) or an AI crawler, each new mix of parameters can look like a brand new page.

## What is a URL parameter? {#what-is-a-url-parameter}

It is part of the query string of a [URL](https://ursy.com/wiki/url/). The rules for web addresses are in [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986.html). 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? {#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](https://developer.mozilla.org/en-US/docs/Web/API/URL/search) 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? {#what-kinds-of-parameter-are-there}

- **Parameters that change the content:**  a filter (`?colour=blue`), a page number in [pagination](https://ursy.com/wiki/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](https://ursy.com/wiki/utm-parameters/), ad click IDs and [session](https://ursy.com/wiki/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.

## Why does it matter for search? {#why-does-it-matter-for-search}

[Google](https://ursy.com/wiki/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](https://ursy.com/wiki/crawl-budget/). It can also create [duplicate content](https://ursy.com/wiki/duplicate-content/), so Google has to pick one version for its [search engine index](https://ursy.com/wiki/search-engine-index/). Without a [canonical tag](https://ursy.com/wiki/canonical-tag/), Search Console may list the copies as [duplicate without canonical](https://ursy.com/wiki/duplicate-without-canonical/).

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

An [AI crawler](https://ursy.com/wiki/ai-crawler/) asks for addresses just as a [search crawler](https://ursy.com/wiki/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](https://ursy.com/wiki/citation/). One clean address per idea keeps your [AI visibility](https://ursy.com/wiki/ai-visibility/) pointing at the page you chose.

## How does Google handle parameters today? {#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](https://developers.google.com/search/blog/2022/03/url-parameters-tool-deprecated). Google said only about 1% of the settings people had entered were useful for [crawling](https://ursy.com/wiki/crawling/), and that its crawlers would learn how to deal with parameters on their own. For more control it pointed to [robots.txt](https://ursy.com/wiki/robots-txt/) rules. So there is no switch to flip any more. Your own site structure does the work.

## What format does Google prefer? {#what-format-does-google-prefer}

Google’s [URL structure guide](https://developers.google.com/search/docs/crawling-indexing/url-structure) 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](https://ursy.com/wiki/cookie/) instead. It also says to trim parameters that do not change the content.

## What about filters on a shop? {#what-about-filters-on-a-shop}

Filters on a category page are called [faceted navigation](https://ursy.com/wiki/faceted-navigation/). Google’s [faceted navigation guide](https://developers.google.com/search/docs/crawling-indexing/crawling-managing-faceted-navigation) 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](https://ursy.com/wiki/crawling-and-indexing/).
- Point filtered pages to the unfiltered page with `rel="canonical"`.
- Mark every link to a filtered page [nofollow](https://ursy.com/wiki/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](https://ursy.com/wiki/404-and-410/) and [ecommerce SEO](https://ursy.com/wiki/ecommerce-seo/).

## What about tracking tags? {#what-about-tracking-tags}

Google Analytics reads campaign tags from the address. Its [URL builder help page](https://support.google.com/analytics/answer/10917952) 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](https://ursy.com/wiki/attribution/) in [Google Analytics 4](https://ursy.com/wiki/google-analytics-4/). But each tagged link is another address for the same page.

Google’s [canonical guide](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls) uses exactly this case: a product page also reached at `?gclid=ABCD`. It ranks the fixes. A [redirect](https://ursy.com/wiki/redirect/) and `rel="canonical"` are strong signals. Listing the clean address in an [XML sitemap](https://ursy.com/wiki/xml-sitemap/) is a weak one. The signals stack, so use more than one.

## Common mistakes {#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](https://ursy.com/wiki/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](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt) it may still index a blocked URL and show it without a snippet. That is the [indexed, though blocked by robots.txt](https://ursy.com/wiki/indexed-though-blocked-by-robots/) report. Use [noindex](https://ursy.com/wiki/noindex/) on a crawlable page instead. Our guide [noindex, nofollow or robots.txt](https://ursy.com/wiki/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](https://ursy.com/wiki/redirect-chain/) again.**  Each extra hop wastes a fetch.

## A worked example: one category, 120 addresses {#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 {#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](https://ursy.com/seo-audit/) will list them for you.
2. Open one parameter address in the [Meta Tag Checker](https://ursy.com/meta-tag-checker/). Look for a [canonical tag](https://ursy.com/wiki/canonical-tag/) and a robots [meta tag](https://ursy.com/wiki/meta-tag/). The [Canonical Tag Checker](https://ursy.com/canonical-checker/) is live.
3. Check the headers with the [HTTP Header Checker](https://ursy.com/http-header-checker/). It shows the status code and any [X-Robots-Tag](https://ursy.com/wiki/x-robots-tag/). Empty filter combinations should answer 404, not 200: see [soft 404](https://ursy.com/wiki/soft-404/).
4. Run tagged and untagged addresses through the [Redirect Checker](https://ursy.com/redirect-checker/). It shows every hop, 301 or 302. See [301 vs 302 redirect](https://ursy.com/wiki/301-vs-302-redirect/).
5. Test your parameter rules with the [Robots.txt Checker](https://ursy.com/robots-txt-checker/). Google supports `*` and `$` in paths, so `Disallow: /*?sort=` is valid. Then run the [AI Bot Checker](https://ursy.com/ai-bot-checker/) to make sure the rule does not shut out [AI search](https://ursy.com/wiki/ai-search/) [bots](https://ursy.com/wiki/bot-web-robot/) by accident.
6. Open your sitemap in the [XML Sitemap Checker](https://ursy.com/sitemap-checker/). It should list clean addresses only, never `?utm_` or `?sort=`.
7. Scan a category page with the [Broken Link Checker](https://ursy.com/broken-link-checker/) to catch filter links that lead nowhere.
8. Look for filter mazes with the [Crawl Trap Checker](https://ursy.com/crawl-trap-checker/) and for copies with the [Duplicate Content Checker](https://ursy.com/duplicate-content-checker/) (coming soon).
9. In [Google Search Console](https://ursy.com/wiki/google-search-console/), use [URL inspection](https://ursy.com/wiki/url-inspection/) on a parameter address to see which page Google chose as canonical. Watch [crawled, currently not indexed](https://ursy.com/wiki/crawled-currently-not-indexed/) for a flood of parameter copies.
10. Read your [server logs](https://ursy.com/wiki/server-logs/) to see how many bot requests [hit](https://ursy.com/wiki/hit-analytics/) parameter addresses. The [AI Crawler Log Analyser](https://ursy.com/ai-crawler-log-analyzer/) does this in your browser.
11. Put your site next to a rival with [Compare Two Websites](https://ursy.com/compare-websites/), and get an overall score from the [AI Readiness Checker](https://ursy.com/ai-readiness-checker/).
12. To watch it every day, [crawl trap guard](https://ursy.com/pro/crawl-trap-guard/), [crawl budget by bot](https://ursy.com/pro/crawl-budget-by-bot/) and [campaigns](https://ursy.com/pro/campaigns/) are in URSY Pro, opening in stages.

## What URSY.com counts {#what-ursy-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](https://ursy.com/wiki/referrer/) where one is sent. The full rules are on our [methodology](https://ursy.com/methodology/) page.

## Questions {#questions}

### Do URL parameters hurt SEO? {#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? {#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? {#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? {#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.

## Related words {#related-words}

- [URL](https://ursy.com/wiki/url/)
- [UTM parameters](https://ursy.com/wiki/utm-parameters/)
- [Canonical tag](https://ursy.com/wiki/canonical-tag/)
- [Duplicate content](https://ursy.com/wiki/duplicate-content/)
- [Crawl budget](https://ursy.com/wiki/crawl-budget/)
- [Pagination](https://ursy.com/wiki/pagination/)
- [Robots.txt](https://ursy.com/wiki/robots-txt/)
- [Technical SEO](https://ursy.com/wiki/technical-seo/)

## Sources {#sources}

- [RFC 3986: Uniform Resource Identifier (URI): Generic Syntax](https://www.rfc-editor.org/rfc/rfc3986.html), checked 24 November 2026
- [MDN: URL search property](https://developer.mozilla.org/en-US/docs/Web/API/URL/search), checked 24 November 2026
- [Google Search Central: URL structure best practices](https://developers.google.com/search/docs/crawling-indexing/url-structure), checked 24 November 2026
- [Google: Managing crawling of faceted navigation URLs](https://developers.google.com/search/docs/crawling-indexing/crawling-managing-faceted-navigation), checked 24 November 2026
- [Google Search Central Blog: URL Parameters tool deprecation (28 March 2022)](https://developers.google.com/search/blog/2022/03/url-parameters-tool-deprecated), checked 24 November 2026
- [Google Search Central: How to specify a canonical URL](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls), checked 24 November 2026
- [Google Search Central: How Google interprets the robots.txt specification](https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt), checked 24 November 2026
- [Google Analytics Help: URL builders, collect campaign data with custom URLs](https://support.google.com/analytics/answer/10917952), checked 24 November 2026

*Updated 24 November 2026 by URSY.com.*
