gjin@prishtina/writing

How a 10-coach marketplace ranked #3 on Google with Next.js

RiteCoach ranked #3 for soccer coaches in New Jersey with only 10 coaches listed. Location pages, tag-based ISR, and never letting Google index an error.

RiteCoach connects families with private youth sports coaches. When it reached #3 on Google for soccer coaches in New Jersey, it had 10 coaches listed. A marketplace that small has no business ranking, so this is what did the work, in the order it mattered.

Parents don’t search for “coaching marketplace”. They search for a sport and a place: soccer coaches in Newark, in Essex County, in New Jersey. So every sport gets a page at each level: the state, each county, each city.

The rule that keeps this from becoming spam: only populated places get a page or a link. The site asks the API for the distinct sport, county and city combinations that have at least one coach, and every location page links only to those. The sitemap is built from the same list. A city with no coaches doesn’t exist yet as far as Google is concerned.

2. Fast, server-rendered pages that are never stale for long

Every location page is server-rendered and cached. Each fetch carries two things: a one-hour revalidation time as a floor, and a cache tag.

// One tag, for this page's own scope.
const tag = ["coaches", sport, state, county, city].filter(Boolean).join(":");
const res = await fetch(url, { next: { revalidate: 3600, tags: [tag] } });

When a coach changes anything, the backend calls a revalidation route, and only the pages that show that coach are rebuilt on their next request. Nobody waits for a full rebuild, and search engines always get a fast, complete HTML page.

That, plus code splitting and image work, took page loads from about 7 seconds to under 1.5, and PageSpeed from 55 to 100.

3. The tag mistake that refreshed 540 pages

The first version tagged each city page with its own tag and the state tag, so a state-wide change would reach it. It worked, and it was wrong: any edit by any soccer coach in New Jersey invalidated all 540 soccer city pages, not the one page the coach was on.

The fix was to flip who knows about the hierarchy. Each page carries exactly one tag, its own scope. The backend emits the whole chain when a coach changes: the sport hub, the state, the county, the city. A coach in Newark refreshes the Newark, Essex County, New Jersey and soccer pages, and nothing else.

Keep consumers narrow and let the emitter fan out. It’s the same idea as publishing an event once instead of making every subscriber listen to everything.

4. Never let the cache save an error

This one is easy to miss. A failed request for coaches and a place that genuinely has no coaches both come back as an empty list. If the page renders that empty list, the cache keeps “No coaches here” for an hour, and Google indexes it.

So a failed fetch throws. Next.js then skips caching, tries again on the next request, and shows the error page instead. Page metadata still degrades gracefully without a count, because a missing number shouldn’t take the page down.

5. Profiles before sign-ups

The last piece wasn’t technical. The team can create a coach’s profile first, and the coach claims it later. That’s how the location pages had real coaches on them before most coaches had signed up, and pages with real content are the ones that rank.

What I’d tell someone starting the same thing

All notes