RightMessage
Sanity logo
Site compatibilityContent Management System

Add personalization to Sanity without code.

Sanity provides real-time content APIs with incredible flexibility. RightMessage adds personalization to your frontend that consumes Sanity content. Whether you build with Next.js, Nuxt, or any framework, RightMessage personalizes the rendered pages based on visitor segments from your email platform.

Start here

Add RightMessage to your existing Sanity setup.

Keep Sanity in place and use RightMessage to personalize its existing pages for each visitor.

Using RightMessage with Sanity.

Smart opt-in forms that adapt to context

Show different lead magnets based on what visitors are reading on your Sanity site. Hide opt-in forms from existing subscribers and show upgrade paths instead.

Increase conversion rates with contextually relevant offers.

Dynamic headlines, CTAs, and content

Personalize any text on your Sanity site based on visitor segments, traffic source, or behavior. Show relevant testimonials, case studies, and social proof.

No code required. Just add CSS classes to elements you want to personalize.

Collect zero-party data with quizzes and surveys

Embed quiz funnels and surveys on your Sanity site to learn about your visitors. Use their answers to personalize content and sync data to your email platform.

Build rich visitor profiles based on explicitly shared preferences.

Setup tips for RightMessage on Sanity.

  • Add the RightMessage script to your frontend application that renders Sanity content
  • If using a SPA framework, call RightMessage.reset() on route changes to re-apply personalizations
  • Connect RightMessage to your email platform for subscriber-based personalization
  • Personalize content overlays without changing your Sanity schema or content
  • Use quizzes to segment anonymous visitors before they subscribe

Frequently asked questions.

How does RightMessage work with Sanity?+

Sanity is a headless CMS that delivers content via GROQ queries. RightMessage adds personalization to your frontend application. Your Sanity content stays unchanged while RightMessage personalizes how it appears to different visitors.

Does RightMessage change my Sanity content?+

No. RightMessage works client-side on your frontend. It can show, hide, or modify rendered content based on visitor segments, but your source content in Sanity stays the same.

How do I handle SPA navigation with RightMessage?+

Most Sanity sites use frameworks like Next.js or Nuxt. Call RightMessage.reset() on route changes to re-apply personalizations after client-side navigation. Check our SPA guide for implementation details.

Can I use Sanity to manage personalization variants?+

You can store different content versions in Sanity and use RightMessage to choose which to show. Or use RightMessage's visual editor to create personalizations without touching Sanity at all.

Does personalization work with Sanity's real-time preview?+

Yes. RightMessage runs on any frontend where the script is loaded. Preview your personalizations in Sanity's preview environment before publishing.

How do I add RightMessage to my Sanity site?+

Add a small JavaScript snippet to your Sanity site, similar to adding Google Analytics. In most cases, this means pasting the code in your Sanity site settings or header section. Installation typically takes 5 minutes or less.

Can I personalize without writing code on Sanity?+

Yes. RightMessage works with Sanity's visual editor. Just add CSS classes to elements you want to personalize, then configure the rules in RightMessage's visual interface. No coding required.

Will RightMessage slow down my Sanity site?+

No. The RightMessage script loads asynchronously and doesn't block page rendering. Personalizations are applied after the initial page load. The script is served from a global CDN and is highly optimized. Your Core Web Vitals and page speed scores remain unaffected.

What elements can I personalize on Sanity?+

You can personalize any text, images, or content sections on your Sanity site. Common personalizations include headlines, CTAs, testimonials, case studies, pricing displays, and entire page sections. You can also show/hide elements and redirect visitors based on segments.

Does RightMessage work with Sanity's built-in forms?+

RightMessage provides its own widgets (popups, slide-ins, inline forms, sticky bars) that you can embed on your Sanity site. You can also personalize Sanity's native forms by showing/hiding them based on visitor segments or personalizing the surrounding content.

Need detailed setup instructions? Read our Sanity setup guide →
Ready to launch?

Start personalizing your Sanity experience.

Keep Sanity in place and add personalized copy, proof, forms, and offers without rebuilding your site.