A query string is the part of a URL after ? that carries parameters. Stores use it to keep filter state, sorting, pagination, and tracking.
A query string is a key=value parameter list appended to a URL (e.g., ?size=45&color=black&sort=price_asc&page=2
). It encodes filters, facets, sorts, pagination, tracking, and sometimes search terms (when not using path-based routes).
size
, brand
, price_min
/price_max
, in_stock=true
.noindex
to the rest.sort
and page
parameters; keep page size bounded./men/trail-running?size=45&waterproof=true&price_min=80&price_max=150&sort=rating_desc
/search?q=air+max+270&in_stock=true&page=1
Query strings carry the state of your collections and search. Keep keys clean, sanitize inputs, and control crawl space with canonicals and parameter rules.
Path or query string for search terms?
Either works; path looks cleaner (/search/air-max-270
) but query params are simpler and flexible.
How to handle multi-select facets?
Repeat keys (brand=Nike&brand=Adidas
) or use arrays (brand=Nike,Adidas
) consistently.
Will parameters hurt SEO?
Not if you canonicalize and limit indexable combinations.