Sub topic 12
Checking your layout with testing and heatmaps
This chapter assumes you know basic HTML and CSS and the common page parts: header, navigation, hero section and call to action. It also assumes you have read the earlier chapters on the F-pattern, the Z-pattern and the limits of both. Those limits are the reason this chapter exists. A scanning pattern tells you where to start. It does not tell you whether your page works.
Why a pattern is a hypothesis
When you choose an F-pattern-friendly or Z-pattern-friendly layout, you are making a prediction. You predict that visitors will look at certain places in a certain order, and that they will find what they need. Predictions can be wrong for your page. Your audience may be unusual. Their task may differ from the task in the original research. They may read a language that runs right to left, or they may arrive on a phone.
Validation turns the prediction into evidence. Two methods cover most needs:
- Usability testing shows you what people do and why. You watch real people try real tasks.
- Heatmaps show you what many people do in aggregate. They count where visitors look, click or scroll.
The two methods answer different questions, so they work best together.
Recalling the measurement basics
Eye tracking records two kinds of events. A fixation is a short pause where the eye takes in information. A saccade is the quick jump between fixations. During a saccade the eye takes in almost nothing. A gaze heatmap adds up fixations across many people and colors the page, with warm colors where many fixations landed.
Most teams cannot run an eye-tracking lab. They use cheaper proxies instead, and each proxy measures something different from gaze:
| Method | What it measures | Relation to gaze |
|---|---|---|
| Eye tracking | Fixations and saccades | Direct measure |
| Click map | Where people click or tap | Shows action, not attention |
| Scroll map | How far down the page people get | Shows reach, not attention |
| Move map (mouse tracking) | Where the pointer travels | Loose correlation with gaze |
| Session recording | One visitor's full session replayed | Shows behavior in context |
A click map cannot tell you that visitors saw a button and ignored it. It only tells you who clicked. Keep this difference in mind when you read results.
Step 1: write a question before you collect data
A test without a question produces a pile of screenshots. Write down what you want to learn. Good questions are specific and tied to a layout decision:
- Do visitors find the pricing link in the top navigation within five seconds?
- Does the call to action in the bottom right of the landing page get noticed, or do people leave at the hero?
- On a long article, do readers see the subheadings, or do they scroll past them?
Each question names an element, a behavior and a way to tell success from failure. Write the success threshold down before you look at the data. For example, "at least 8 of 10 participants find the return policy within 30 seconds." If you set the threshold afterward, you will tend to accept whatever the data shows.
Step 2: run a small usability test
A usability test needs fewer people than most expect. Small rounds of about five participants usually reveal the most serious problems on a page. After you fix those, run another round. Several small rounds find more than one large round, because each fix exposes the next problem.
A simple procedure:
- Recruit participants who resemble your real visitors. Colleagues who built the page are poor substitutes, since they know where everything is.
- Give each participant a realistic task, not an instruction about the layout. Say "You bought a jacket and it does not fit. Find out how to send it back." Do not say "Find the return policy link."
- Ask them to think aloud while they work.
- Stay quiet. Do not hint, and do not defend the design.
- Record the screen, and the participant's voice if they agree.
- Note where they hesitate, backtrack or give up.
The task wording matters because scanning depends on the task. A person hunting for a specific fact scans differently from a person browsing. If your task points at the answer, you test nothing.
What to look for
Watch for signs that the layout is not guiding the eye as planned:
- A participant scrolls past the heading that holds the answer. The heading may be vague, or it may be set in a style that looks like body text.
- A participant looks at the hero image for a long time and never reaches the call to action. The image may dominate the hierarchy.
- A participant says "I thought that was an ad." Banner-like styling can make people skip real content.
- A participant reads the first words of each line and then jumps. That matches F-pattern behavior. Check that those first words carry the meaning.
Eye tracking in a test
If you have eye-tracking equipment, you can add gaze data to the session. Make sure the pages are loaded in a stable state. Dynamic elements such as sliding carousels or late-loading images move the layout under the gaze data and produce misleading heatmaps. Keep the same viewport size across participants, or your aggregates will blur together.
Step 3: collect heatmap data from real traffic
Usability tests are small and staged. Heatmaps use your actual visitors, which makes them a good check on what the tests suggested.
Tools vary, but the setup is similar. You add a script to the page, the tool records interactions, and it renders maps after enough sessions. A few practical rules:
- Collect enough sessions. A map built from 20 visits is noise. Many tools suggest a few thousand page views per map for stable results, and rarely clicked elements need even more. Treat the tool's own guidance as a starting point.
- Segment the data. Desktop and mobile layouts differ, so they need separate maps. A combined map hides both. Split by traffic source as well if your visitors differ, for example search visitors compared with returning customers.
- Keep the page stable. If you change the layout in the middle of collection, the map mixes two designs.
- Respect privacy. Mask form fields, avoid recording sensitive pages, and follow your consent rules. Do not capture passwords or payment details.
Reading a click map
Look for clicks that match your hierarchy, and for clicks that do not.
- Many clicks on a headline or image that is not a link suggest people expect it to be clickable. Either make it a link or change its styling.
- Few clicks on your main call to action mean it may be unseen, unclear or unwanted. The click map alone cannot tell you which.
- Clicks scattered over a navigation menu suggest people are searching for something and not finding it.
Reading a scroll map
A scroll map shows the share of visitors who reach each depth. The point where the color changes sharply is often called the fold line for your audience, and it varies by device and by page.
Use it to test placement decisions. If your call to action sits in the bottom right of a long landing page and only 25 percent of visitors scroll that far, the Z-pattern endpoint is out of reach for most people. You would then move the call to action up or add one earlier. The page in the Z-pattern example can fail this way if the hero is tall.
The same map shows whether the key content of a text-heavy page sits before the steep drop-off. Front-loaded headings only help if people reach them.
Reading a gaze or move map
If you have gaze data, compare it with the pattern you designed for. A Z-pattern layout predicts attention along the top, then across the diagonal, then along the bottom. If gaze concentrates in one area, the visual hierarchy may be too strong in that place. If gaze is spread evenly with no clear path, the hierarchy may be too weak.
Treat mouse-movement maps with more caution. People often move the pointer to rest it, not to follow their gaze.
Step 4: combine the sources
Each method has a blind spot. Combining them lets one cover another.
| Question | Best first source | Then confirm with |
|---|---|---|
| Is anything wrong? | Heatmaps and analytics | Session recordings |
| Why is it wrong? | Usability test | Session recordings |
| Did my fix help? | Heatmaps and conversion numbers | Another small test |
| Where does the eye go? | Eye tracking | Click and scroll maps |
A typical cycle looks like this: a scroll map shows that most visitors never see the call to action, a usability test shows that participants stop reading at the large hero image, you shorten the hero, and a new scroll map confirms that more people reach the call to action.
Step 5: change one thing and measure again
When a result points to a problem, change one element at a time where you can. If you move the call to action, shorten the hero and rewrite the headline together, you cannot tell which change helped.
When you have enough traffic, an A/B test compares two versions at the same time with random assignment. This protects you from outside effects such as a sale, a holiday or a news story that change who visits. Decide the metric first, such as the share of visitors who click the call to action, and run the test long enough to cover at least one full weekly cycle, since behavior differs between weekdays and weekends.
Marking elements so you can measure them
You can make later analysis easier by giving key elements stable, descriptive identifiers. Most heatmap and analytics tools can report on an element by its id or a data attribute. The sketch below tags the parts of the Z-pattern landing page from earlier in the tutorial.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Acme</title>
</head>
<body>
<header>
<a href="/" data-track="logo">Acme</a>
<nav>
<a href="/pricing" data-track="nav-pricing">Pricing</a>
<a href="/login" data-track="nav-login">Log in</a>
</nav>
</header>
<main>
<h1>Plan projects in minutes</h1>
<p>One shared board for tasks, deadlines and files.</p>
<a href="/signup" data-track="cta-hero">Start free trial</a>
</main>
<footer>
<a href="/signup" data-track="cta-footer">Start free trial</a>
</footer>
</body>
</html>Two call-to-action links with different data-track values let you compare how many visitors use the one near the hero and how many use the one at the bottom right. Keep the names stable across redesigns, or your history will break.
Common mistakes
- Treating a heatmap as proof of attention. A click map shows action. A move map shows pointer position. Neither equals gaze.
- Reading too much into a small sample. Sparse data produces dramatic but unreliable colors.
- Mixing devices. A desktop layout and a mobile layout have different hierarchies. Separate them.
- Testing with leading tasks. If the task names the element, you learn nothing about whether people find it.
- Testing the wrong people. Staff and friends know the product and skip the confusion that new visitors face.
- Declaring a win without a threshold. Write the success measure first.
- Forcing the data to match the pattern. If the results disagree with the F-pattern or Z-pattern, believe the results. The patterns are tendencies, not laws.
Summary of the working model
A scanning pattern gives you a starting layout. Testing and heatmaps tell you whether the layout works for your visitors and your tasks. Write a question and a threshold, watch real people, confirm with aggregate data, change one thing and measure again.
Exercise
Your landing page has a call to action at the bottom right, following the Z-pattern. A click map shows very few clicks on it, and a scroll map shows only 20 percent of mobile visitors reach that part of the page. Name two actions you would take and the evidence you would use to check each one.
Show answer
First, move the call to action higher or add a second one near the hero. Check it with a new scroll map and a click map segmented by device, and compare clicks on the two links using separate data-track values. Second, run a small usability test with about five new visitors on mobile, using a task such as "Start a free trial", and watch whether they find the button. The scroll map shows that the endpoint is out of reach, so the test tells you what to change and why. Re-measure after each change, ideally with an A/B test using a threshold set in advance.
Exercise
A colleague says the heatmap proves visitors read your headline, because the headline area is bright red. What is wrong with that claim, and what would you check?
Show answer
The claim assumes the map shows gaze. If it is a click map, red means many clicks, which may mean people thought the headline was a link. If it is a move map, red only shows where the pointer rested. Check which kind of map it is, the number of sessions, and whether desktop and mobile are separated. Then confirm with eye-tracking data or a usability test where participants think aloud.