Category SEO
SEO fields for category pages.
Updated
On this page
Overview
Categories include SEO fields for building meta tags on category pages.
SEO Fields on Categories
import dash from "@/lib/dash"
const { category } = await dash.categories.get("flower")
// SEO fields included in category response:
console.log(category.seo_title) // "Shop Flower | My Store"
console.log(category.seo_description) // "Browse our flower collection..."
console.log(category.seo_keywords) // "flower, cannabis, shop"
console.log(category.og_image) // "https://..."
console.log(category.schema_json) // JSON-LD string
Next.js Metadata
// app/category/[slug]/page.tsx
export async function generateMetadata({ params }) {
const { category } = await dash.categories.get(params.slug)
return {
title: category.seo_title || category.name,
description: category.seo_description || category.description,
openGraph: {
images: category.og_image ? [category.og_image] : [],
},
}
}
Next Steps
- Product SEO — Product meta tags
- Sitemap — Generating sitemaps
- Category Products — Category page data