By Greg Nowak. Updated 22 November 2026.
A campaign link, a product filter, and a preview URL can all contain query parameters: the values after the question mark in a web address. Each serves a different purpose. Problems start when an SEO change, caching rule, or analytics cleanup treats them all alike.
For a business owner or operations lead, the consequences can include wasted server work, useful pages getting overlooked, broken filters, and unreliable campaign reporting. The starting question is straightforward: does this parameter change what the visitor receives, describe the visit, or control access?
Start with the URLs that are causing trouble
Build a small inventory from server logs, Search Console, analytics, CDN traffic, and links generated by the CMS. Record each parameter’s purpose, owner, affected routes, and observed behaviour. Include combinations: a harmless campaign tag can arrive alongside a content-changing filter.
Prioritise evidence of a problem. Repeated crawling of empty filter combinations warrants attention. Separate cache entries for identical public responses may offer a performance improvement. A handful of tagged newsletter links alone does not justify a large cleanup project.
Use this matrix to agree the policy before changing production rules.
| Parameter type | Search treatment | Caching and measurement |
|---|---|---|
| Campaign tags: utm_source, gclid | Prefer the equivalent clean URL; keep tags out of internal links and sitemaps. | Preserve attribution. Share cache entries only after checking response equivalence. |
| Sorting and display options | Review whether variants are genuinely equivalent. | Retain differences that change returned content or ordering. |
| Useful filter landing pages | Select deliberately; make crawlable and consistently linked. | Keep content-changing filters in the cache key. |
| Other filters and internal search | Set explicit crawl and indexing rules; limit discoverable combinations. | Assess freshness and personalisation before caching. |
| Preview, account, or session parameters | Require appropriate access controls. | Bypass shared caching for private or user-specific responses. |
Choose which filtered pages deserve search visibility
A filtered landing page needs a business reason to exist: relevant demand, a useful selection, and someone responsible for maintaining it. Agree those pages with the SEO and commercial teams. Letting every possible combination become discoverable creates an uncontrolled publishing system.
For duplicate or very similar pages, align canonical tags, internal links, and sitemap entries around the preferred URL. Google’s canonical guidance describes signals that influence its choice; they are not guarantees. Treat pagination separately when later pages contain different items.
For unwanted crawling of filters, Google’s faceted-navigation guidance includes this robots.txt example:
User-agent: Googlebot
Disallow: /*?*products=
Disallow: /*?*color=
Disallow: /*?*size=
Allow: /*?products=all$Adapt it to your routes. These disallow rules apply across the site; the exception matches URLs ending in ?products=all. Test valuable landing pages against the proposed rules.
Blocking crawling does not guarantee removal from search and prevents Google reading page-level canonical or noindex instructions. Plan removal of already-indexed URLs before blocking access. Google also recommends a real HTTP 404 at the requested URL for empty or nonsensical filter combinations and nonexistent pagination, rather than redirecting to a generic error page.
Make Cloudflare respect what the application returns
A cache key determines which requests can reuse a stored response. Cloudflare’s default key includes the query string, so equivalent URLs can occupy separate entries where caching is active. First establish whether the affected responses are actually cached.
If two campaign URLs return the same public response, excluding their tracking parameters from the key can allow reuse while leaving the visitor’s URL intact. Removing parameters through a redirect is a separate decision with attribution consequences.
Check response headers and application behaviour as well as the visible page. A parameter could set a cookie, select a currency, or assign an experiment. Keep those differences separate or bypass caching. Unknown parameters should remain distinct until reviewed.
Cloudflare currently lists selective query-parameter inclusion and exclusion as Enterprise features. Its broader ignore-query-string option is available across plans, but would also collapse content-changing parameters on matching routes.
Query-string sorting can consolidate different parameter orders. Test repeated parameters and endpoints that depend on order. Cloudflare documents WordPress admin compatibility issues and notes that newer versions may avoid them following a 2019 patch. Scope sorting to suitable routes.
Keep campaign attribution while simplifying reports
Check the reporting dimension before changing tracking. Google’s GA4 documentation says UTM parameters are omitted from Landing page + query string and Page path + query string, while appearing in Page location. A report using the full location can therefore look different from a page-path report.
Agree consistent campaign names and letter case. Review page performance separately from acquisition performance. Before removing UTMs or advertising click identifiers, test whether measurement captures them correctly through consent handling, navigation, and the conversion event. Cleaner-looking URLs are a poor trade if campaign reporting stops working.
Give the rollout an owner and acceptance criteria
On WordPress or Drupal, inspect generated links, canonical output, sitemaps, and caching modules together. Give one person responsibility for coordinating the CMS developer, SEO specialist, marketing team, and CDN configuration.
Release one parameter family or route group at a time. For each, test clean, tagged, filtered, paginated, invalid, and authenticated requests. Check status codes, rendered content, canonical output, repeated-request cache behaviour, and attribution. Confirm that private responses cannot be reused for another visitor.
Keep the previous configuration available for rollback and purge affected cache entries where needed. Compare crawl activity, origin requests, cache hit rates, indexing, and reporting with the baseline. Judge success on the affected routes; a site-wide average can hide a broken filter.
The handover should include the parameter policy, named owners, and checks for new campaigns or plugins. If this work sits between your agency and internal team, talk to Greg about a URL-parameter cleanup. An initial review can establish priorities and give everyone a clear implementation brief.
Related on GrN.dk
- JavaScript-Heavy Service Pages Still Lose Leads: What to Audit in 2026
- Cloudflare Page Rules Debt: How Old Rules Break Business Websites
- A stray Set-Cookie can waste your CDN: audit the cache at the edge
Need help with this kind of work?
Talk to Greg about a URL-parameter cleanup Get in touch with Greg.