New: The $100M AI Visibility Roadmap, built from 7,960 live pages and 197 A/B tests. Get it free →

Home / Blog / Keyword Research vs Link Building: Which Comes First?

Content · 10 min read

Keyword Research vs Link Building: Which Comes First?

Keyword research decides what you rank for; link building helps you compete for it. Here's how to tell which one your store needs first, with a decision table and a six-month plan.

Robert Battle · Updated

Key takeaways
  • Ahrefs lists three reasons an indexed page gets no traffic: no search demand, no backlinks or intent mismatch, and two of the three are keyword research problems.
  • Do keyword research first when pages get few impressions or compete with each other; build links when pages already rank in positions 8 to 20.
  • Of roughly 20 million pages with no referring domains, Ahrefs found only 2,997 got more than 1,000 monthly search visits (December 2023).
  • In Ahrefs' 2025 study of 75,000 brands, branded web mentions correlated with AI Overview visibility at 0.664, versus 0.218 for backlinks.
  • Google's spam policies treat buying links for ranking purposes as link spam, so earn links from roundups, suppliers, press and brand mentions.

Keyword research tells you which searches to target and what each page must say to rank; link building earns the votes from other sites that help those pages compete. Prioritize keyword research first when your pages target the wrong queries or no one searches for them, and prioritize link building when your pages already match demand and intent but stall behind competitors with stronger backlink profiles.

This guide is for e-commerce and Shopify teams deciding where to spend a limited SEO budget. You'll get a side-by-side comparison, a decision table for when to prioritize each, a six-month sequence that combines them, what Google and Ahrefs data say about links today, and how AI search changes the balance.

Keyword research is finding the words shoppers type into Google (and increasingly ChatGPT and Perplexity) when they look for what you sell, then judging each term's demand, intent and difficulty. It decides what pages you build and what goes on them.

Link building is earning links from other websites to yours. Links help Google discover your pages and signal that other people find them worth referencing. Our guide to what link building is covers the tactics in depth.

They aren't competitors. Ahrefs' search traffic study (December 2023) says that, assuming a page is indexed, there are only three reasons it gets no organic traffic:

  1. No search demand. Nobody searches for the topic, so even ranking first brings no visits.
  2. No backlinks. On competitive queries, pages without links rarely reach page one.
  3. Search intent mismatch. The page isn't the kind of result Google shows for that query.

Two of those three are keyword research problems. One is a link problem. That's the simplest way to think about priority: figure out which of the three is holding your pages back, then fix that one first.

What keyword research does for a store

For an online store, keyword research is mostly about matching the right page type to the right search. "Waterproof hiking boots" is a collection page. "Best waterproof hiking boots for wide feet" might be a buying guide. "How to waterproof leather boots" is a how-to post that links to your care products. Get that mapping wrong and no amount of links will fix it, because Google won't see the page as the right answer.

What good keyword research produces

  • A keyword map. One primary keyword per URL, so your pages don't compete with each other. Our keyword mapping guide shows how to build one, and the keyword cannibalization checker finds overlaps you already have.
  • Collection and product page targets. The terms your money pages should rank for, written into titles, H1s and intro copy. See Shopify SEO keywords for store-specific examples.
  • A content list. Questions and comparisons that blog posts and guides can answer, each linking to a product.
  • Realistic targets. Terms where your site can compete now, versus terms that will need links first.

Don't dismiss small keywords. Ahrefs' long-tail keyword guide (updated May 2026) says keywords with fewer than 10 monthly searches make up almost 93% of its U.S. keyword database. Individually they're tiny; together they're most of the searches your shoppers make, and they're usually far easier to win without links.

Why keyword choice matters before links
96.55%Pages with zero Google trafficOf about 14 billion pages, 2023
~93%U.S. keywords under 10 searches a monthAhrefs U.S. keyword database, 2026
1 in 6,671No-link pages with 1,000+ visits2,997 of about 20 million pages, 2023

Source: Ahrefs, Search Traffic Study (December 2023) and Long-Tail Keywords guide (updated May 2026)

Links still matter to Google. Its ranking systems guide says PageRank, one of its original core systems, "continues to be part of our core ranking systems," and its SEO Starter Guide says Google "primarily finds pages through links from other pages it already crawled." Links from relevant sites help your pages get found, crawled and trusted.

For stores, the best links usually come from places that already talk about your products or category:

  • Gift guides and product roundups from publishers and bloggers in your niche
  • Supplier, manufacturer and retailer pages that list where to buy
  • Press coverage of a launch, a founder story or original data you publish
  • Existing mentions of your brand that don't link yet (see unlinked brand mentions)
  • Resource pages, communities and local organizations you genuinely work with

Links also cost more per result than keyword work. Researching and mapping keywords for an entire catalog is a fixed, mostly in-house project. Each good link takes outreach, a reason for the other site to care and often weeks of follow-up. That's why keyword research usually comes first: it makes sure the pages you're building links to are worth linking to.

Find out whether your store needs keywords or links first

We benchmark your store against your top three competitors on Google and AI answers, show which pages are ready to move and the fixes to prioritize.

Get my SEO priority plan →
FactorKeyword researchLink building
Main questionWhat should we rank for, and with which page?Why should Google trust this page over competitors?
FixesNo search demand, intent mismatch, cannibalizationNot enough authority to compete on contested queries
Who controls itYou: it's research and on-site changesOther site owners: you earn it, you can't force it
Typical costMostly time and a keyword toolOngoing outreach, content and PR effort
Speed to see impactWeeks, once pages are updated and recrawledUsually months, and harder to attribute
Biggest riskTargeting terms that don't convertSpammy links that break Google's policies

When to prioritize each: a decision table

Use Google Search Console to find your situation. Look at your most important collection and product pages, their impressions and their average position for the keywords you want, then find the matching row.

Your situationPrioritizeWhyFirst move
New store or new category, few pages indexedKeyword researchYou need the right pages before anyone has a reason to linkBuild a keyword map for every collection and top product
Pages get almost no impressionsKeyword researchThe page likely targets terms nobody searches or the wrong intentCheck demand and what type of page ranks for the term
Two of your pages swap places for one keywordKeyword researchCannibalization splits signals; links won't fix itPick one URL per keyword and consolidate
Pages rank in positions 8 to 20 for valuable termsBoth, links firstIntent matches, but competitors have more authorityCompare referring domains with the top three results
Long-tail and niche queries with weak competitionKeyword researchThese can rank with few or no backlinksPublish guides and FAQs that answer them directly
Competitive head terms (for example, "running shoes")Link buildingAhrefs says competitive terms are very hard to rank for without backlinksCreate a linkable asset and run outreach
Strong rankings, but few AI mentionsLink building and mentionsAI visibility correlates more with brand mentions than linksPursue reviews, roundups and press that name your brand

The pattern: keyword research is the default first step for nearly every store, and link building becomes the priority once your pages already deserve to rank and the only thing missing is authority.

How to combine them: a 6-month sequence

Most stores get the best return by running keyword research first, then layering link building on top of the pages that are already close. Here's a sequence that works for a typical Shopify brand.

  1. Month 1: research and map. Pull your queries from Search Console, research demand for every collection and top product, and assign one primary keyword per URL.
  2. Month 1 to 2: fix on-page targeting. Rewrite titles, H1s and collection intros to match the mapped keyword and intent. Merge or redirect pages that cannibalize each other.
  3. Month 2 to 3: fill content gaps. Publish the guides and comparisons your keyword research turned up, each linking to a collection. Use the internal link checker to make sure your money pages get links from your own site first.
  4. Month 3: find the near misses. In Search Console, list pages ranking in positions 8 to 20 for valuable terms. These are your link-building targets.
  5. Month 3 to 6: earn links to those pages. Start with unlinked brand mentions and supplier pages, then pitch gift guides and roundups. Check that anchor text stays natural with the anchor text analyzer.
  6. Every month: measure and repeat. Track position, clicks and organic revenue for the target pages. Re-run keyword research each quarter, because demand shifts with seasons and trends.

Google's SEO Starter Guide notes that some changes take effect in a few hours while others could take several months, so judge each phase over weeks, not days.

Ahrefs has published more data on links than anyone, and two findings are useful for prioritizing.

Pages with no backlinks rarely get much traffic

In its December 2023 search traffic study, Ahrefs found roughly 20 million pages in its index with no referring domains, and only 2,997 of them got more than 1,000 search visits a month. That's about 1 in every 6,671. Ahrefs is careful to note this is correlation, not causation, and that low-competition topics can get traffic with few or no links. But for anything competitive, links are part of the price of entry.

For AI answers, mentions beat raw link counts

For AI search, the picture is different. Ahrefs studied 75,000 brands in May 2025 to see which factors correlate with being mentioned in Google AI Overviews. Branded web mentions had the strongest correlation by far. Raw backlink count ranked well below it.

What correlates with brand visibility in AI OverviewsSpearman correlation across about 55,500 brands with at least one AI Overview mention; correlation is not causation
Branded web mentions0.7
Branded anchors0.5
Branded search volume0.4
Domain Rating0.3
Referring domains0.3
Branded traffic0.3
Number of backlinks0.2
URL Rating0.2
View the data
Value
Branded web mentions0.7
Branded anchors0.5
Branded search volume0.4
Domain Rating0.3
Referring domains0.3
Branded traffic0.3
Number of backlinks0.2
URL Rating0.2

Source: Ahrefs, AI Overview brand visibility factors (75K brands studied), May 2025

These are Spearman correlations, not proof of cause, and Ahrefs describes all of them as moderate to very weak. Still, the direction is clear: for AI answers, being talked about by name across the web appears to matter more than accumulating links. For a store, that means the best link-building tactics are the ones that also get your brand named: roundups, reviews, press and partnerships.

Get your brand named in AI answers, not just linked

Our free $100M AI Visibility Roadmap, built from 7,960 live pages and 197 A/B tests, covers getting cited by ChatGPT, Google AI Overviews and Perplexity.

Get the free roadmap →

How AI search changes keyword research too

AI assistants don't take keywords the way Google's search box does. Shoppers type full questions, and Ahrefs' long-tail keyword guide notes that over 95% of conversational long-tail queries have no measurable search volume in keyword tools. Keyword research still tells you the topics and the language people use, but you also need to cover the questions around them.

  • Answer the question in the first two sentences. AI Overviews and ChatGPT tend to quote direct answers.
  • Cover comparisons and "best for" questions. These are the prompts where AI tools recommend products.
  • Keep product facts consistent everywhere. Your site, marketplace listings and reviews should agree on specs, sizes and prices.
  • Check how AI tools see your pages. The AEO checker reviews a page for answer-engine readiness.

The practical result: keyword research now covers questions as well as keywords, and link building now covers mentions as well as links. The two jobs are closer together than they used to be.

  • Building links to the homepage only. Homepage links help the brand, but your collection pages are what rank for buying searches. Point outreach at the specific pages your keyword map says should rank.
  • Chasing volume over intent. A 40,000-search informational term can bring readers who never buy, while a 300-search "best X for Y" term brings shoppers ready to compare products. Rank keyword targets by likely revenue, not volume alone.
  • Treating keyword research as a one-off. New products, seasons and competitors change what people search. A keyword map from two years ago is probably pointing some terms at the wrong pages.
  • Using exact-match anchors everywhere. If every link to your boots collection says "waterproof hiking boots," it looks engineered. Natural anchors mix your brand name, page titles and plain URLs.
  • Judging links by count. One link from a respected publication in your category usually does more than dozens from unrelated directories. Relevance and the linking site's own quality matter more than the total.
  • Skipping internal links. Before you ask other sites to link to a page, make sure your own blog posts and menus do. It's the one kind of link you fully control.

Where to start this week

Open Search Console and sort your pages by impressions. If your most important collections barely appear, start with keyword research and fix your targeting. If they're showing on page two for the terms you want, list them and start earning links to those pages. Either way, map your keywords first so every link you earn points to a page that deserves it.

If you want help deciding which comes first for your store, talk to our team or see how we run SEO for e-commerce brands.

Want a clear answer on where to spend your SEO budget?

Book a free 30-minute call. We'll show you the pages closest to ranking, what's holding them back and the revenue math.

Get my custom plan →
FAQ

Questions & answers

Is keyword research or link building more important?
Keyword research usually comes first, because links can't help a page that targets a term nobody searches or the wrong intent. Link building becomes the priority once your pages match demand and intent but trail competitors in authority.
Can you rank without backlinks?
Yes, for low-competition and long-tail queries. Ahrefs notes these can get traffic with few or no backlinks, but competitive keywords are very hard to rank for without them.
How do I know if I need links?
Check Search Console. If a page gets impressions and sits in positions 8 to 20 for a keyword whose intent it matches, compare its referring domains with the top three results. A large gap usually means links are the missing piece.
Do backlinks help with ChatGPT and AI Overviews?
Indirectly. In Ahrefs' 2025 study of 75,000 brands, branded web mentions correlated more strongly with AI Overview visibility than backlink count. Tactics that get your brand named, such as roundups, reviews and press, help both.
How often should I redo keyword research?
Review it each quarter and before seasonal peaks. Demand, competitors and the way people phrase searches change over time.
Free custom plan

Find the revenue you're leaving on the table

A free 30-minute call where we build the first version of your plan with you. You leave with a plan either way.

  • Your score across Google, AI citations, branded demand, and reviews
  • The pages on your site that are ready to move right now
  • Your first Flagship page and the first three tests we'd run

Step 1 of 3

Get your free custom plan

Free. Takes about 30 seconds.