Recommendations are a common request for online shops and content sites. The usual picture is a large data science team building a complex model. For many businesses, a simpler approach works well and can be built by a small development team.
The key is to start with rules that reflect how customers actually shop, then add data-driven suggestions as your catalogue and traffic grow.
Start with simple, explainable rules
Useful first rules include:
- Show products that are often bought together with the item in the basket.
- Show other products in the same category, sorted by popularity.
- Show items a returning customer viewed recently.
- Show replacements when a product is out of stock.
These rules are easy to explain to a store manager, easy to test and easy to change when the range shifts.
Use the data you already have
Order history, product views and search terms are often enough for a first version. Count how often pairs of products are bought together in the same order. Count which products are viewed in the same session. Store the results in a table and refresh it every night.
This approach is sometimes called collaborative filtering in its simplest form. It needs no special machine learning platform, and it works well once there are a few thousand orders.
Add content-based matching
When a product is new, it has no purchase history. For these cases, match on attributes such as category, colour, material, brand and price range. Text similarity between product descriptions can also help, especially if you use semantic search techniques.
Protect the basics
Recommendations should never show items that are out of stock or unavailable in the customer's region. Filter them before the list is built. Also avoid showing the same product that is already in the basket.
Test the result
Run an A/B test where half the visitors see the new recommendations and half see the old layout. Measure click-through, add-to-basket rate and revenue per visit. Keep the test running long enough to see a stable result, usually a few weeks for a busy shop.
When to invest in more
Once the simple rules are performing and the catalogue is large, a more advanced model may be worth the cost. Until then, a well-tuned set of rules, clear measurement and regular review will do more for your customers than a complicated system that nobody can explain.