Skip to main content
seofields
docs

Brand

Add Brand structured data to your Sanity-powered site. Help search engines identify and link brand entities to your products.

About Brand

Brand schema helps search engines identify brand entities and link them to products. Structured brand data improves how your brand appears in knowledge panels and product listings, strengthening your brand presence across search results.

Fields

FieldTypeRequiredDescription
namestringThe name of the brand.

Plugin Registration

sanity.config.ts
import { defineConfig } from "sanity";
import { schemaOrgBrandPlugin } from "sanity-plugin-seofields/schema";

export default defineConfig({
  // ... your project config
  plugins: [
    schemaOrgBrandPlugin(),
  ],
});

Schema Usage

Add theschemaOrgBrand field to any document schema:

schemas/page.ts
import { defineField, defineType } from 'sanity'

export default defineType({
  name: 'page',
  title: 'Page',
  type: 'document',
  fields: [
    // ... your other fields
    defineField({
      name: 'schemaOrgBrand',
      title: 'Brand Schema',
      type: 'schemaOrgBrand',
    }),
  ],
})

GROQ Query

GROQ query
const query = groq`*[_type == "brand"][0]{
  "brand": schemaOrgBrand {
    name
  }
}`;

Next.js Component

app/layout.tsx
import { BrandSchema } from "sanity-plugin-seofields/react";

export default function Layout({ children }: { children: React.ReactNode }) {
  // Fetch your brand data from Sanity
  const brand = await sanityClient.fetch(query);

  return (
    <html lang="en">
      <body>
        <BrandSchema data={brand.brand} />
        {children}
      </body>
    </html>
  );
}

JSON-LD Output

Generated JSON-LD
{
  "@context": "https://schema.org",
  "@type": "Brand",
  "name": "Acme Corp"
}

Was this page helpful?