URL parameters are key and value pairs added to a URL after a question mark. They pass extra information to the server or the page, for example a sort order, a filter or a campaign tag. The part of the URL that holds them is the query string.
How are URL parameters written?
Google’s documentation recommends an equals sign (=) between key and value and an ampersand (&) between multiple parameters:
https://example.com/category?category=dresses&sort=low-to-high
Special characters are percent-encoded, so a space becomes %20 (MDN).
Which jobs do URL parameters do?
Typical uses are filtering and sorting in shops, site search, pagination, language selection and campaign tracking such as UTM tags (Botify). Some change the content of the page, others do not.
What do URL parameters mean for SEO?
Each parameter combination is a new URL. Google notes that crawlers cannot tell whether faceted navigation URLs are useful without crawling them first, so they often access a very large number of such URLs before concluding they are not. That slows the discovery of new content.
If parameter URLs should not appear in search, Google lists these options: block the parameters in robots.txt, use fragments instead of parameters for filters, point filtered pages to the unfiltered version with rel="canonical", or mark links with rel="nofollow". If they should be indexed, use standard & separators, keep the order of filters consistent and return a 404 when a combination has no results.
Common mistakes
- Filters that can be combined without limit. Google notes that crawlers often access a very large number of faceted navigation URLs before concluding they are not useful, which slows the discovery of new content.
- Missing 404 for empty combinations. For parameter URLs that should be indexed, Google advises returning a 404 when a filter combination has no results.
- Relying on the URL Parameters tool. Google deprecated the Search Console tool in 2022 and says its crawlers learn how to handle parameters on their own. robots.txt rules remain for more control.
Sources
- URL structure best practices for Google Search – Google Search Centraldevelopers.google.com
- Managing crawling of faceted navigation URLs – Google Search Centraldevelopers.google.com
- URL: search property – MDN Web Docsdeveloper.mozilla.org
- What are URL parameters? – Botify (secondary)botify.com
- Spring cleaning: the URL Parameters tool – Google Search Central Blogdevelopers.google.com
Last updated: