Does Text Near a Link Affect Search Rankings?

ProcrustesPR

Text near a link can provide context, but that does not justify claiming that “the closer a keyword is to a link, the better the ranking.” Google’s link guidelines emphasize surrounding context, while Ahrefs’ 2019 study found no clear correlation between query terms in surrounding text and rankings. The better-supported approach is to help readers understand what a link points to, rather than treating keyword proximity as a proven way to improve rankings.

ProcrustesPRProcrustesPRDo I have to buy backlinks for SEO?

Providing context does not guarantee better rankings

Google’s guidelines recommend that anchor text—the clickable text in a link—be specific and concise, and that the surrounding text provide full context. Placing different links one after another makes it harder for readers to distinguish them and understand what each one is for.

  • First, read the clickable text on its own to check whether it describes the destination page’s content.
  • Use surrounding sentences to provide additional explanation, rather than forcing in related keywords.
  • When placing multiple links together, explain what each one covers; the cheese article example in the guidelines distinguishes the links by each article’s topic.

These recommendations emphasize the importance of link context, but they do not specify how much text proximity affects rankings or how close the text would need to be to make a difference.

Possible uses described in a patent do not prove how the current algorithm works

In a 2019 Ahrefs article, Joshua Hardwick cited a patent Google filed in 2004: data to the left or right of a link, or its anchor text, could be used to determine the link’s context. Based on this, the author suggested that surrounding text might help Google understand the destination page when the anchor text is generic.

This is a possible explanation based on the patent, not confirmation of how Google currently uses this mechanism. Although an answer on Webmasters Stack Exchange described text proximity to a link as “almost certainly” a ranking factor, that was a community contributor’s judgment and should not be treated as an official rule.

The 2019 study showed no clear correlation with rankings

Ahrefs’ Study 2 limited its analysis to pages with only random-anchor links and no links with exact-match, partial-match, or other such anchor text. From these, it selected 16,000 pages, with 800 pages at each ranking position from 1 to 20, to keep sample sizes equal across positions.

  • Surrounding text containing at least one query term: the mean Spearman correlation coefficient was -0.0701, a slight negative correlation close to zero.
  • Surrounding text containing all the words in the query: the mean coefficient was 0.0205, also indicating almost no correlation.

The first category accounted for an average of about 20%–25% of links at each ranking position, but the median was zero, so this does not mean that most pages had such links. The study also noted a limitation: a page may rank for many queries, so the choice of query used for comparison matters. These results neither prove that keyword stuffing works nor prove that context has no effect at all.

How should “SEO by” next to a company name be understood?

“SEO by” can help readers understand the relationship between the linked company and the service, but that does not establish that Google associates the text with the backlink in a particular way. Nor does it guarantee better rankings for “SEO”-related queries. If the text accurately describes the service relationship, it can be kept to help readers understand; there is no need to repeat keywords next to a link in pursuit of an unproven ranking benefit.

ProcrustesPRProcrustesPRHow can I tell whether an SEO tactic breaks spam rules?

Text around links and search rankings: perspectives from across the web

Will search engines necessarily treat “SEO by” next to a linked company name as part of the link?

That is uncertain. The text can help readers understand the relationship between the company and the service, but that does not establish how Google interprets its relationship to the backlink or whether it improves rankings for “SEO”-related queries. If the description is accurate, it can be used to explain the service relationship; there is no need to repeat it deliberately in pursuit of better rankings.

How much can surrounding text compensate for generic anchor text?

It is unclear how much it can compensate. Surrounding text may help explain what a link points to, but there is no guarantee that search engines will interpret it as intended. The Ahrefs author suggested this possibility based on an old patent; Google’s guidelines recommend first checking whether the anchor text is specific enough when read on its own, then using complete sentences to provide context. A possible use described in a patent is not proof of how the current algorithm works.

Does the low correlation found in the study mean that text around links has no effect on rankings?

No. In the specific sample used in Ahrefs’ 2019 study, there was almost no correlation between query terms appearing in surrounding text and rankings; that does not prove that context has no effect at all. The study restricted the types of anchor text and ranking positions examined. A single page may also rank for many queries, making the choice of query used for comparison another limitation.

ProcrustesPRWill Reposting Social Content on My Website Cause a Duplicate-Content Penalty?

References

  1. Google 的搜尋引擎最佳化連結最佳做法 | Google 搜尋中心  |  Documentation  |  Google for Developersdevelopers.google.com — Discusses: Will search engines necessarily treat “SEO by” next to a linked company name as part of the link?; How much can surrounding text compensate for generic anchor text?
  2. Backlinks: How does a company's name as the anchor text help with SEO?webmasters.stackexchange.com — Source used in the article above.
  3. Anchor Text: A Data-Driven Guide (384,614 Web Pages Studied)ahrefs.com · 2019-02-26T20:07:54+00:00 — Discusses: Will search engines necessarily treat “SEO by” next to a linked company name as part of the link?; How much can surrounding text compensate for generic anchor text?

Related articles

Do I have to buy backlinks for SEO?How can I tell whether an SEO tactic breaks spam rules?Will Reposting Social Content on My Website Cause a Duplicate-Content Penalty?Eight SEO essentials for beginners: BacklinksHow can you use multiple domains to build content and traffic while assessing the risks?How do you choose a new domain and maintain external links?Microsite or multiple landing pages? Separate branding needs from ranking expectations firstDoes Google Penalize Black-Hat SEO? First, Distinguish the Tactics and Scope of Impact
ProcrustesPR
ProcrustesPR