Free auditStart free
GuideContentful · Headless CMS

Contentful SEO

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 withChatGPTClaudePerplexityGoogleAI Mode
01A 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
Field

Canonical path

Editor rule
Restrict to a same-site path or derive from the page slug
Frontend use
Build an absolute 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; 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.
02How 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 },
  }
}
  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 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.

03How 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, its metadata fields implementation example, JavaScript SEO basics, and the XML sitemap guide.

Questions

Asked a lot.

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

01Does 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.

02Which 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.

03Can 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. 01Data model | Contentful Documentationcontentful.com · checked 2026-10-11
  2. 02Experience reference fields for metadata | Contentful Documentationcontentful.com · checked 2026-10-11
  3. 03JavaScript SEO basics | Google Search Centraldevelopers.google.com · checked 2026-10-24
  4. 04Build and submit a sitemap | Google Search Centraldevelopers.google.com · checked 2026-10-24
  5. 05generateMetadata | Next.js Docsnextjs.org · checked 2026-10-24
Free · 2 minutes

Tools point. Agencies advise. This one ships.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane