TapCub is live — analytics, insights and live chat, free on one platform
Glossary

What are URL parameters? Query strings, examples and SEO

URL parameters are key-value pairs added after a question mark to pass information in a link: filters, search terms, campaign tags. Their anatomy, common examples, encoding, and what they do to SEO and analytics reports.

Xu An Reviewed by Oliver Reed Also called query parameters Last updated Nov 7, 2026 Glossary

Quick answer

URL parameters (query parameters) are key-value pairs added to the end of a URL after a question mark, separated by ampersands, such as ?color=red&utm_source=newsletter. They pass information to the page or to tracking tools without changing the path.

Formula: https://host/path?key1=value1&key2=value2#fragment

What are URL parameters?

URL parameters (also called query parameters) are key-value pairs added to the end of a URL to pass extra information to a page or to a tracking tool. They start after a question mark, each pair is written key=value, and pairs are separated by &.

https://shop.example.com/shoes?color=red&sort=price&utm_source=newsletter#reviews
└─ scheme ─┘└──── host ────┘└path┘└──────────── query string ────────────┘└fragment┘

Here the page is /shoes; color=red and sort=price change what the page shows; utm_source=newsletter tells analytics where the visitor came from; #reviews (the fragment) jumps to a section and is never sent to the server.

Active vs passive parameters

  • Active (content) parameters change what the page displays: filters, sorting, pagination, search terms, language.
  • Passive (tracking) parameters do not change the content; they label the visit for analytics and ads: UTM tags, ad click IDs, referral codes, session IDs.

The distinction matters: active parameters may deserve their own indexable URLs; passive ones never do.

Common URL parameters

ParameterTypePurpose
utm_source, utm_medium, utm_campaign, utm_term, utm_contentTrackingCampaign attribution (UTM)
gclid, gbraid, wbraidTrackingGoogle Ads click IDs
msclkidTrackingMicrosoft Advertising click ID
fbclidTrackingAdded by Facebook to outbound links
ref, affTrackingReferral and affiliate codes
q, s, searchActiveSite search term
page, pActivePagination
sort, orderActiveSort order
color, size, categoryActiveFilters (faceted navigation)
lang, hlActiveLanguage

Encoding rules

URLs may only contain a limited set of characters (RFC 3986). Anything else is percent-encoded: a space becomes %20 (or + in form-style query strings), & inside a value becomes %26, = becomes %3D. Non-ASCII text such as café becomes caf%C3%A9. In JavaScript, read parameters safely with:

const params = new URLSearchParams(location.search);
params.get('utm_source'); // "newsletter"

URLSearchParams decodes values for you; building query strings by string concatenation is a common source of broken links.

URL parameters and SEO

  • Duplicate content. /shoes, /shoes?sort=price and /shoes?utm_source=x show the same products. Search engines must pick one, and signals are split between them.
  • Crawl waste. Faceted navigation can generate millions of filter combinations; crawlers spend their crawl budget on near-duplicates.
  • Fixes: add a rel="canonical" to the clean URL; link internally only to clean or canonical URLs; keep parameter order consistent; for infinite filter combinations, follow Google's faceted-navigation guidance rather than blocking everything in robots.txt. Google retired the Search Console URL Parameters tool in 2022, so this now has to be handled on the site itself.

URL parameters and analytics

  • Split page rows. If reports key pages by full URL, one page appears as many rows.
  • Overwritten sources. UTM tags on internal links (a homepage banner tagged utm_source=homepage) start a new campaign attribution mid-visit and wipe out the real source. Use UTMs only on links from outside your site.
  • Personal data. Forms submitted with GET put emails and names into the query string, where every analytics tool will store them. See PII.

A worked example

Sample data: a report keyed by full URL shows these rows for one product page in a month.

RowSessions
/shoes/runner-x1,240
/shoes/runner-x?utm_source=newsletter&utm_medium=email310
/shoes/runner-x?color=blue95
/shoes/runner-x?gclid=EAIaIQ…42
/shoes/runner-x?fbclid=IwAR…18
/shoes/runner-x?ref=partner1211
One page, total1,716

Looking only at the first row underreports the page by 28% (476 of 1,716 sessions sit in the other rows). Grouping by path fixes the page report, and the campaign information is not lost as long as the tool reads UTM and click IDs into source fields first.

A short checklist

  1. Use UTMs only on external links, in lowercase, with a naming convention.
  2. Never put personal data in a query string; submit forms with POST.
  3. Canonicalise parameter variants to the clean URL.
  4. Report pages by path; read campaign and click-ID parameters into source fields.
  5. Tell your analytics tool which parameter is site search.

How TapCub handles URL parameters

  • Page reports use the path. The collector drops the query string and a trailing / when it counts a page, so /shoes/runner-x?utm_source=newsletter is counted as /shoes/runner-x. The #fragment is dropped too, unless a hash-routed single-page app sets data-hash="true" on the script.
  • Campaign parameters become sources. Web analytics › Sources reads UTM source, medium, campaign, term and content. Visits with gclid, msclkid, wbraid, gbraid, yclid or bd_vid count as paid search by default. See track ad click IDs and click ID.
  • Site search parameters default to s,q,search and can be changed in project settings.
  • Build consistent links with the free UTM builder.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Xu An

Customer Experience Consultant

Writes about live chat, visitor conversations, and self-service, sharing practical ways to make customer communication clearer and more effective.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is the difference between URL parameters and a query string?

The query string is everything after the question mark. URL parameters are the individual key=value pairs inside it. In everyday use the terms are interchangeable.

Do URL parameters affect SEO?

They can. Parameters that create many URLs for the same content waste crawl budget and split signals. Use canonical tags, link internally to clean URLs and keep tracking parameters out of internal links.

Are UTM parameters URL parameters?

Yes. utm_source, utm_medium, utm_campaign, utm_term and utm_content are URL parameters that analytics tools read to attribute a visit to a campaign.

What is the difference between a URL parameter and a path parameter?

A path parameter is part of the path, like /products/123. A URL (query) parameter comes after the question mark, like /products?id=123. Path parameters usually identify a resource; query parameters filter or annotate it.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics