# Set up an abandoned browse campaign in Braze
> Learn how to create and configure an abandoned browse email campaign in Braze using product view data synced from Census. Set up triggers, templates, and test your campaign to re-engage users who viewed products but didn't purchase.
> Source: https://docs.snowplow.io/tutorials/abandoned-browse-ccdp/braze-campaign/
> Documentation index: https://docs.snowplow.io/llms.txt

This guide will walk you through setting up and testing an abandoned browse campaign in Braze using the product view data synced from Census.

## Setting up the campaign

1. Log into your Braze dashboard
2. Navigate to **Campaigns** and click **Create campaign**
3. Select **Email** as the channel
4. Name your campaign (e.g. "Abandoned browse - product reminder")

![Braze Campaigns page with the \&quot;Create campaign\&quot; dropdown open, showing channel options: Multichannel, Email (highlighted), Push notification, In-app message, and Webhook](/assets/images/retl-braze-create-campaign-b03594aa1c9aa2f02db4bdecb1243c07.png)

## Configure campaign trigger

1. In the **Delivery** section, select **Action-Based**
2. Set up the trigger criteria

## Create email template

![Braze campaign builder preview for \&quot;Message to Abandoned Browse\&quot; showing the personalized email for user trent@snowplowanalytics.com with the message \&quot;Hey Trent we saw you were interested in Air Force 1 Shadow\&quot;](/assets/images/retl-braze-preview-8b56ef2f1fd9bb457740995c290770a8.png)

1. Click **Edit Campaign** in the campaign builder and click **Edit Email Body**

2. Design your email using Braze's visual editor:

   ```html
   Subject: Don't miss out on {{custom_attribute.${product}}}!

   Hey {{${first_name}}} we saw you were interested in {{custom_attribute.${PRODUCT}}}

   <a href="{{custom_attribute.${product_url}}}?abandonedEmail=true">
     You spent {{custom_attribute.${TIME_ENGAGED_IN_S}}} seconds checking it out.... Why not check it out once more before it sells out?!!
   </a>
   ```

3. Add personalization:

   - product name using `{{custom_attribute.${product}}}`
   - product URL using `{{custom_attribute.${product_url}}}`
   - add dynamic product images if available

> **Tip:*** The `abandonedEmail=true` parameter in the URL helps track when users click through from abandoned browse emails
>
> * You can use this parameter to:
>
>   - track email campaign success
>   - remove users from the campaign audience once they've engaged. See image below for how to configure this in your Reverse ETL audience.

![Census segment definition \&quot;Abandoned intent email to Braze\&quot; with filter conditions: Email is not blank, Time Engaged In greater than 30, Add To Cart is true, and Winback Successful is false](/assets/images/retl-winback-filtered-2091ae0f18dc04133a5875f4e77163c4.png)

## Campaign settings

1. Configure timing:

   - set delay after trigger e.g. 1 hour
   - set quiet hours e.g. 9 PM - 9 AM local time
   - set frequency capping e.g. max 1 email per user per 24 hours

2. Set conversion tracking:

   - primary conversion: "Purchase"
   - secondary conversion: "Add to Cart"

## Testing the campaign

1. Return to **Edit Campaign** and click **Preview** at the bottom of the page

   - select **Search User** under preview message as user
   - if the user can't be found, ensure Census has synced product view data for this user
   - verify custom attributes are populated correctly in the email
   - click **Send Test** to send the test email

2. Verify email content:

   - check all personalization renders correctly
   - verify product links work
   - test on multiple email clients

3. Verify winback success:

   - click on the link you receive in the test email with the `abandonedEmail=true` parameter
   - in Snowflake or Census, check the `winback_successful` column for the user has been set to true

***

![Gmail inbox showing the test abandoned browse email from Snowplow Store with subject \&quot;Did you forget something??\&quot; and body text \&quot;Hey Trent we saw you were interested in Air Force 1 Shadow\&quot;](/assets/images/retl-email-0888d05d2f92d2d747eca5c1bf5a1083.png)

***

## Best practices

- keep email content focused on one product
- include social proof (reviews, ratings)
- add sense of urgency (limited time offer)
- ensure mobile responsiveness
- include clear unsubscribe option

## Congratulations

Thanks for your effort! You have now set up an abandoned browse campaign in Braze, sent an email, and verified winback success. Let's review what we have achieved in the [conclusion](/tutorials/abandoned-browse-ccdp/conclusion/).
