Sub topic 12
Placing and repeating the call to action
This chapter assumes you can write basic HTML and CSS. It also assumes you already have a single conversion goal and a written call to action (CTA) label. Here you decide where the CTA goes and how many times it appears.
One action, several places
A landing page has one conversion goal, so every CTA on it should ask for the same thing. Placement is about meeting visitors at the moment they are ready to act. Visitors reach that moment at different points. Some are convinced by the headline alone. Others need the proof or the offer first.
For that reason, a CTA usually appears more than once. Each placement should follow content that gives the visitor a reason to click.
Where to place the CTA
| Placement | Who it serves | What comes before it |
|---|---|---|
| Hero, near the top | Visitors who already know the product and arrived with clear intent | Headline and subheadline |
| After the proof section | Visitors who needed a reason to believe the claim | Testimonials, logos, or figures |
| After the offer | Visitors who needed to see price, terms, and next steps | The full description of what they get |
| Closing section or sticky bar | Visitors who read to the end, or who scroll back up | The whole argument |
A short page may need only two CTAs, in the hero and after the offer. A long page can use more. Adding a CTA to every section is a mistake, because the page starts to feel like pressure instead of a path.
Keep every repeat identical in meaning
Repeated CTAs should use the same label and point to the same destination. In the skeleton, both buttons say "Start your free trial" and link to /signup.
<a class="button" href="/signup" data-cta="hero">Start your free trial</a>
<!-- later in the page -->
<a class="button" href="/signup" data-cta="offer">Start your free trial</a>The data-cta attribute differs, but the visitor sees one action. Changing the label to "Learn more" in one place and "Buy now" in another creates competing calls to action. That splits attention and makes the page harder to measure.
Make the button findable and usable
A CTA only works if the visitor can find it and operate it. Give the button strong contrast with its text and with the page. Add a visible keyboard focus style, so people who do not use a mouse can see where they are.
.button {
display: inline-block;
padding: 0.75rem 1.5rem;
background: #0b5fff;
color: #ffffff;
font-weight: 600;
text-decoration: none;
border-radius: 0.375rem;
}
.button:focus-visible {
outline: 3px solid #111111;
outline-offset: 3px;
}Reuse one .button class for every placement. The repeats then look identical, and a later style change applies everywhere at once.
Record which placement worked
The data-cta values let you see which placement gets clicked. This script logs the value on each click. Replace console.log with your analytics tool's event call.
document.querySelectorAll('[data-cta]').forEach((link) => {
link.addEventListener('click', () => {
console.log('cta_click', link.dataset.cta);
});
});If almost every click comes from the hero, later CTAs may be unnecessary. If most come from the offer section, visitors may need more convincing before they act, so the proof may need to move higher.
Exercise
A landing page has a hero button labeled "Start your free trial", a mid-page button labeled "Learn more" that links to a features page, and a footer button labeled "Buy now". Name the problem and describe the fix.
Show answer
The page has competing calls to action. The labels and destinations differ, so the visitor is offered three different actions and the clicks cannot be compared. Use one label, such as "Start your free trial", and one destination, such as /signup, in all three places. Give each a different data-cta value so you can still measure which placement is clicked.