URL Parameters, Session IDs and Calendars: Crawl Traps on Trades Websites

URL Parameters, Session IDs and Calendars: Crawl Traps on Trades Websites

A small trades site can end up with thousands of URLs by accident: filter links, sort options, tracking tags and booking calendars. Google’s URL guidance explains how these multiply and what to do. This guide turns it into a checklist.

I am Robiul Alom Ronju, Founder of Nexranking. The Google points below come from the help pages linked in Sources. My own advice is marked as mine.

URL parameters, session IDs and calendars: crawl traps on UK trades websites
Built from Google Search Central’s URL structure guidance.

How URLs multiply

Google’s URL structure guidance lists several causes. Additive filters, where options can be combined, create an explosion of near-duplicate URLs. Irrelevant parameters, such as referral, sort and session values, multiply URLs. Infinite calendars generate future pages without end.

Session IDs

Google says to avoid session IDs in URLs and use cookies instead. A session ID in the address gives every visitor a different URL for the same page. For a trades site this appears with some booking and shop plugins.

Parameters: the rules

  • Join key and value with an equals sign and add parameters with an ampersand.
  • Use a comma to list several values for one key.
  • Do not use colons, brackets or double commas to structure parameters.
  • Use as few parameters as possible and remove any that do not change the content.

Calendars and booking pages

For a calendar that generates future pages dynamically, Google says to add nofollow to links to the next pages. A booking widget that makes a page for every day for the next ten years is a classic trap.

Relative links

Google warns that parent-relative links, such as those that start with two dots, can create endless bogus URLs if the server does not return the right status for pages that do not exist. Use root-relative links instead. This is a developer detail but worth one question to your web team.

What to do

  • Block problem dynamic URLs, such as search results, calendars and sort or filter links, in robots.txt where that is the right tool.
  • For faceted navigation, follow Google’s guidance on managing those URLs.
  • Keep the sitemap to the clean URL for each page.
  • Use clean words in the path, with hyphens, not underscores.
  • Check Search Console for thousands of URLs you do not recognise.

A quick check

This is my own advice. Search your site with site: and a question mark in the query, or look at the Page indexing report for odd parameters. If you see many versions of one page, fix the source. Read robots.txt versus noindex and URL structure for trades websites for the next step.

Questions for your web developer

Ask which plugins create URLs automatically, whether any link adds a session ID, and how the site handles a URL that does not exist. Ask them to list the parameters your site uses and what each one does. This is my own advice. A short written answer is enough, and it gives you something to check after every plugin update.

A worked example

Illustrative example, not a client case. A cleaner’s booking plugin creates a calendar page for every day and a link for every cleaner and time. Search Console lists 6,000 URLs she has never seen. Her developer limits the calendar, adds nofollow to the next-month links, blocks sort options in robots.txt and keeps the sitemap to 40 clean pages.

Mistakes I see

  • Letting a plugin create endless pages.
  • Session IDs in URLs.
  • Sort and filter links with no limits.
  • Listing parameter URLs in the sitemap.
  • Blocking in robots.txt without checking what is already indexed.

Next, read crawl budget and ask for an audit.

Are parameters bad?

Not by themselves. Google advises using as few as possible and removing those that do not change content.

What is a crawl trap?

A set of links that generates endless new URLs, such as a calendar.

Should I use cookies instead of session IDs?

Yes, Google says to avoid session IDs in URLs.

Do I need robots.txt rules?

Google lists blocking problem dynamic URLs as one fix. Check the effect first.

Sources