Part 2 · How a website works

URL parameter

The part of a web address that changes the page.

Interactive film

URL parameter

  1. The link from Anna
  2. Where did this visitor come from?
  3. What if the address is wrong?
about 5 minutes

What it is

Look at the end of a web address. After the question mark, you often see pairs of a name and a value, such as ?category=shoes&size=42. These are URL parameters. The site reads them and shows only what they ask for. The developer of the site decides their names.

In a meeting

Ask: “Can people share a filtered page as a link?” If the filters are not in the URL, a customer cannot send the results to a colleague, and your marketing team cannot measure campaign links.

Where it is on the journey

One visit to a website, in 8 steps. The lit steps are where URL parameter works.

The request goes out

  1. Youtype an address
  2. Browsersends the request (this term)?size=42
  3. ISPcarries it on the internet
  4. Name serverfinds the IP address
  5. Server / web servergets the request, sends the answer (this term)reads size=42

The answer comes back

  1. Code (PHP)builds the answer
  2. Databasegives the data
  3. Browsergets the answer and shows the page

Your browser sends the whole address, with its parameters, to the server. The site's code reads them and picks what to show.