User segments represent portions of your audience, allowing you to customize content for specific customers. You create user segments by defining rules that include or exclude customers according to their profile properties. User segments are viewed and managed through the Business Control Center.
Commerce Reference Store has implemented user segments in two ways:
Using a simplistic rule that manually assigns a sample customer to a user segment.
Using a set of more realistic rules that dynamically place customers into segments based on demographic data.
For completeness, this section describes both implementations. However, it is preferable to create user segments dynamically, using demographic data. The more simplistic implementation is legacy code that is used for demonstration purposes only.