Regulatory requirements
In most regions (including the US, EU, and Canada), sponsored products must have a visual badge (such as “Sponsored”) on each injected product. For that reason, the code for each strategy adds asponsored: true attribute to each “sponsored product” result.
Under regulations like the EU Platform to Business, you may also need to disclose how paid placements influence your search ranking.
Effect on analytics and events
Algolia click and conversion tracking can capture interactions with sponsored products but only under specific conditions:- The sponsored products must exist in an Algolia index (not just the RMP).
- Send the
objectIDfor each sponsored product with each click or conversion events.
- Algolia Insights. Algolia can’t tell if a click or conversion event applied to a sponsored or a regular product.
- Analytics. You can’t separate click-through (CTR) or conversion rates (CVR) for sponsored and regular products. CTR is a combination of the sponsored and regular product CTR. A combined CVR is similarly calculated. Click position accuracy is also reduced since the recorded position no longer matches the physical position.
- Dynamic Re-Ranking. The boosting of sponsored product placements distorts Dynamic Re-Ranking’s learning process.
UI considerations
Injecting sponsored products into search results affects how users interact with the interface, its effects on pagination and how to display results with InstantSearch.Pagination
Injecting sponsored items affects the number of items per page. For example, if Algolia returns 48 items and you inject 2 sponsored ones, the user sees 50. This can push some regular results to the next page. You can accept these overflows or change thehitsPerPage value.
Display with InstantSearch
If your frontend uses InstantSearch, you should proxy all search requests through your backend (for the merging and injection).Ensure favorable ranking for sponsored items
Sponsored product placements should only improve visibility, not reduce it. For example, if a Nike shoe ranks third as a regular result and is also a sponsored product, don’t move it to a lower sponsored position, like 8 or 12. To ensure this happens, update your strategy’sinjectSponsoredProducts function.
For example:
JavaScript
Complementary sponsored products
RMPs such as Criteo sometimes return complementary sponsored products, which, while not strictly relevant, can be beneficial. For example, the query “running shoes” could also display contextually relevant sponsored products like GPS watches or performance socks. However, in more trust-sensitive domains like healthcare, this can be problematic. For example, if a user searches for “headache medication” and sees sponsored products for muscle pain relief, it can undermine their trust. To ensure sponsored products are contextually appropriate, before injecting sponsored products into results, compare their categories to those in the regular results. Add a category matching check to your strategy’sinjectSponsoredProducts function.
You can use strict or flexible matching:
- Strict matching. The sponsored product must belong to the same category (for example “men’s running shoes”).
- Flexible matching. The sponsored product can share a broader parent category (for example “men’s shoes”).