GA Analytics
docs
Plugin

Search Console Plugin

searchConsolePlugin adds a full Google Search Console dashboard to Sanity Studio — so your team can monitor search performance right where they manage content.

Why this plugin?

Content teams shouldn't need to switch to Google Search Console to check how a page ranks or which queries drive traffic. This plugin surfaces search performance data — clicks, impressions, CTR, position — directly inside the Studio, helping editors optimise content for SEO.

Features

Search Performance

Query Analytics

Top search queries with clicks, impressions, CTR, and average position.

Performance Trends

Daily time-series charts for clicks and impressions over your date range.

Page Performance

Top pages ranked by clicks with full impression and CTR breakdowns.

Audience Insights

Country Breakdown

See which countries drive your search traffic — clicks, impressions, and position.

Device Distribution

Desktop, mobile, and tablet splits with performance metrics per device.

Search Appearance

Rich results, AMP, video — how your pages appear in search results.

Platform

8 Parallel Queries

All Search Console data fetched at once via Promise.allSettled() — fast first load.

Smart Caching

5-min public cache + 1-hour in-memory token cache.

Sitemap Management

View, submit, and re-submit sitemaps directly from the dashboard.

Service Auth

JWT-based GCP service account — same credentials as the GA plugin.

Full TypeScript

Exported types for all Search Console data structures.

Dashboard Tabs

Seven sections, all loaded in a single API call.

01
Overview

Clicks, impressions, CTR, average position — key metrics with daily time-series area charts and summary cards.

02
Queries

Top 20 search queries driving traffic — ranked by clicks with impressions, CTR, and average position columns.

03
Pages

Top 20 pages by clicks from search — see which content performs best in Google Search.

04
Countries

Geographic breakdown — top 20 countries by clicks with impressions, CTR, and position data.

05
Devices

Desktop, mobile, and tablet split — donut chart with per-device clicks, impressions, and CTR metrics.

06
Appearance

Search appearance types — rich results, AMP, video, and other special result formats with performance data.

07
Sitemaps

View all submitted sitemaps, check their status, submit new sitemaps, or re-submit existing ones.

Quick Example

sanity.config.ts
import { defineConfig } from 'sanity'
import { searchConsolePlugin } from 'sanity-plugin-ga-dashboard'

export default defineConfig({
  name: 'my-project',
  title: 'My Project',
  projectId: 'your-project-id',
  dataset: 'production',
  plugins: [
    searchConsolePlugin(),  // Search Console dashboard is now live
  ],
  schema: { types: [/* your schemas */] },
})

Use Alongside GA4 Plugin

Both plugins can run side-by-side — each gets its own tool in the Sanity toolbar:

sanity.config.ts
import { defineConfig } from 'sanity'
import {
  googleAnalyticsPlugin,
  searchConsolePlugin,
} from 'sanity-plugin-ga-dashboard'

export default defineConfig({
  // ...
  plugins: [
    googleAnalyticsPlugin(),   // GA4 dashboard
    searchConsolePlugin(),     // Search Console dashboard
  ],
})