# What GEO means for your codebase

> GEO for developers: technical signals that determine AI search citations - crawler access, entity resolution, server-rendered metadata, and passage structure.

Source: https://seocode.io/geo-guide

The technical signals that decide whether AI search engines cite your content, and why they belong in code review.

## What GEO is

GEO (Generative Engine Optimization) covers the technical signals that decide whether ChatGPT, Perplexity, Google AI and Claude cite you.

Most of the gaps are in code. A `robots.txt` rule that blocks GPTBot. A React component that sets the page title inside a `useEffect`. A JSON-LD entity with no `@id`. You fix them in code.

Traditional SEO focused on keywords and links. AI search engines add more: the crawler needs access, the parser needs clean structure, and the knowledge graph needs entities it can anchor. If any of these fails, the content is left out of answers entirely.

GEO means making sure those conditions hold. Because the signals live in code, the best time to check them is before the code ships.

## The four signal categories

Every GEO gap falls into one of four categories. Each tells you where to look.

### Crawler access

If GPTBot, PerplexityBot, ClaudeBot or Google-Extended is blocked in `robots.txt`, that company's crawler can't read the page, which cuts your chances of being cited.

### Entity resolution

Organization and Person entities in JSON-LD need an `@id` and `sameAs` links (Wikidata, LinkedIn) so AI engines can connect them across sources.

### Crawler-visible metadata

Crawlers that skip JavaScript never see metadata set in `useEffect`. `title`, `description`, `og:image` and `canonical` must be in the server-rendered HTML.

### Passage structure

AI engines cite content in chunks split at headings. Wrap sections in `article` or `section`, and answer directly in the first sentence after each heading.

### Crawler access in detail

The major AI search crawlers each have a named user agent. If any of these appears in a `Disallow` rule in `robots.txt`, that company's crawler can't read the site.

```
# blocks OpenAI's training crawler
User-agent: GPTBot
Disallow: /

# blocks Anthropic's crawler
User-agent: ClaudeBot
Disallow: /

# blocks Perplexity's crawler
User-agent: PerplexityBot
Disallow: /

# blocks Gemini (AI Overviews use Googlebot)
User-agent: Google-Extended
Disallow: /
```

This happens a lot. It usually comes from a `robots.txt` copied from a template, or a "block all bots" rule added years before these crawlers existed.

### Entity resolution in detail

An Organization entity with no `@id` can't be linked across sources. The engine sees a name but can't confirm it's the same one as on Wikidata or LinkedIn. Add an `@id` using the canonical URL of the entity, and add `sameAs` links to known authority sources.

```
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Acme Corp",
  "url": "https://acme.example"
  /* no @id, no sameAs: engine cannot resolve this entity */
}
```

```
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://acme.example/#organization",
  "name": "Acme Corp",
  "url": "https://acme.example",
  "sameAs": [
    "https://www.wikidata.org/wiki/Q12345",
    "https://www.linkedin.com/company/acme-corp",
    "https://www.crunchbase.com/organization/acme-corp"
  ]
}
```

### Crawler-visible metadata in detail

A React app that sets the document title like this:

```
useEffect(() => {
  document.title = 'How to configure Acme Corp | Acme Docs';
}, []);
```

The crawled HTML has whatever `title` the server template sets, which is often a generic fallback or nothing at all. The same applies to `meta name="description"`, `og:image`, and `link rel="canonical"`. Set them server-side, in a framework's `head` mechanism, or via a static site generator.

### Passage structure in detail

AI engines cite passages that answer a question cleanly. Two habits help:

- **BLUF (Bottom Line Up Front).** The first sentence after a heading should state the answer directly. "Server components run on the server and return HTML." Not "In this section we will explain how server components work."
- **Semantic wrapping.** Wrap each major content section in an `article`, `section`, or `aside` element. This gives the chunker a reliable boundary to split on.

If a heading ends up at the end of one chunk, the next chunk starts mid-thought. The model then skips it or paraphrases it wrongly.

## Why these are code problems

Each of these issues comes from a code change, with no content edit involved.

- Someone adds a `User-agent: * / Disallow: /` block to `robots.txt` while setting up a staging environment and forgets to remove it before deploying to production.
- A developer migrates the site from a server-rendered framework to a client-side SPA and moves all `head` tags into a `useEffect`.
- A backend engineer refactors the JSON-LD generation script and removes the `@id` field because it was not used in any template.
- A design system update removes `article` and `section` wrappers in favor of generic `div`s.

None of these show up in a content audit, because it checks what is written. The crawler sees something else.

They show up in pull requests. The `robots.txt` edit, the removed `@id` and the `useEffect` that replaced a server-side title are each one or two lines in a diff.

That's the place to catch them, before the change goes live and while the fix is small.

## What SEOCode catches

SEOCode checks every pull request touching HTML, `robots.txt`, JSON-LD or sitemaps against the GEO rules, with the exact fix.

The GEO rules we enforce:

### geo/robots-blocks-ai-crawlers

Detects Disallow rules that block GPTBot, PerplexityBot, ClaudeBot, or Google-Extended.

### geo/jsonld-missing-id

Flags Organization and Person entities in JSON-LD that are missing the @id field.

### geo/jsonld-missing-sameas

Flags Organization entities that have no sameAs links to authority sources.

### geo/client-side-title

Detects document.title assignments inside React lifecycle hooks and event handlers.

### geo/client-side-meta

Detects meta tag DOM manipulation (description, og:image, canonical) done client-side.

### geo/missing-canonical

Flags pages with no canonical link in the server-rendered head.

### geo/no-semantic-section-wrapper

Flags h2/h3 headings that are not inside an article, section, or aside element.

### geo/no-bluf-paragraph

Detects headings followed by a lead-in sentence instead of a direct answer.

These rules run on every pull request, automatically. The full rule reference is in the [docs](https://seocode.io/docs).

## Catch GEO issues before they ship

Install SEOCode on GitHub and every pull request gets a GEO review. It's free on public repos.

- [Install SEOCode →](https://github.com/apps/seocode-pr-check/installations/new)

- [Read the docs](https://seocode.io/docs)

Not ready to install? [Get the monthly rundown](https://seocode.io/subscribe) of what changed in SEO, Search and AI instead.
