On this page: Learn about the algorithm types, algorithms, and recommendation keys available for basing recommendations in Adobe Target Recommendations activities.
Algorithm-based recommendations use the context of visitor behavior to show relevant results in Adobe Target Recommendations activities. Each algorithm type offers its own set of algorithms. For a summary of the algorithm types and their algorithms, see Get started with Criteria.
Each criteria is defined in its own tab. Traffic is split evenly across the criteria tests: with two criteria, traffic is divided equally between them, and with two criteria and two designs, traffic is split evenly between the four combinations. A percentage of site visitors can also be set to see the default content, for comparison. In that case, the specified percentage of visitors sees the default content, and the rest are split between the criteria and design combinations.
For more information about creating criteria and defining its algorithm types and algorithms, see Create criteria.
Different algorithms suit different types of pages. The following sections describe each algorithm type and its algorithms.
Cart-Based cart-based
The Cart-Based algorithm type recommends items based on the contents of the visitor’s current cart. The recommendation keys are supplied as comma-separated values in the mbox parameter cartIds. Only the first 10 values are considered.
Cart-based recommendation logic is similar to the “Recommended For You” user-based algorithm and to the “People Who Viewed This, Bought That” and “People Who Bought This, Bought That” item-based algorithms.
Target uses collaborative filtering techniques to determine similarities for each item in the visitor’s cart, then combines the behavioral similarities of all the items into a merged list.
Marketers can choose whether Target looks at visitor behavior within a single session or across multiple sessions:
-
Single Session: Based on what other visitors did within a single session.
A single session suits products that strongly “go with” each other based on a usage, occasion, or event. For example, a visitor who is buying a printer might also need ink and paper, and a visitor who is buying peanut butter might also need bread and jelly.
-
Across Sessions: Based on what other visitors did across multiple sessions.
Multiple sessions suit products that strongly “go with” each other based on visitor preference or taste. For example, a visitor who likes Star Wars might also like Indiana Jones, even if the visitor does not necessarily want to watch both movies in the same sitting. Similarly, a visitor who likes the board game “Codenames” might also like the board game “Avalon,” even if the visitor cannot play both games simultaneously.
Target makes recommendations for each visitor based on the items in their current cart, regardless of whether visitor behavior is considered within a single session or across multiple sessions.
The following algorithms are available with the Cart-Based algorithm type:
Popularity-Based
The Popularity-Based algorithm type recommends items based on their overall popularity across the site, or on their popularity within the favorite or most-viewed category, brand, genre, and so forth of the user.
The following algorithms are available with the Popularity-Based algorithm type:
Most Viewed Across the Site scoring most-viewed
The recommendation is the item that has been viewed most often, determined by recency/frequency criteria as follows:
- 10 points for first product view
- 5 points for every subsequent view
- At the end of a session, divide all values by 2
For example, viewing surfboard A then surfboard B in one session results in A: 10, B: 5. When the session ends, the result is A: 5, B: 2.5. If the same items are viewed in the next session, the values change to A: 15, B: 7.5.
Most Viewed by Category scoring most-viewed-category
The recommendation is the category that has received the most activity. It uses the same method as “most viewed item”, except that categories are scored instead of products, with recency/frequency criteria as follows:
- 10 points for first category view
- 5 points for every subsequent view
With each visit, the score of every non-current category that has been viewed before is decremented by 1.
For example, viewing category A then category B in one session results in A: 9, B: 10. If the same items are viewed in the next session, the values change to A: 20, B: 9.
Profile attribute algorithms profile-attribute-algorithms
Most Viewed by Profile Attribute and Top Sellers by Profile Attribute depend on a profile script to populate the attribute. The script name must begin with the recsAttribute prefix so Target stores it as user.recsAttribute<Name>. A script can be written for any visitor characteristic that is relevant to the use case. For more information about setting profile attributes with profile scripts, see Profile parameters.
For example, the following script, named recsAttributeRegion, bases recommendations on the region of the visitor:
var region = mbox.param('userRegion');
if (region) return region;
Similarly, the following script, named recsAttributeLoyaltyTier, bases recommendations on the loyalty tier of the visitor:
var tier = mbox.param('visitorLoyaltyTier');
if (tier) return tier;
After the script is created and activated, the corresponding Region or Loyalty Tier entry becomes available in the profile attribute drop-down of the create criteria window. The recsAttribute prefix itself is not shown in the drop-down.
Item-Based
The Item-Based algorithm type recommends items that are similar to an item that the user is currently viewing or has recently viewed.
The following algorithms are available with the Item-Based algorithm type:
User-Based
The User-Based algorithm type recommends items based on the user’s behavior.
The following algorithms are available with the User-Based algorithm type:
Recently Viewed Items details recently-viewed
The Recently Viewed Items algorithm returns results specific to a given environment. If two sites belong to different environments and a visitor switches between the two sites, each site shows only recently viewed items from the appropriate site. If two sites are in the same environment and a visitor switches between the two sites, the visitor sees the same recently viewed items for both sites.
The Recently Viewed Items criteria cannot be used for backup recommendations.
Recently Viewed Items or Recently Viewed Media can be filtered so that only items with a particular attribute are displayed.
- Recently Viewed criteria are configurable, like other criteria in recommendations.
- Collections, exclusions, and inclusions (including the special rules for Price and Inventory) can be used in the same way as with any other criteria.
One use case is a multinational company with multiple businesses, where a visitor might view items across multiple digital properties. Recently viewed items can then be limited to the property where they were viewed, so they do not display on the site of another property.
Custom Criteria custom
The Custom Criteria algorithm type recommends items based on an uploaded custom file.
The recommendation is determined by an item that is stored in a visitor’s profile, using either user.x or profile.x attributes. When this option is selected, the entity.id value must be present in the profile attribute. When recommendations are based on custom attributes, the custom attribute must be selected first, and then the recommendation type.
Real-time filtering can be applied to the output of the custom criteria. For example, the recommended items can be limited to those from the favorite category or brand of a visitor. This combines offline calculations with real-time filtering, so Target can add personalization to offline calculated recommendations or custom-curated lists. The data science and research of the organization are then combined with the delivery, run-time filtering, A/B testing, targeting, reporting, and integrations of Adobe.
Inclusion rules on Custom Criteria turn otherwise static recommendations into dynamic recommendations based on the interests of the visitor.
- Custom criteria are configurable, like other criteria in recommendations.
- Collections, exclusions, and inclusions (including the special rules for Price and Inventory) can be used in the same way as with any other criteria.
Possible use cases include:
- Recommend movies from a custom-curated list, but only if the visitor has not already watched them.
- Run an offline algorithm and use the results to power the recommendations, while ensuring that out-of-stock items are never recommended.
- Include only items that are from this visitor’s favorite category.
Recommendation keys keys
The following recommendation keys are available from the Recommendation Key drop-down list:
entity.id value must be passed as a parameter in the display mbox.entity.categoryId value must be passed as a parameter to the display mbox.entity.categoryId value must be passed as a parameter to the display mbox.Custom recommendation key
Recommendations can be based on the value of a custom profile attribute. For example, recommended movies can be displayed based on the movie that a visitor most recently added to the queue.
-
Select the custom profile attribute from the Recommendation Key drop-down list (for example, “Last Show Added to Watchlist”).
-
Select the Recommendation Logic (for example, “People Who Viewed This, Viewed That”).
If the custom profile attribute does not directly match a single entity ID, specify how Recommendations matches an entity. For example, to display the top-selling items of the favorite brand of a visitor:
-
Select the custom profile attribute from the Recommendation Key drop-down list (for example, “Favorite Brand”).
-
Select the Recommendation Logic to use with this key (for example, “Top Sellers”).
The Group By Unique Value Of option displays.
-
Select the entity attribute that matches the chosen key. In this case “Favorite Brand” matches
entity.brand.Recommendations now produces a “Top Sellers” list for each brand and shows the visitor the appropriate “Top Sellers” list based on the value stored in the visitor’s Favorite Brand profile attribute.
Site Affinity site-affinity
Recommends items based on the certainty of a relationship between items. This criteria can be configured to set how much data is required before a recommendation is displayed, using the Inclusion Rules slider. For example, when very strong is selected, the products with the strongest certainty of a match are recommended.
For example, if a very strong affinity is set and the design includes five items, three of which meet the strength of connection threshold, the two items that do not meet the minimum strength requirements are not displayed in the recommendations and are replaced by the defined backup items. The items with the strongest affinity display first.
As another example, an online retailer can recommend items in subsequent visits that a visitor has shown interest in during past sessions. Activity for each visitor’s session is captured to calculate an affinity based on a recency and frequency model. As the visitor returns to the site, site affinity is used to display recommendations based on past actions on the site.
A weak site affinity might give the best results for customers with diverse product collections and diverse site behaviors.
This logic can be used with the following recommendation keys: Current Item, Last Purchased Item, Last Viewed Item, Most Viewed Item.