Sub topic 12
Checking Your Layout with Testing and Heatmaps
This chapter assumes you know the F-pattern and Z-pattern from earlier chapters. It also assumes you know what fixations, saccades and heatmaps are, and that you accept these patterns as tendencies, not laws. Here you will learn how to check whether a real page behaves the way your layout intends.
Why a layout needs a check
An F-pattern or Z-pattern layout is a hypothesis. You predict that visitors will notice the headline, find the navigation and reach the call to action (CTA). Tasks, language direction and device all change scanning, so your page may not behave like the textbook example. A small check turns the guess into evidence.
You do not need a lab. Start with a question you can answer, such as "Do first-time visitors see the signup button without scrolling?"
Choose a method for the question
| Method | What it shows | Cost | Best for |
|---|---|---|---|
| Moderated usability test | Where people hesitate, and why, in their own words | Low (5 participants is a common start) | Finding confusing headings and missed CTAs |
| Eye tracking | Real fixations and saccades | High (hardware or paid panel) | Confirming where attention goes on a key page |
| Click map | Where visitors click | Low (a script on the live page) | Checking whether CTAs and links attract clicks |
| Scroll map | How far visitors scroll | Low | Checking whether content below the fold is reached |
| Predicted attention map | A model's guess at where people look | Low | Early drafts, before any real visitors exist |
Click and scroll heatmaps record behavior. They do not record gaze. A person can look at a headline for five seconds and never click it, so a cold spot on a click map does not mean the area was ignored.
A repeatable loop
Write the prediction before you look at data. For the Z-pattern landing page from earlier, it might read: "Visitors will click the top-right nav or the bottom-right CTA. The headline will be read first."
Reading a click map yourself
Most heatmap tools export raw click coordinates. The script below bins them into a 3 by 3 grid, so you can compare the top-right and bottom-right cells with your prediction. It uses only the Python standard library.
from collections import Counter
# (x, y) click positions in pixels, from a 1000 x 1000 page area
clicks = [(120, 40), (900, 45), (905, 50), (470, 380),
(880, 900), (890, 910), (885, 905)]
page_width, page_height = 1000, 1000
cols, rows = 3, 3
counts = Counter()
for x, y in clicks:
col = min(x * cols // page_width, cols - 1)
row = min(y * rows // page_height, rows - 1)
counts[(row, col)] += 1
for row in range(rows):
print(" ".join(str(counts[(row, col)]) for col in range(cols)))The output is:
1 0 2
0 1 0
0 0 3Clicks gather in the top-right (the navigation) and the bottom-right (the CTA). That matches a Z-pattern prediction. If most clicks had landed in the middle row, you would look at what sits there and why it competes with the CTA.
Sample size and honest reading
Seven clicks prove nothing. A heatmap from a few dozen visits is noise. Wait for a few hundred sessions on the page before you trust the shape. Also keep these points in mind:
- Segment by device. Desktop and mobile heatmaps should be read separately, because mobile layouts stack content in one column.
- Segment by task. Visitors comparing prices scan differently from visitors looking for a phone number.
- Separate new from returning visitors. Returning visitors know where things are and skip the hero.
- Change one thing at a time. If you move the CTA and rewrite the headline together, you cannot tell which change helped.
Pair numbers with observation
Heatmaps tell you where. Short sessions with real users tell you why. Ask a participant to find the return policy on your text-heavy page and watch. If they skip your front-loaded headings and read the first paragraph, your headings may not carry their key point. If they scroll past the CTA, check contrast and whitespace around it before you move it.
When results disagree with the pattern, trust the results. The pattern was only a starting point for your design.
Exercise
Your Z-pattern landing page has a CTA in the bottom right. A click map from 400 mobile and desktop sessions combined shows very few clicks there. List two reasons why this might not mean the layout failed, and one next step.
Show answer
First, the combined data mixes devices. On mobile the layout is one column, so the CTA may sit far down the page and the Z-pattern does not apply. Second, a click map shows clicks, not looking, so visitors may have seen the CTA but left or chosen another action. Next step: split the data by device, check the scroll map to see how many visitors reach the CTA, and run a short usability test with a signup task.