# Contentful SEO

> Build a Contentful SEO workflow that connects structured metadata fields to rendered pages, localized routes, canonicals, and sitemaps.

Canonical: https://scaplet.com/seo/contentful

Guide Contentful Contentful · Headless CMS

Build a Contentful SEO workflow that connects structured metadata fields to rendered pages, localized routes, canonicals, and sitemaps.

4 min

read

5

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

Contentful stores content; your frontend determines whether search engines receive complete page HTML and metadata. Model page title, description, canonical path, social image, and indexability as validated content fields, then map them into the frontend's server or build-time output. Test the rendered production page, locale variants, and sitemap together; Contentful fields alone do not publish search-ready pages.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fcontentful%20(%22Contentful%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fcontentful%20(%22Contentful%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fcontentful%20(%22Contentful%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fcontentful%20(%22Contentful%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 3 parts, 4 minutes.

1. [Model fields the publishing frontend needs 01](#model-fields-the-publishing-frontend-needs)
2. [Render metadata in the actual page response 02](#render-metadata-in-the-actual-page-response)
3. [Connect content, routes, and indexing checks 03](#connect-content-routes-and-indexing-checks)

_01_A practical page metadata model

## Model fields the publishing frontend needs

A Contentful content type defines fields and validation for entries. Create a reusable SEO metadata component or field group instead of asking editors to invent field names on each page type. Contentful's Experiences guidance on metadata fields uses custom fields such as `metaTitle` and `metaDescription`; treat those names as a convention, not a requirement. The exact implementation depends on the frontend.

Field

### SEO title

Editor rule

Optional override with a title fallback

Frontend use

Render one meaningful `<title>` per canonical page

Field

### SEO description

Editor rule

Optional, concise summary of the actual page

Frontend use

Render a page-specific [meta description](/glossary/meta-description)

Field

### Canonical path

Editor rule

Restrict to a same-site path or derive from the page [slug](/glossary/url-slug)

Frontend use

Build an absolute [canonical URL](/glossary/canonical-url) from the production origin

Field

### Social image

Editor rule

Reference a published asset with useful alt context

Frontend use

Use for social metadata; do not treat it as visible page content

Field

### Index policy

Editor rule

Default public content to [indexable](/glossary/indexability); require a reason for exclusion

Frontend use

Emit `noindex` only for intended non-search pages

Field

### Locale and slug

Editor rule

Require translated slugs and equivalent content per locale

Frontend use

Generate stable language paths and reciprocal `hreflang` where appropriate

- Add validation and help text so editors know when a field is required and what belongs in it.
- Use a page-type fallback when an optional SEO title is empty, but avoid assigning the same hard-coded title to every entry.
- Keep editorial-only fields out of public API responses when they are not needed by the frontend.
- Treat `noindex` and canonical as separate decisions: a canonical consolidates duplicate or alternate URLs; `noindex` excludes a page from [search indexing](/glossary/indexing).

_02_How it works

## Render metadata in the actual page response

Next.js App Router mapping example (Next.js 15+)

```
export async function generateMetadata({ params, }: { params: Promise<{ slug: string }> }) { const { slug } = await params const page = await getContentfulPage(slug) return { title: page.seoTitle || page.title, description: page.seoDescription || page.summary, alternates: { canonical: page.canonicalUrl }, } }
```

**The CMS does not determine crawlability**Search engines see the URL your frontend serves. Check the page response, rendering mode, robots rules, authentication, and canonical output after publishing a Contentful entry.

1. 01

### Fetch metadata with the page entry

Query the metadata fields alongside the page content in the same build or server request. Handle unpublished entries and missing optional values explicitly.
2. 02

### Render it before the page is delivered

Use the frontend's [server rendering](/glossary/server-side-rendering) or build output to put title, description, canonical, language, and robots directives into the HTML head. Client-only updates may leave the initial HTML without the intended metadata.
3. 03

### Build canonical URLs from trusted config

Combine a normalized production origin with a validated route path. Do not let preview hostnames, editor URLs, or arbitrary external input become canonical URLs. In Next.js, `alternates.canonical` can be a relative path that is composed with `metadataBase` into a fully qualified URL.
4. 04

### Publish structured data only from page facts

If the page needs schema, render it from the same current product or article data visitors can see. Test the output and avoid duplicating schema emitted by another component.

_03_How it works

## Connect content, routes, and indexing checks

1. 1

### Preview an entry and its rendered page

Compare editor values with the public HTML head and visible page. Catch fallback, escaping, and draft-preview mistakes before publishing.
2. 2

### Test each page template

Check at least one article, product, category, and localized route if your model uses separate templates.
3. 3

### Check Search Console after release

Use URL Inspection for important pages and review sitemap processing. Diagnose crawl access and canonical selection before adding more metadata fields.

- Generate sitemap entries from published, public canonical routes. Exclude drafts, preview routes, private content, and records with no deployed page.
- When an entry is unpublished or its slug changes, ensure the old URL redirects or returns the intended status; do not leave a sitemap pointing to a 404.
- For translated pages, verify that each locale has a real equivalent and that links point to the correct localized slug rather than a default-language fallback.
- Inspect the generated HTML or first server response for title, description, canonical, robots, structured data, and visible main content.
- Sample new and updated content in Search Console. A valid page and sitemap help crawling but do not guarantee indexing.

See Contentful's [data model documentation](https://www.contentful.com/developers/docs/concepts/data-model/), its [metadata fields implementation example](https://www.contentful.com/developers/docs/experiences/experience-reference-fields/), [JavaScript SEO basics](/glossary/javascript-seo), and the [XML sitemap guide](/glossary/xml-sitemap).

Questions

## Asked a lot.

3 questions people ask next, answered from the sources on this page.

_01_ Does Contentful handle SEO automatically?

Contentful stores and serves structured content, but your frontend controls the rendered URL, HTML metadata, crawl access, and sitemap. Build the fields and frontend mapping together, then test the published response.

_02_ Which SEO fields should I add to a Contentful page model?

Start with title and description overrides, canonical path, social image, locale and slug, and an intentional indexability control. Add fields only when the publishing frontend has a clear use for them.

_03_ Can search engines read Contentful pages rendered with JavaScript?

Google can render JavaScript, but rendering has limitations and delays. Prefer delivering important metadata and main content in server-rendered or build-time HTML, then verify the rendered page.

Sources · 5

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- contentful.com
- google.com
- nextjs.org

1. 01 [Data model | Contentful Documentation](https://www.contentful.com/developers/docs/concepts/data-model/) contentful.com · checked 2026-10-11
2. 02 [Experience reference fields for metadata | Contentful Documentation](https://www.contentful.com/developers/docs/experiences/experience-reference-fields/) contentful.com · checked 2026-10-11
3. 03 [JavaScript SEO basics | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) developers.google.com · checked 2026-10-24
4. 04 [Build and submit a sitemap | Google Search Central](https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap) developers.google.com · checked 2026-10-24
5. 05 [generateMetadata | Next.js Docs](https://nextjs.org/docs/app/api-reference/functions/generate-metadata) nextjs.org · checked 2026-10-24

## Keep learning

[All platform guides](/seo)

[Learn Sanity SEO Headless CMS](/seo/sanity) [Related Canonical URL Crawling and indexing](/glossary/canonical-url) [Read next Sanity XML sitemap Headless CMS](/seo/sanity/xml-sitemap) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in platform guides
[Cloudflare: block AI bots](/seo/cloudflare/ai-crawlers) [Cloudflare 301 redirects](/seo/cloudflare/redirects) [Django custom 404 page](/seo/django/404) [Docusaurus AI crawlers and robots.txt](/seo/docusaurus/ai-crawlers)

More in Headless CMS
[Contentful SEO](/seo/contentful) [Sanity SEO](/seo/sanity)

Terms on this page
[Meta description](/glossary/meta-description) [URL slug](/glossary/url-slug) [Canonical URL](/glossary/canonical-url) [Indexability](/glossary/indexability) [Indexing](/glossary/indexing) [Server-side rendering](/glossary/server-side-rendering) [JavaScript SEO](/glossary/javascript-seo) [XML sitemap](/glossary/xml-sitemap)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
