Part 2 · How a website works
URL parameter
The part of a web address that changes the page.
Interactive film
URL parameter
- The link from Anna
- Where did this visitor come from?
- What if the address is wrong?
Step Shoes Your shop
Anna · Team chatFound shoes for the team run! 👟
Anna
These ones, in your size 👇
Look, I changed it 👇
Step Shoes
shoes.example/shopVisitors today
120
utm_source=newsletter
What happened
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
- Youtype an address
- Browsersends the request (this term)?size=42
- ISPcarries it on the internet
- Name serverfinds the IP address
- Server / web servergets the request, sends the answer (this term)reads size=42
The answer comes back
- Code (PHP)builds the answer
- Databasegives the data
- 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.