DocsDevelopers
Klaviyo and Shopify Flow
Connect Klaviyo with a private API key to sync profile properties and loyalty events, and use Thrice triggers and point actions in Shopify Flow.
Thrice connects to Klaviyo and Shopify Flow on every plan. Open Integrations in Thrice to set them up. The page also links to the REST API, webhooks and Import and export.
Klaviyo
With Klaviyo connected, every loyalty member with an email address gets Thrice properties on their Klaviyo profile, and every loyalty moment becomes a Klaviyo event. Use them in Klaviyo segments, and in flows that send your own on-brand emails.
Connect Klaviyo
- In Klaviyo, open Settings, then API keys, and choose Create Private API Key.
- Choose Custom Key and give it Accounts: Read Access, Events: Full Access and Profiles: Full Access. Thrice needs nothing else.
- Copy the key. It starts with
pk_. - In Thrice, open Integrations, paste the key under Klaviyo and choose Connect Klaviyo.
Thrice checks the key with Klaviyo before saving it. If Klaviyo doesn't accept it, or it can't read your account, you see why and nothing is saved. The key is stored encrypted and never shown again; the page shows only its first characters. To use another key, choose Replace key.
Profile properties
Every time a member's loyalty event is sent, Thrice updates these properties on their Klaviyo profile, found by email address:
| Property | Value |
|---|---|
Thrice Points Balance |
Their points balance |
Thrice Points Name |
Your word for points, from Languages & text, in your store's language |
Thrice VIP Tier |
Their VIP tier name, or empty |
Thrice Referral Link |
Their personal referral link |
Thrice Member Since |
When they joined (ISO 8601 date) |
Thrice Points Expire At |
When their points expire (ISO 8601 date), only when points expire in your store and they have points; otherwise empty |
Thrice never changes a profile's email or SMS consent, list memberships or subscriptions. Members who unsubscribed from Thrice emails, and blocked members, are still sent, because they are your Klaviyo profiles all the same.
Events
Each loyalty event becomes a Klaviyo event with one of these metric names. They never change, so flows built on them keep working.
| Metric | When |
|---|---|
Thrice: Member joined |
A customer becomes a member |
Thrice: Points earned |
A member gets points |
Thrice: Points spent |
A member's points are spent or removed |
Thrice: Points expiring |
A member's points will expire soon |
Thrice: Points expired |
A member's points expired |
Thrice: Reward redeemed |
A member redeemed a reward |
Thrice: Tier changed |
A member moved to another VIP tier |
Thrice: Referral completed |
A friend the member referred placed their first order |
Thrice: Challenge completed |
A member completed a challenge |
Every event has Points Balance, Points Name and Tier, plus:
| Metric | Properties |
|---|---|
| Points earned | Points, and Order ID for order points |
| Points spent | Points |
| Points expired | Points |
Points that a Shopify Flow action added or removed also have Source set to flow on Points earned and Points spent, so a Klaviyo flow can leave them out or word them differently.
| Points expiring | Points, Expires At |
| Reward redeemed | Reward, Points, Discount Code |
| Tier changed | Previous Tier, New Tier, Moved Up |
| Challenge completed | Challenge, Bonus Points |
In a Klaviyo template, use a property with a space like this: {{ event|lookup:'Discount Code' }} or {{ person|lookup:'Thrice Points Balance' }}.
Each event carries the same ID as the matching webhook as its unique ID, so a retried delivery never creates a second event in Klaviyo.
Imported members and points (CSV imports and past orders) update profile properties but create no Klaviyo events, so an import doesn't start your flows for thousands of customers.
Send a test event
Enter your own email address under Send a test event and send it. Thrice sends a Thrice: Test event right away and tells you whether Klaviyo accepted it. It shows in Klaviyo under Analytics, then Metrics, within a few minutes.
Sync all members
Sync all members now updates the profile properties of every member with an email address, for example right after you connect. It runs in the background, in batches, and the page shows how far it got. When it's done, the page shows how many profiles were updated and how many failed. A sync creates no Klaviyo events, so no flows start. One sync runs at a time.
Delivery and failures
Events go to Klaviyo in the background and never delay emails or webhooks. When Klaviyo asks Thrice to slow down, Thrice waits as long as Klaviyo says and tries again. Other temporary failures are tried again up to 5 more times, waiting longer each time, up to an hour.
The Klaviyo card shows when the last event was delivered and the deliveries of the last 30 days that failed for good, with the reason.
If Klaviyo refuses the key, for example because it was deleted, the card shows Needs attention and Thrice stops sending until you replace the key. Events in between are not sent later; run Sync all members now after replacing the key to bring the profiles up to date.
Disconnect
Choose Disconnect to stop sending and delete the saved key. Profiles and events already in Klaviyo stay there.
What is sent to Klaviyo
Only when you connect Klaviyo, Thrice sends your members' email addresses, their points, tier, referral link, join date and points expiry date, and their loyalty events, to your own Klaviyo account. When a customer's data is deleted (a Shopify deletion request, or Delete loyalty data on the customer's page), nothing more about them is sent. To delete what Klaviyo already has, delete the profile in Klaviyo.
Shopify Flow
Shopify Flow is free on every Shopify plan. Install it, then find Thrice's triggers and actions when you build a workflow.
Triggers
| Trigger | Fields |
|---|---|
| Member joined | Customer, Points balance, Tier name, Referral link |
| Points earned | Customer, Points, Points balance, Tier name |
| Reward redeemed | Customer, Reward title, Points spent, Discount code, Points balance |
| VIP tier changed | Customer, Previous tier name, New tier name, Moved up, Points balance |
| Referral completed | Customer (the member who referred), Points balance, Tier name |
| Points expiring soon | Customer, Points expiring, Expiry date (YYYY-MM-DD), Points balance |
| Challenge completed | Customer, Challenge title, Bonus points, Points balance |
The customer is the Shopify customer, so a workflow can use everything Flow knows about them, such as tags or amount spent. Tier, reward and discount fields are empty when there is no value.
Flow tells Thrice which triggers your enabled workflows use, and Thrice only sends those. The Integrations page marks them In a workflow. Imports and tier recalculations after you change your tiers start no workflows.
Actions
- Add loyalty points gives a member points, with a reason shown in their points history.
- Remove loyalty points takes points from a member. It fails if they have fewer points than that.
Both take whole points from 1 to 1,000,000 and send the same events and webhooks as a manual adjustment, with source set to flow (see Webhooks). They never make a customer a member: for a customer who isn't a member the step fails and Flow shows the reason. Like an adjustment on the customer's page or through the REST API, they also change a blocked member's points. If Flow sends the same step twice, the points change once.
Points that a workflow adds or removes start no workflow, so a workflow that starts with Points earned and adds points can't run itself again and again. Emails, webhooks and Klaviyo still get these points as usual. Added points don't count towards VIP tiers either, so they can't move a member to another tier and start a VIP tier changed workflow that way.
Failures
The Shopify Flow card lists the triggers of the last 30 days that Flow refused or that failed after several tries, with the reason.
Who can change integrations
Anyone who can change settings can connect, replace or disconnect Klaviyo, send a test event and start a sync. Team members with the Viewer role can see the page but not change anything.