Flutter Recommendations

Get Recommendations

You can personalize the user experience and increase sales by adding recommendations of your goods and services to your app. The passed recommendations are based on customer activity data and include various options such as out of stock items, cross-selling, upselling, potential purchases, personal recommendations, and more.

final recommendations = await Reteno.getRecommendations(
  recomenedationVariantId: 'r1107v1482',
  productIds: ['240-LV09', '24-WG080'],
  categoryId: 'Default Category/Training/Video Download',
  filters: [RetenoRecomendationFilter(name: 'filter_name', values: ['filter_value'])],
  fields: ['productId', 'name', 'descr', 'imageUrl', 'price'],
);

Log Recommendation Events

You can track events related to showing user-specific product recommendations using this method:

final event = RetenoRecomEvent(
  eventType: RetenoRecomEventType.impression,
  dateOccurred: DateTime.now(),
  productId: 'product_id',
);
final events = RetenoRecomEvents(
  recomVariantId: 'recom_variant_id',
  events: [event],
);
await Reteno.logRecommendationsEvent(events);

Track clicks on recommended products using the following method:

final event = RetenoRecomEvent(
  eventType: RetenoRecomEventType.clicks,
  dateOccurred: DateTime.now(),
  productId: 'product_id',
);
final events = RetenoRecomEvents(
  recomVariantId: 'recom_variant_id',
  events: [event],
);
await Reteno.logRecommendationsEvent(events);