Query Strings

Query String URLs

Why?

  • Pass information using the URL itself

  • Set information on the page e.g. filter product listing

  • Get information from other sources e.g. Google Search results

  • Track clicks, links, and browsing history

  • Manage in page content e.g. pagination navigation, language translation, turn autoplay on/off, etc.

What?

  • A query string is a part of a uniform resource locator (URL) that assigns values to specified parameters. - WikiPedia

  • Also known as “URL Parameters” or “URL query parameters”

How?

  • URL base

  • key value pairs

  • ? start query

  • = assign value to key

  • & add more keys with values

Additional References

https://www.semrush.com/blog/url-parameters/

Last updated