Sort Orders
Learn how to create and manage sort orders for collection pages to enhance user experience.
Overview
Sort Orders determine the sequence in which products appear on collection pages. You can fine-tune product visibility using a combination of conditions, product attributes, and weighted attribute groups. These expressions help align product sorting with your marketing strategies and customer preferences.
Creating a Sort Order
To create a new sort order, follow these steps:
1. Define Sorting Expressions
Sorting expressions define how products are prioritized. There are three types:
- Condition: Boost or demote products based on attributes such as vendor, availability, or tags.
- Product Attribute: Sort by a specific attribute like price, newest, or popularity.
- Weighted Group of Attributes: Combine multiple attributes with assigned weights to balance sorting priorities.
2. Assign Weights (For Weighted Groups)
- In a Weighted Group of Attributes, allocate a weight (from 1-100) to each attribute.
- The higher the weight, the greater influence that attribute has on the final sort order.
3. Set Sort Direction
- Choose either Ascending or Descending for attributes.
- Example: Sorting by Price (Descending) ranks expensive products first.
4. Configure Sort Order Details
- Name: Provide a descriptive name (e.g., “Newest: Promote ‘My Vendor’ to the top and order by newest”).
- Code: Define a short, API-friendly identifier (e.g.,
newest_b
). - Is Variation: Enable this if the sort order is used for experiments and should not appear in the storefront/API.
5. Save and Apply
- Click Save Sort Order to apply your configurations.
- Use the Browse API to implement the Sort Order on relevant pages.
Best Practices
- Balance Weights: Avoid extreme weight differences to ensure fair influence of attributes.
- Monitor Impact: Regularly review conversion rates and customer behavior to refine sorting strategies.
- Use Conditions Wisely: Prioritize boosting/demoting logic carefully to align with merchandising goals.
For further details, refer to our API documentation or contact our support team.
Sort Order Experiments
Sort Order Experiments allow you to A/B test different sort orders on your collection pages to determine which arrangement of products leads to better engagement and conversion rates.
Overview
With Sort Order Experiments, you can:
- Create A/B tests for different sort orders on collection pages
- Target specific collections or all collections
- View detailed metrics on how each variation performs
- Make data-driven decisions about which sort orders to implement
Sort Order Experiments are created and managed directly within the Sort Orders section of your Layers dashboard. Each experiment compares a base sort order (Variant A) with a variant sort order (Variant B) to help you determine which arrangement of products performs better.
Creating an Experiment
To create a new sort order experiment:
- Navigate to the Sort Orders section in your Layers dashboard
- Select a sort order to edit or create a new one
- Click on the “Experiments” tab within the sort order edit page
- Click “Create Experiment”
- Enter a name for your experiment
- Select the variant sort order to test against the current sort order
- Choose which collections to target
- Set the traffic split percentage (default is 50/50)
- Click “Create Experiment”
Experiment Settings
- Name: A descriptive name to identify your experiment
- Base Sort Order: The current sort order that will be shown to the control group
- Variant Sort Order: The new sort order that will be shown to the test group
- Collections: Select all collections, a single collection, or multiple specific collections to target
- Traffic Split: Percentage of traffic that will see each variation (default is 50/50)
- Advanced Targeting Conditions: Optional filters to determine which visitors are eligible for the experiment (e.g., UTM parameters)
Monitoring Experiments
Once your experiment is running, you can monitor its performance in the experiment results section within the sort order:
- Visitors: Number of visitors in each group
- Views: Product views in each group
- Clicks: Product clicks in each group
- Add to Carts: Number of products added to cart in each group
- Purchases: Number of purchases in each group
- Conversion Rate: Percentage of visitors who made a purchase
- Confidence Level: Statistical confidence in the results
Ending an Experiment
You can end an experiment at any time:
- Navigate to the Sort Orders section in your Layers dashboard
- Select the sort order containing the experiment
- Click on the “Experiments” tab
- Click “End Experiment” for the experiment you want to conclude
- Review the final results
- Implement the winning sort order if desired
Advanced Usage
UTM-Based Sorting
You can use experiments with a 100% traffic split and advanced targeting conditions to show different sort orders based on UTM parameters. This allows you to create specialized landing experiences for different marketing campaigns.
For example, you could set up an experiment that shows a special sort order only to visitors coming from a specific email campaign by targeting the UTM source and campaign parameters.
Automatic Application
The system automatically applies experiments across all APIs where the sort order is used. This means that once an experiment is active, it will be applied consistently whether visitors are browsing collections, using search, or viewing recommendations.