# Sanity CMS + Demandbase

A template for adding firmographic personalization on a Sanity project.

By Croct. Categories: integration.

[Source](https://github.com/croct-tech/templates/blob/master/templates/croct/integration/sanity-demandbase/)

## Installation

```sh
npx croct@latest use croct://integration/sanity-demandbase
```

# Introduction

Looking to personalize your **Sanity-powered site for target accounts** using **Demandbase data**?

This template combines [Sanity.io](https://www.sanity.io/?utm_source=croct), [Next.js](https://nextjs.org/?utm_source=croct),
and Croct to adapt your content to an account's industry and company size in real time, using the firmographic data you
activate from [Demandbase](https://www.demandbase.com?utm_source=croct).

It's the fastest way to launch account-based personalization on Sanity Studio with no CMS migration.

> [!TIP Integration]
> Learn more about the Croct + Sanity integration by exploring the [integration page](https://croct.com/integrations/sanity).

Using Croct, you get:

* Firmographic personalization driven by Demandbase account data
* Real-time audience evaluation with no extra integration work
* Built-in analytics and Bayesian analysis for every experience
* Seamless compatibility with your existing Sanity schemas

> [!NOTE Forever-free]
> This template is compatible with features available on the forever-free plan.

## Prerequisites

To feed firmographic data into the audience, complete the
[Demandbase data activation](https://docs.croct.com/immersion/integrations/firmographics/demandbase) first. Until data flows
in, visitors keep seeing the default content.

## What's included

Besides the [Sanity integration](http://croct.com/templates/integration/cms/sanity) itself, this template creates a
personalized experience targeting **mid-market financial services** accounts, using the firmographic attributes ingested
from Demandbase:

```cql
user's industry is "Financial Services"
and user's employees is "Mid-market"
```

As an example, the home hero content adapts to that audience:

* **Default heading:** _Croct + Sanity + Next.js_
* **Personalized heading:** _Built for mid-market finance_

## Usage

Run the following command in an empty directory to create a new example project using this template:

```croct-cmd
croct use croct://integration/sanity-demandbase
```
