Affinsy is on the Shopify App Store.See the app →
Back to blogRetention

Klaviyo Shopify Tags: Turn Customer Tags into Segments and Flows

20 min read

You found something in your order data: a few hundred shoppers who bought the starter kit but never the refill, or a group that is past its usual reorder date. Now they need to get one email from Klaviyo, and nobody else should. Shopify customer tags are the simplest bridge between what your order data tells you and who Klaviyo emails: you tag the right people in Shopify, and Klaviyo can build a segment on the tag. This article walks through every step of working with Klaviyo Shopify tags: how tags show up in Klaviyo, how to build the segment, how to use the tag in a flow, what goes wrong, which customers are worth tagging, and how to tell whether the email changed anything. The goal is one clean list of people in Klaviyo that matches the finding, and an honest view of the outcome.

Key takeaways

  • Klaviyo's Shopify integration syncs customer tags to one profile property named "Shopify Tags", stored as a list. You do not need to create a custom property for it.

  • To build a segment, add a condition on "Properties about someone > Shopify Tags", select "contains the text" and enter the full tag value. Each tag takes one condition, and Klaviyo's standard limit is 100 conditions per segment.

  • Manage customer tags in Shopify. Changes made to Shopify Tags inside Klaviyo can be overwritten when Shopify data syncs again.

  • Tag groups that come from actual orders: buyers of one product who never bought its partner, buyers due to reorder, and buyers past their usual gap.

  • To see whether an email changed anything, split the group in two before you send: a test tag that gets the email and a holdout tag that does not. Then compare who bought.

What are Klaviyo Shopify tags, and how do they show up on a profile?

They are the customer tags from your Shopify store, as Klaviyo stores them. Klaviyo's Shopify integration syncs customer tags to one profile property named "Shopify Tags", and that profile property is stored as a list.

A list means that all the Shopify tags attached to one person sit together on that person's Klaviyo profile, as separate values. Someone with multiple tags in Shopify, say "VIP" and "newsletter", has both values in the same property. The property, and the filters you can build on it, are the topic of Klaviyo's help article on using Shopify tags to filter customers.

Two things follow from that:

  • There is nothing to create on the Klaviyo side first. The property comes from the Shopify integration, so once the integration is enabled in your Klaviyo account there is no custom property to define by hand. The tag is the only piece of customer data that has to travel, and no file is uploaded anywhere.

  • The tags describe the person, not one purchase. That suits a group you want to keep together for a few weeks, such as the people in a test.

The topic of this article is customer tags only. Klaviyo's help page describes customer tags and says nothing about tags placed on orders. If the group you want is marked on orders, give them a customer tag and build on that.

Before you build anything, check one real profile. Pick someone you have tagged in Shopify, open the same profile in Klaviyo, and view the Shopify Tags profile property. If the tag you added is listed, the customer data is arriving and you can build on it. If it is not there yet, confirm that the Shopify integration is enabled and look again later before you decide something is broken: the help page does not say how long tags added in Shopify take to appear. Take the same view of a profile after any large round of tag updates.

How do I build a Klaviyo segment from a Shopify tag?

Create a segment with one condition: "Properties about someone > Shopify Tags", "contains the text", and the full tag value. Everyone whose profile carries that tag lands in the segment. Create one segment per group you plan to email, so that each segment answers to one tag. Give the Klaviyo segment the same name as its tag, so segment names never drift from what is in Shopify.

The steps, as Klaviyo's help page gives them:

  1. In Klaviyo, go to Audience > Lists & segments.

  2. Click Create and choose Segment.

  3. For the condition, choose "Properties about someone", then "Shopify Tags". The type sets itself to List.

  4. Select "contains the text".

  5. Enter the full tag value, such as cleanser-moisturizer-test.

  6. Click Create segment.

Enter the tag exactly as it is written in Shopify. The safest way is to copy it from a tagged record and paste it, so that a plural or a stray space cannot creep in.

For multiple Shopify tags, add one condition per tag and choose how to join them:

  • AND when someone must have every tag, such as "VIP" and "newsletter".

  • OR when at least one tag is enough, such as the test tags of two different emails.

Klaviyo's standard limit is 100 conditions per segment, and each tag takes one. That is plenty for a small set of clear Shopify tags, and a good reason not to create hundreds of tiny ones.

Two more conditions find the profiles that do not have a tag:

  • "is empty" finds profiles with no Shopify tags at all.

  • "doesn't contain the text" finds everyone without one particular tag, such as everyone outside a holdout group.

Once the segment exists, you can create a campaign and send it to that segment. For a group you tagged once, such as people who bought one product and never its partner, a campaign to the segment is the shortest route from tag to email. For a continuing email instead of a single send, use the tag in a flow, which is the next topic.

How do I use a Shopify tag in a Klaviyo flow?

Add the tag as a profile filter on the flow's trigger. The trigger still decides when someone enters the flow, and the filter decides whether that person is let in. So every flow has two questions: what is the trigger, and whom should the trigger let through? Shopify tags answer only the second.

Klaviyo's steps: click the trigger, and next to "Profile filters" click Add, or Edit if a filter is already set. Choose "Properties about someone > Shopify Tags", keep the type as List, select "contains", enter the tag and click Save.

One thought to hold on to before you rely on it: a profile filter does not pull tagged people into a flow. A Klaviyo flow that starts on Placed Order, with a filter on the tag "VIP", takes in VIP buyers when they place an order, and nobody else. So the trigger and the tag have to fit together. If they do not, the flow simply stays empty. A few examples from post-purchase and retention work:

  • Replenishment flow. The trigger of Klaviyo's replenishment flow is Placed Order. A tag filter narrows it to one group, such as the test group for a product that runs out. Choosing the day of the reminder is a topic of its own, covered in the guide to replenishment email timing.

  • Cross-sell flow. The trigger of Klaviyo's cross-sell flow is Placed Order or Fulfilled Order. A tag filter keeps it to the people you chose for the second product. What goes into those post-purchase emails is the subject of the post-purchase email flow guide.

  • Winback flow. Klaviyo's winback flow uses the Placed Order trigger and a first time delay a little longer than your average buying cycle. A tag filter limits it to one group you want to treat differently. The guide to win-back email timing shows how to set the delay from your own orders.

To keep a group out of a flow, such as a holdout group, the plain route is to set the filter on the trigger to ask for a tag the holdout never gets.

A continuing flow should not need editing every time the group changes. Keep the flows general and let the tags say who enters. The targeting then lives in a short list of well-named Shopify tags, and the Klaviyo flow itself rarely has to change.

What goes wrong with Shopify tags in Klaviyo?

Most problems come from where a tag was edited, how it was spelled, and how many tags there are. None of these issues raises an error. The segment is just quietly wrong: it misses someone you wanted, or holds someone you did not.

Editing the tag in Klaviyo instead of Shopify. Klaviyo's help page says it in one line: "Manage customer tags in Shopify." Changes made to Shopify Tags inside Klaviyo can be overwritten when Shopify data syncs again. If a tag is wrong, go back to Shopify and fix it. Make all tag updates there.

More than one spelling. Shopify tags are not case sensitive, so "Dealer" and "dealer" are one tag there. That does not help with "Dealers" or "delaer", which are other tags. Choose one spelling, write it down, and paste it everywhere instead of typing it.

Tagging orders when you meant customers. Everything in this article relies on customer tags. If the tag was added to orders, add a customer tag for the same group and build the segment on that.

Not checking who has the tag. Before you send, compare the two sides. In Shopify, a customer segment with the filter customer_tags CONTAINS 'TagName' lists everyone with that exact tag, as Shopify's segment filter reference describes. You create it in the Shopify admin under Customers > Segments > Create segment, and it gives you a view of everyone with the tag. The Klaviyo segment should hold roughly the same people. If the numbers are far apart, view a few profiles and look for the tag before you treat it as a larger issue. Shopify notes that very recent tag changes can take a short time to show in segment membership, so do not count in the first moments after tagging.

Too many Shopify tags. Hundreds of small ones, one for every email ever sent, are hard to read, and they run into the 100-condition limit as soon as you try to combine them. Keep a short list.

Tags that outlive their purpose. Nothing in this method takes a tag off when its reason has passed. Someone tagged as due to reorder still has it after they reorder, unless you remove it. Tags added for a test should come off when the test ends, or the old group stays in the segment and in any flow filter that uses the tag.

If a Shopify Flow workflow or another automation in your store adds or removes customer tags, list which tags it touches. Whoever builds the Klaviyo segment then knows which tag updates happen by themselves and which tags were added once by hand.

Which customers are worth tagging?

The ones who share a behavior you found in the order history, and who should get a different email because of it. A tag for everything is noise. One for a group with a clear next purchase is worth the work, and for most stores that means buyers on the way to becoming repeat customers, or slipping away from it. Create one only for a group that will get its own email. Each group below maps to one.

Group Example tag Email it feeds
Bought one product, never bought the product that usually goes with it cleanser-no-moisturizer Post-purchase cross-sell email for the partner product
Bought a product that runs out, and the usual gap between orders is nearly up due-to-reorder-coffee Reorder reminder
Past the usual gap, with no new order late-reorder-coffee Winback email
First order was a product whose buyers tend to come back starter-kit-first-order Post-purchase email for the second order
The two parts of any group above, split for a test ...-test and ...-holdout The test part gets the email, the holdout part does not

Strong Shopify tags come from actual order data, not guesses. "Community member" or "good customer" does not say what to send. "Bought the cleanser, never the moisturizer" does, and it tells you what the email is meant to achieve as well.

Size matters too. A group has to be large enough that the email is worth writing and, if you want to measure the result, large enough to split in two. A handful of people can be emailed by hand.

Name each tag so that a stranger could read it: what the group is and, for a test, which side. Add a month or a number if you plan to repeat the test, so that an older test group never mixes with the new one. These labels are a small piece of customer data, so write them as if a customer could one day read them: no nicknames, no judgments.

How do I get from an order export to a tag list?

Export your orders, find the buyers who match the pattern, and tag exactly those buyers in Shopify. For one product pair, a spreadsheet is enough. The customer list itself comes out of your order data, and the tag is how that list gets a name Klaviyo can read.

You need one row per line item with the order id, the order date, the customer id or email, and the product name. Remove cancelled and refunded orders first. An order export is customer data, so keep the file where only those who need it can open it.

To find everyone who bought product A but never product B:

  1. Filter the rows where the product is A and collect the distinct buyers.

  2. Filter the rows where the product is B and collect the distinct buyers.

  3. Remove from the first list everyone who is also on the second. With the B buyers in column F, =COUNTIF(F:F, A2) beside each A buyer gives 0 for the ones to keep.

  4. What is left is your list: buyers of A who never bought B.

Which pair deserves the work is a separate topic. The guide to frequently bought together analysis shows how to find the product pairs that sell together more often than chance.

A reorder list comes from the same export. For each buyer, find the date of their last order of the product, and compare the days since then with the usual gap between two orders of it.

Then add the tag to them in Shopify. How you add it for a long list depends on your setup: by hand for a short list, or with whatever tool or Shopify Flow workflow your store already uses for tagging. What matters for Klaviyo is that the tag is attached to the right records and spelled the same for everyone.

How do I tell whether the email changed anything?

Split the group before you send. One part gets a test tag and the email, the other part gets a holdout tag and no email. After a set window, compare how many in each part bought. The gap between the two is what the email did. The rest would have happened anyway. The goal is to see what the email added, not how many bought.

  1. Split at random. In the spreadsheet, add a column with =RAND(), sort by it, and mark the first set of rows as holdout and the rest as test. Random matters: if you choose by hand, the better buyers end up on one side.

  2. Create two tags, such as cleanser-moisturizer-test and cleanser-moisturizer-holdout, and add each to its part of the list in Shopify.

  3. Build the Klaviyo segment on the test tag only and send the email to it. While the test is continuing, leave both tags in place and send no other campaign or post-purchase flow about the same product to the holdout tag. Everything else you send can go to both.

  4. Decide the window before you send and write it down, together with the product the email is meant to sell, so the result cannot be read on the day it looks best.

  5. When the window ends, export the orders again and count the buyers of the product in each part. Compare shares, not raw counts, because the two parts differ in size.

  6. Remove both tags. Set a reminder for it on the day you send, because nothing else in this method will do it.

How to choose what to test, and how to run a holdout cleanly, is covered in the guide to retention experiments in ecommerce.

Klaviyo has a holdout feature of its own, global holdout groups, which excludes a share of profiles from marketing messages. It is account-wide, not set per flow, and Klaviyo's help page says an account needs at least 400,000 profiles to use it. A pair of tags works for one email and one group, in an account of any size.

Worked example: a cross-sell test with two tags

Illustration with round numbers, not a benchmark.

A skincare store finds 1,000 shoppers who bought its cleanser in the last year. Of those, 400 also bought the moisturizer and 600 never did. The 600 are the group.

The store splits them at random. 480 of them get the tag cleanser-moisturizer-test, and 120, or 20% of the group, get cleanser-moisturizer-holdout. It builds a Klaviyo segment on the test tag and sends that segment one post-purchase email about the moisturizer. The window is 30 days.

Part Size Bought the moisturizer within 30 days Share
Test (got the email) 480 48 10%
Holdout (no email) 120 6 5%

To understand the result, start from the holdout. Without the email, 5% bought the moisturizer anyway. Applied to the test part, that is 24 of the 480. The test part had 48 buyers, so the email brought about 24 extra orders. Counting every buyer in the test part would have given it credit for 48, twice the real outcome.

One caution. A holdout of 120 with 6 buyers is thin: two more buyers would move its share from 5% to almost 7%. Read this result as an encouraging sign, and repeat the test on a larger group before you build a permanent flow on it.

Is there a shorter way than the spreadsheet?

Yes, if the slow part for you is the spreadsheet: finding the group, splitting it at random and counting buyers afterwards. The Klaviyo part stays the same.

Affinsy is a Shopify app that reads the store's order history. An audience in the app is a saved customer list from one finding. When you save it, you can hold out a share of the list, and that share cannot change once the audience is saved.

Clicking Tag in Shopify adds one customer tag to the test group and another to the holdout group. The first click asks for permission to edit customers, and Remove tags takes the tags off again. The audience page gives the steps for Klaviyo: a segment where Shopify Tags contains the test tag. The app sends no email and has no connection to Klaviyo, so you build the segment and send from Klaviyo yourself, as described above.

After the window, the result compares buyers and revenue of the suggested products in the test group with the holdout group. It reads as inconclusive when a group has fewer than 50 customers or the test ran under 7 days.

Next steps

  1. Pick one finding from your order history: a product pair, a reorder gap or a group that has gone quiet.

  2. Build the list from an order export and split it at random into a test part and a holdout part.

  3. Create the two tags and add them to the two parts in Shopify, then check one tagged profile in Klaviyo.

  4. Create the Klaviyo segment on the test tag and send the email or, for a continuing email, add the tag as a profile filter on a flow trigger.

  5. When the window ends, compare buyers in the two parts and remove the tags.

  6. Keep one document that lists every tag, what it means, how it was added (by hand, or by Shopify Flow or another automation if your store uses one) and which Klaviyo segments and flows use it.

If you would rather have the customer list for a finding, the test and holdout split, and the comparison after the window worked out from your own Shopify orders, Affinsy on the Shopify App Store does it from the order history.

FAQ

Can I edit the Shopify Tags property directly in Klaviyo?

It is better not to. Klaviyo's help page says to manage customer tags in Shopify, because changes made to Shopify Tags inside Klaviyo can be overwritten when Shopify data syncs again. If a tag was added by mistake, go back to Shopify and correct it there, like all other tag updates.

Do I need a custom property in Klaviyo for Shopify tags?

No. As long as the Shopify integration is enabled, the tags arrive in the Shopify Tags profile property through it, and the segment condition and the flow filter in this article both use that property. A custom property you created yourself is a separate thing and is not needed for any step here.

How many Shopify tags are too many for a Klaviyo segment?

The hard edge is Klaviyo's standard limit of 100 conditions per segment, with one condition per tag. The practical edge comes much sooner: when nobody new to the team can understand what a tag means or which email uses it. A short set tied to a product, a reorder window or a named test is easier to keep right.

What if a customer has multiple tags at once?

Multiple tags on one profile are normal. One person can be "VIP", "newsletter" and "community-member" at once. All of someone's tags sit in the same list, and the AND or OR between your conditions decides which combinations enter a segment. The case to avoid is one person in two tests at the same time, because you cannot tell which email earned the order. Check for overlap before you add the tags for a second test.

Can a Shopify tag be the trigger of a Klaviyo flow?

In the steps Klaviyo's help page gives, the tag is a profile filter on the trigger, not the trigger itself. As in any post-purchase flow, something else is the trigger, such as a placed order, and the tag decides who may enter. For a group that should get one email now, the route in this article is a campaign to the segment you set up on the tag.

Do Shopify order tags work the same way as customer tags?

This article and Klaviyo's help page cover customer tags only. If the group you need is marked on orders, add a customer tag to the same group and build the Klaviyo segment on that.

What if a Shopify Flow workflow in my store already adds tags?

The steps in this article start from a customer tag that is already in place in Shopify. They are the same for tags added by hand and tags added any other way. If Shopify Flow or another automation manages some of your tags, note in your tag list which ones, and keep test and holdout tags out of its reach while a test is running.

How often should I clean up my Klaviyo Shopify tags?

After every test, and more widely twice a year or whenever you plan new Klaviyo flows or change your email marketing plan. It helps to keep one shared tag list, as in the next steps. Retire the Shopify tags no segment uses, merge near-duplicates in Shopify, and confirm that each tag you keep still has a segment or a flow behind it.

Want to know what earns your second order?

Drop in your order history and get back the products that bring customers back, the week they go quiet, and the list to email first.