Skip to main content

Next Sanity Starter

SEO and consent

Every page has its own title, description and social image in each language. Where a field stays empty, the site uses the defaults from Settings.

What search engines get

The sitemap lists every page in every language. Each page names its canonical address and its versions in the other languages.

Only the production site may be crawled. Previews and branch deploys tell search engines to stay away, so a test version never shows up in search results.

Cookie banner

Editors set up the banner and its texts in the Studio, per language. They pick the analytics tools there too: Google Analytics, Matomo, Microsoft Clarity, PostHog or Plausible.

With the banner on, editors decide whether trackers wait for consent. On this site they do. The “Cookie settings” link in the footer opens the banner again. It is a link function in the Studio, so editors can put it into any menu or text.

Security headers

The site sends a content security policy with every response. It already allows the cloud versions of Google Analytics, Clarity, PostHog and Plausible. A self-hosted Matomo, PostHog or Plausible goes into CSP_ANALYTICS_ORIGINS, followed by a redeploy. Only the Studio and the Sanity dashboard may show the site in a frame, which is what Presentation needs.