Skip to main content
Use these methods to retrieve recommended products, search results, product interactions, product data, and recommended collections.
This module is available when subscribed to the Product Recommendation module or Product Targeting add-on.
Recommendations need correct product tracking to return meaningful results. See Kameleoon.API.Products: Tracking.

obtainRecommendedProducts

The obtainRecommendedProducts() method retrieves recommended products computed by the specified algorithm through an asynchronous server call.
This method requires correct product tracking, such as trackProductView() or trackCategoryView(), to return meaningful results.
Arguments

Parameters to control the data returned by the recommendation platform

API response The callback function receives the API response object with the following values.

obtainInstantSearchProducts

The obtainInstantSearchProducts() method retrieves personalized instant search results from Kameleoon Search through an asynchronous server call.
Arguments API response The callback function receives the API response object with the following values. In the table, [] marks an array of objects, so products[].name is the name of each product.

obtainFullSearchProducts

Use the obtainFullSearchProducts() method to retrieve full search results from the Kameleoon Search solution with filtering options.
Arguments

Parameters to filter results

API response The callback function receives the API response object with the following values. In the table, [] marks an array of objects, so products[].name is the name of each product.

obtainProductInteractions

The obtainProductInteractions() method retrieves interaction metrics for products tracked via trackProductView(), trackTransaction(), or trackAddToCart().
Arguments API response

obtainProductData

The obtainProductData() method retrieves product information for items sent via trackProductView().
Arguments API response

obtainRecommendedCollections

The obtainRecommendedCollections() method retrieves products from the specified collection.
Arguments API response Products API returns an array of objects. Each object in the products array contains the following: