Send emails with Klaviyo
Overview
You can use Klaviyo to send marketing emails related to the loyalty program to grow your returning customer base.
Recommended emails
Loyalty points earned: Send an email each time a customer earns loyalty points and highlight the rewards they can get. It's a great way to make your customers feel valued and encourage them to make a new purchase
Reward redeemed: Send an email confirming that they redeemed a reward
Point expiry: If you have point expiry set up send a reminder 7-days before the points expire to encourge your customers to make a purchase to prevent loosing their points
Celebrate Birthday: If you have the "Birthday points" earning rule set up you can send an email on the customer's birthday wishing them a happy birthday and highlighting the the points you rewarded them
How to set up?
You can integrate Love Loyalty with Klaviyo through our Shopify Flow triggers. You can use these triggers to create a Shopify Flow automation that automa-
tically sends an event to Klaviyo which you can use to build email flows in Klaviyo as usual.
Follow these steps to create a "Loyalty points earned" email automation:
If you don't yet have the Shopify Flow app installed, you should install it from the App Store. It's a Free app developed by Shopify.
Send an event to Klaviyo
Create a new Workflow in Shopify Flow
Click the "Select trigger" button and select "Loyalty points earned" from Love Loyalty as the trigger
Click the "+" button and choose to add an "Action"
Select "Track an Event" from Klaviyo as the action
Configure the action the following way:
- Klaviyo Public API Key: Navigate to "Account > Settings > API Keys" inside Klaviyo app to get your public API key and paste it here
- Event Name: The name of the event in Klaviyo (eg.: Points earned)
- Customer email: The email address of the customer, you can use this variable: {{ customer.email }}
- Customer First Name: First name of the customer, you can use this variable: {{ customer.firstName }}
- Customer Last Name: Last name of the customer, you can use this variable: {{ customer.lastName }}
- Customer Properties: You can add properties to the customer in Klaviyo that you can use in emails and segments. The following adds the customer point balance and birthday as properties to the customer in Klaviyo: { "Loyalty Points": {{ customer.loyaltyProgramPoints.value }}, "Love Birthday": {{ customer.loyaltyProgramBirthday.value }}" }
- Event Properties: You can add properties to the Klaviyo event that you can use in email Flows that use this event as the trigger in Klaviyo. The following adds the loyalty points earned and the earning rule name to the event: {"pointsEarned": {{ pointsEarned }}, "earningRuleName": "{{ruleName}}" }
Turn on the Workflow
Create automated email Flow in Klaviyo
Using the Klaviyo event you've just created you can build an automated email flow by these steps:
Create a new email flow in Klaviyo
From the Shopify triggers section select the "Points earned" event (the one you've just created)
Add the email you want to send
Using customer properties in email template:
In the email editor click the "Personalization" button in the top right
Choose "Custom" type and select "Loyalty points" or any other custom property you want to use
Use the inserted variable (eg.: {{ person|lookup:"Loyalty Points"|default:'0' }} ) in your email
Using event properties:
In the email editor click the "Personalization" button in the top right
Choose the "Event" type and click "View all event properties" button
3. In the email preview click the name of the event property you would like to use in the email. This will copy the variable name,
Use the copied variable (eg.: {{ event.earningRuleName|default:'' }}) in your email
Similarly you can set up other automated emails like Reward redeemed or Point expiry using our other Shopify Flow triggers.
If you need help setting up automated emails, let us know via Live Chat. We're happy to help free of charge.
Updated on: 08/01/2025
Thank you!