One of the most powerful features of Shopify is its ability to segment customers based on their behavior, preferences, and other attributes. This can help businesses create targeted marketing campaigns, offer personalized discounts, and improve customer retention.
Metafields are a great tool in Shopify that can help businesses segment their customers more effectively. Metafields are custom fields that can be added to products, orders, and customers. They allow businesses to store additional information that is not available in the standard Shopify fields, and gain a deeper insight into their customer base.
In this article we explore how to create, view and use Shopify metafields to segment your customers. We will cover the basics of customer metafields settings in a comprehensive guide with 4 key questions:
If you need to collect and display data on the store, you may jump directly to the last section How to collect metafield data directly from customers
You can Pin the metafields in Shopify Admin > Settings > Custom Data > Customers so this information will be a part of the customer information that you can view from a particular customer in the Shopify Customers panel. Just go ahead and click on the pin. Then you can see these metafields in the individual Customers panels, like in the pictures below, and enter data manually.
In the Shopify Admin > Customers dashboard, the built-in Export feature will now allow you export all Standard and Address data, along customer tags and metafields. Shopify just added the metafields option recently in February, 2024. So once you confirm the export, you'll get all this information in a spreadsheet.
Once you start collecting custom data in metafield definitions, you will be able to use it at will to address, analyze and segment your audience, thanks to the powerful segmentation built-in Shopify features.
Start by navigating to your Shopify Admin > Customers dashboard. While the regular Search Box can be used to search for emails, names, phones, locations, tags, etc., you will need to use Filters to create segments based on metafield data.
Go ahead and click on Add Filter on top. In the Filters Box you can use predefined templates or enter metafield definitions, as well as other standard data, to segment the customers. This means that you will be able to find and use the same metafields that you created before in Shopify Settings > Custom Data > Customers. Just start by writing down the word 'metafields', to list the existing customer metafields. Choose the right one based on its name.
After that you'll be able to set up one or different filters with operators (equal, not equal, greater, smaller,...), and connectors (AND/OR). You can chain different metafields and criteria, like in the picture below. If you are new to it, we recommend you having a look at Shopify's documentation to get to know more about the components of customer filters. Once you have defined your segment, click on Save Segment and name it to finish.
Displaying already entered metafield values can be done by adding liquid code to the theme. But collecting it directly from customers requires access through API, so most likely you will need to use an app that is able to collect this data through forms that the customer will be able to submit while navigating the site.
Check on our Custom Forms plugin. Custom Forms allows you to create registration and profile forms with custom fields to collect any additional data you need from your customers. Each custom field is connected to a Shopify customer metafield, in which the data is stored and can be accessed as described above.