Using Leat personalization in a Klaviyo email
Once Leat and Klaviyo are connected, Leat fills a set of properties on each contact's Klaviyo profile. You can use them in any Klaviyo email to show a contact's points balance, tier, referral link or wallet pass.
Adding Leat personalization to a Klaviyo email
These steps happen in Klaviyo, so the names on screen are Klaviyo's.
- In the flow you created, press + and select email.
- Start from an empty template or an existing one.
- In the email editor, click into a text block and open the personalization menu (the person icon). Search for the prefix leat_ to see the Leat properties, and click one to add it.
These properties are available:
- leat_add_to_wallet_url: a unique link where the contact adds their wallet pass
- leat_birthdate: the contact's birthdate
- leat_contacts_portal_login_url: a unique link that logs the contact straight in to the contacts portal
- leat_created_at: the date the contact was created in Leat
- leat_first_loyalty_transaction_date: the date of the contact's first loyalty transaction, such as a redemption or points they received
- leat_first_points_transaction_date: the date the contact first received points
- leat_last_loyalty_transaction_date: the date of the contact's last loyalty transaction
- leat_last_points_transaction_date: the date the contact last received points
- leat_locale: the contact's language
- leat_number_of_points_transactions: the total number of points transactions
- leat_number_of_referred_contacts: how many contacts this contact has referred
- leat_points_balance: the contact's current points balance
- leat_prepaid_balance: the contact's prepaid balance
- leat_previous_points_balance: the balance the contact had before their last transaction or redemption
- leat_referral_code: the contact's own referral code
- leat_referral_url: the contact's own referral link
- leat_status: the contact's status in Leat
- leat_tier: the name of the contact's tier
- leat_total_points_received: the total number of points the contact has received
Attributes you include on the Profile properties tab of the Klaviyo page in Leat are sent too, as leat_ followed by the attribute's name.
When the properties are filled in
Leat fills these properties when it sends Contact added or Contact updated, so enable those events on the Events tab. Sync all profiles, in the menu on the Klaviyo page in Leat, fills in balances, tier and dates for contacts you already had. It doesn't send the wallet, contacts portal and referral links (leat_add_to_wallet_url, leat_contacts_portal_login_url, leat_referral_url and leat_referral_code). Those reach a profile with the contact's next Contact added or Contact updated event.
If Version on the General tab says v1, your connection is older and the properties have older names without the leat_ prefix, for example loyalty_balance instead of leat_points_balance. See Start a Klaviyo flow from a Leat event for how to update to the latest version.
Adding a wallet pass button in Klaviyo
You can add a button to a Klaviyo email that lets contacts add their wallet pass straight to their phone.
The wallet link is in the property leat_add_to_wallet_url, so the tag is {{ person.leat_add_to_wallet_url|default:'' }}. On an older v1 connection the property is called add_to_wallet and the tag is {{ person.add_to_wallet|default:'' }}.
- In your email, add a button and open its settings.
- Set the button's link address to {{ person.leat_add_to_wallet_url|default:'' }}.
- To copy the tag from Klaviyo instead of typing it, preview the email and open All properties. Under Custom Properties, click leat_add_to_wallet_url (add_to_wallet on a v1 connection). That copies the tag to your clipboard, so you can paste it into the button's link address.
When a contact clicks the button, a page opens in their browser where they add their wallet pass on an iPhone or Android phone.