How to create a Happy Birthday campaign using Klaviyo
It's nice when others remember the days that are important to us. In this guide, we show how to build relationships with your Shopify customers and give them special discount codes for their birthday.
We will use Personal Discount and Klaviyo.
Start in the Shopify admin panel > Apps > Personal Discount and click the Add automation button. Then select Klaviyo as your Email Service Provider and Happy Birthday as your campaign type.
Copy the code snippet to the clipboard when you have finished setting up the automation.
Personal Discount code snippet
Switch over to the Klaviyo dashboard. We will build happy birthday automation. Navigate to the Flows section and click Create Flow.
Create flow in Klaviyo
We will Create From Scratch.
Create Flow from scratch in Klaviyo
Now, enter the name of your flow, for example, the Happy Birthday campaign.
Name your Klaviyo automation
Now, we need to set the trigger. Select Date Property from the trigger types list. Then from the dropped-down menu pick the date property that will trigger this flow. In this case, it is a Birthday. In the next window, you can specify trigger setup, for example, if a message should be sent before or on a person's birthday. Click Done to save this setting and Done again to save the trigger. You can decide if it should be a one-year or annual campaign. In the second case check the Yearly option. Personal Discount will generate a new birthday discount code each year.
Set the trigger for Happy Birthday campaign in Klaviyo
We would like to send an email on a customer's birthday, so drag and drop the Email box to your automation.
Add sending email to your Klaviyo flow
Now we will Edit a birthday message.
Edit a birthday message Klaviyo
In the next step, you can specify some details of your email, like the subject or sender name.
Specify the details of your Klaviyo Happy Birthday email
You can select an email template from the Klaviyo library or create your own.
Klaviyo email templates library
It's time to include a discount code in your email template. Drag and drop a Text element to your template. Then delete the default content from it. Next, switch out to the Source view and paste the code snippet from Personal Discount. Save the element and Save Content.
Add text element into Klaviyo email template and paste code snippet from Personal Discount
Now you can enable your automation. Change your email box status from 'Draft' to 'Live'. Then Save & Exit.
How to enable Klaviyo flow
Next, we need to prepare a form where the customer can enter their date of birth. One of the solutions is to create a pop-up.
Create Klaviyo birthday date pop-up
Select the Email subscriber list.
Klaviyo Birtday pop-up subscribers list
Now, go to the second step of your pop-up. Here, for example, you can change the date format. Notice that Klaviyo has defined the date formats required for the automation to work correctly. It is MM/DD/YYYY or YYYY-MM-DD format. For more information, see the Klaviyo article Create birthday emails for subscribers (with best practices).
Birthday date format Klaviyo pop-up
When your pop-up is finished, you can publish it.
Publish pop-up in Klaviyo
To publish your pop-up, there is also a confirmation in Shopify needed. When you click Publish Form and Go To Shopify, Klaviyo will redirect you to the appropriate subpage of the Shopify admin panel.
Enable Klaviyo pop-up in Shopify store template
Now your customers can get a discount code as a birthday gift.