# Campaign-based personalization

Deliver consistent messaging that reflects your ad's content.

When you run paid campaigns on channels like Instagram or Facebook, you already segment users by audience, intent, or message. Campaign-based personalization extends this strategy to your application, ensuring that users see content that matches the ad they clicked.

By personalizing content based on campaign data, you can deliver consistent, targeted messaging that reflects the offers users first saw, improving engagement and conversions without creating multiple landing pages.

![Marketing campaign](/assets/immersion/playbooks/campaign.png)

## Prerequisites

Before you start, make sure you have:

- A [Croct account](https://app.croct.com/signup) with a workspace and application set up.
- Integrated a [slot](/immersion/tutorials/get-started/content-management) into your project.

If you have not done any of these, follow the instructions on the provided links and come back here once the setup is done.

> **Use a template**
>
> You can use the CLI to run a template instead of manually configuring this on the interface. Croct provides one for [SaaS](https://croct.com/templates/use-case/saas/marketing-campaign) and another for [e-commerce](https://croct.com/templates/use-case/e-commerce/marketing-campaign) websites.

## Step by step

Follow this to configure your experience:

1. **Create an experience**

   Open the [experiences page](https://app.croct.com/redirect/organizations/-organization-/workspaces/-workspace-/experiences) in the admin app and click **New experience** to create an experience.

2. **Define an audience**

   In the **Audience** tab, click **New audience** and define a criteria.

   You can identify the campaign using information from the [UTM parameters](https://en.wikipedia.org/wiki/UTM_parameters):

   ```cql
   campaign's source is "meta"
   and campaign's name matches "something"
   ```

   Besides the current campaign, you can also include past campaign engagement to reach returning visitors:

   ```diff
   campaign's source is "meta"
   and campaign's name matches "something"
   +or user has viewed campaign with name like "something" in the last week
   ```

3. **Select the slot**

   Click the **Slot** tab and select the ones you want to personalize.

   You can select multiple slots across the website to maintain consistent communication. Some popular choices are the hero section, product cards, and subscription plan cards.

4. **Define the personalized content**

   Click the **Content** tab to specify which content should be shown to those users in the selected slots.

5. **Preview and publish**

   Publish your experience or click **Preview** to see the magic happen.

## Explore

- [Audiences](/explanation/audience/popular-audiences): Learn how to create audiences based on the user's attributes.
- [Experiences](/explanation/experience/introduction): Discover what an experience is and how it works.
