---
title: "Event Schema"
description: "Add Event structured data to your Sanity documents. Power rich results for conferences, meetups, concerts, and workshops with schema.org markup."
canonical: https://sanity-plugin-seofields.thehardik.in/docs/schema-org/event
---

# Event Schema

Add Event structured data to your Sanity documents to power rich results for conferences, meetups, concerts, and workshops.

## About Event Schema

Event schema powers rich results for conferences, meetups, concerts, and workshops. When properly implemented, Google can display event details directly in search results, including dates, locations, and ticket information, driving more qualified traffic to your event pages.

## Fields

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | Yes | The name of the event. |
| `startDate` | datetime | No | The start date and time of the event in ISO 8601 format. |
| `sponsor` | string \| object | No | The person or organization that sponsors the event — a URL string or a Person/Organization object. |
| `location.name` | string | No | The name of the venue or location where the event takes place. |
| `location.address` | string | No | The street address of the event location. |

## Plugin Registration

```typescript
import { defineConfig } from "sanity";
import { seoFields } from "sanity-plugin-seofields";
import { schemaOrgEventPlugin } from "sanity-plugin-seofields/schema";

export default defineConfig({
  // ...your sanity config
  plugins: [
    seoFields(),
    schemaOrgEventPlugin(),
  ],
});
```

## Schema Usage

Add the `schemaOrgEvent` field to any document schema:

```typescript
import { defineField, defineType } from 'sanity'

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

## GROQ Query

```javascript
*[_type == "yourDocument"][0]{
  schemaOrgEvent {
    name,
    startDate,
    sponsor,
    location {
      name,
      address
    }
  }
}
```

## Next.js Component

```tsx
import { EventSchema } from "sanity-plugin-seofields/schema/next";

export default function Page({ data }) {
  return (
    <>
      <EventSchema data={data.schemaOrgEvent} />
      {/* Your page content */}
    </>
  );
}
```

## JSON-LD Output

```json
{
  "@context": "https://schema.org",
  "@type": "Event",
  "name": "Tech Conference 2025",
  "startDate": "2025-06-15T09:00:00",
  "sponsor": {
    "@type": "Organization",
    "name": "Acme Corp"
  },
  "location": {
    "@type": "Place",
    "name": "Convention Center",
    "address": "123 Main St, San Francisco, CA"
  }
}
```
