Braze Tutorial: How To Log Promo Codes As A Custom Attribute

“A friendly reminder that your promo code expires tonight! Please find your old email from 2 weeks ago, and be sure to redeem your promo for 25% off!”

BOO. Let’s change that message to:

“A friendly reminder that your promo code expires tonight! Be sure to redeem your code 25FORNOW for 25% off!”

🗣️ WATCH FULL YOUTUBE VIDEO HERE 🗣

https://youtu.be/UIehRuFVo6M

What’s up everyone, my name is Allan, Founder and Consultant at For Now Marketing, and welcome back to our channel!

Before we get started, if you have any questions, whether you are currently using Braze or considering using Braze, please feel free to reach out! You can find these addresses and more in the Youtube description below.

Today, we are going to talk through How To Log Promo Codes As A Custom Attribute For Future Reminder Campaigns.

Let’s get started!

Braze Promotion Codes

Braze has a feature called Promotion Codes that allows us to upload a CSV of promotion codes to be inserted into our messages. This feature allows us to easily send these codes in an email to our users, offering them an extra incentive to make a purchase.

One popular use case that Braze users often ask is: how can I send a reminder to these code recipients, including the exact code that they received previously?

This reminder campaign is crucial to push users to use their code before they expire, and our goal is to make it convenient for our users to remember and use their code by referencing their specific code in the reminder campaign message.

In this video, we’ll briefly go over the process of launching promo codes, as well as logging them as a Custom Attribute so we can easily send reminder campaigns in the future.

Promotion Codes Setup

First, we have to upload a list of promo codes to the Braze dashboard. I generated a list of 25 random codes using ChatGPT, pasted them into Google Sheets, exported as a CSV, and we’re ready to go.

Once our CSV has been uploaded successfully, let’s copy the Liquid Code Snippet, and head over to a create a new Campaign.

Campaign Setup

First, we need to inform our users about this new promotion code. On this first message, we will also log the promo code as a Custom Attribute on their user profile, so that we can send a reminder campaign in the future.

Create a Multi-Channel Campaign, and add in your desired message channel. Since I don’t email access in my dashboard, I will send my promo code via a Web Push, but the idea remains the same.

Webhook Setup

Now, we are going to add the Webhook channel. It’s crucial that we’re using a multi-channel campaign for this tutorial. That’s the only way that we’re able to grab the exact same promo code used in our Web Push message and log it as a Custom Attribute.

Braze will use the exact same promo code for both the Web Push channel and the Webhook channel, only if the messages are sent in the same batch. That’s why it’s crucial to use a multi-channel campaign (or Canvas step).

Create a Webhook channel, change the Request Body dropdown to “Raw Text”, and paste the code snippet below.

{
“attributes”: [
{
“external_id”:””,
“promo_code”: “{% promotion(‘25offpromo’) %}”
}
]
}

For more information on how to fill in the Webhook URL and the KVPs under the Settings page, please watch this Youtube Tutorial which will cover all of this setup.

What this Webhook is doing is grabbing the exact same promo code that’s being sent out in our messages and logging that as a Custom Attribute on the same user profile.

This way, we can always reference this code later, since the code will remain on the user profile as a Custom Attribute.

Launch

Since this is simply a test launch, I will schedule to launch immediately, to my specific external_id.

Go ahead and launch, receive the message with the promo code, and confirm that the same code is logged on our user profile.

Awesome! We are now ready to send our reminder campaign at any time.

Reminder Campaign

Create a Campaign and choose any message channel you’d like. This time, we are reminding our users about their promo codes, and the message will include the promo code so that the users can access their codes conveniently.

Send the reminder message, and the code logged as a Custom Attribute will copy directly on the message!

Final Notes

So that concludes our tutorial! I just have 2 final notes to make:

  1. Please keep in mind that this use case works best when there’s only one outstanding promo code sent to your users. If your user has received multiple codes, then only their most recent code will be logged as a Custom Attribute.
  2. Each promo code logged as a Custom Attribute will incur 1 data point.

Thank You!

That’s it for today!

As always, if you have any questions, please share them in the comments. We’re happy to help! 🙏

If you learned something from this video, please subscribe for more awesome Braze videos in the future!

Thank you for watching, and see you next time!

allan@fornowmarketing.com

fornowmarketing.com

Previous
Previous

Braze Tutorial: How To Send Emails With Attachments

Next
Next

Braze Tutorial: How To Segment Users Based On Custom Event Properties