SEO case study
Concept, Astro build and SEO by Kent Buca. This site is a portfolio piece for a fictional Austin law firm. It shows how the SEO was planned and implemented. It makes no claim about rankings, traffic or leads.
Approach
The build follows the Compact Keywords method: reach people who know what they need but have not chosen a provider, give each need a focused page, and fix crawling and indexing before adding content.
- Audit the rendered pages, not just the source code.
- Manage canonical, share and structured data tags from one component.
- Assign one primary keyword to each practice page from one data file.
- Link related practice pages to each other, so none depends on the hub alone.
- Turn the rules into an automated check on the production build.
Before and after
| Area | Before | After |
|---|---|---|
| Canonical, share tags, structured data | Missing on content pages | On every indexable page |
| Sitemap, robots.txt, llms.txt, 404 page | Missing | All present |
| Practice page URLs | Generic, such as /dog-bite-injuries | Keyword URLs with 301 redirect rules |
| Practice page headlines | Mixed case ending in “LAWYERS” | One headline that matches the keyword |
| Team page headline | Read as only “OUR” | Describes the page, same visible design |
| Least-linked practice pages | 2 internal links in | 5 or more |
| Photos | Large JPEGs shared between pages | WebP, with one named hero per practice page |
Keyword map
Keywords come from the firm’s services and city. They have not yet been checked against search volume data or a manual review of search results.
| Primary keyword | Page |
|---|---|
| austin personal injury lawyer | Home |
| austin car accident lawyer | Austin Car Accident Lawyer |
| austin truck accident lawyer | Austin Truck Accident Lawyer |
| austin motorcycle accident lawyer | Austin Motorcycle Accident Lawyer |
| austin rideshare accident lawyer | Austin Rideshare Accident Lawyer |
| austin drunk driving accident lawyer | Austin Drunk Driving Accident Lawyer |
| austin pedestrian accident lawyer | Austin Pedestrian Accident Lawyer |
| austin catastrophic injury lawyer | Austin Catastrophic Injury Lawyer |
| austin wrongful death lawyer | Austin Wrongful Death Lawyer |
| austin construction accident lawyer | Austin Construction Accident Lawyer |
| austin slip and fall lawyer | Austin Slip and Fall Lawyer |
| austin dog bite lawyer | Austin Dog Bite Lawyer |
| austin hit and run accident lawyer | Austin Hit and Run Accident Lawyer |
Site structure
The main path is home, then the practice area hub, then a practice page. Each practice page also links to three related ones. The guides cite public sources and link back to the hub.
Structured data choices
- Practice pages describe the service and the questions visible on the page.
- Guides are marked up as blog posts, and breadcrumb data shows where pages sit.
- No review or rating markup, because the reviews on this site are samples.
- No street address or phone in structured data, because the law office is fictional.
Automated quality check
A script reads every built page and fails the run when it finds any of these:
- Broken internal links, missing images and missing alt text
- Missing or duplicate titles and descriptions, and descriptions outside 120–158 characters
- Anything other than one H1, or a canonical that does not match the URL
- Missing share tags, invalid structured data, and any rating or review markup
- Keyword placement in the URL, title, description, headline, first sentence and hero alt text
- Orphan pages, pages more than three clicks deep and sitemap gaps
On its first run, it caught links that still pointed to a removed page.
Page speed
Google PageSpeed Insights, homepage, single run on November 26, 2026. These are lab results with no real-user data, and scores vary between runs. View the report.
| Score or metric | Mobile | Desktop |
|---|---|---|
| Performance | 95 | 100 |
| Accessibility | 100 | 96 |
| Best practices | 96 | 100 |
| SEO | 100 | 100 |
To get there: converted and resized photos to WebP with phone-sized versions, replaced a 439 KB logo with a small WebP, stopped web fonts blocking the first paint, inlined styles, removed phone entrance delays and left unused files out of the deployment.
Not yet done or measured
- Keyword research with volume data and search results review.
- Rewriting the AI-drafted page introductions, titles and descriptions by hand.
- Expanding the shorter guides with first-hand writing.
- Search Console and Bing setup, a third-party crawl and share preview checks.
- On-page grader scores, real-user speed data and rank tracking.