Knowledge base glossary
What is a Query Parameter? A short definition.
A query parameter is a term for a defined set of parameters placed at the end of a URL. On a site search results page, for example, these extensions make clear that a website visitor is searching for a specific word or phrase. A query parameter is used to define specific (search) actions based on data that is passed.
A query parameter can be formatted with a letter or a word such as s, q, search or query. In addition, query parameters can be appended to the end of the URL with a “?”. Query parameters can be seen as a useful source of information about a visitor’s behaviour on a website. After all, a query parameter offers a website owner possibilities to keep track of searches.
How a query parameter is built
Each parameter is a key and a value joined by an equals sign, and an ampersand separates the pairs. In https://example.com/shoes?colour=red&size=42 there are two parameters: colour=red and size=42.
Campaign parameters and click IDs
Marketers use query parameters to show where a visit came from. Google Analytics reads UTM parameters. Google advises always setting utm_source, utm_medium and utm_campaign, because missing ones show up as (not set) in reports.
Ad platforms also add their own click IDs to the landing page URL:
- gclid: added by Google Ads auto-tagging.
- wbraid and gbraid: Google Ads parameters for iOS traffic affected by Apple’s App Tracking Transparency rules.
- fbclid: added by Meta for ad clicks on Facebook and Instagram. The Meta Pixel stores it in the _fbc cookie.
- msclkid: added by Microsoft Advertising when auto-tagging is on.
If a redirect drops these parameters before the final landing page, the click can’t be tied to a conversion.
How GA4 handles query parameters
GA4’s enhanced measurement detects site searches through the parameters q, s, search, query and keyword, and you can add your own. Query parameters can also contain personal data. GA4’s data redaction setting replaces the values of parameters you list with “(redacted)” before the data is sent.
Duplicate URLs and caching
A different query string can make the same page look like a duplicate. Google uses a URL ending in ?gclid=ABCD as its example and recommends a rel=”canonical” link to the clean URL. Caches work the same way: Cloudflare includes the query string in its default cache key, so each unique tracking parameter can create a separate cache entry.

