ClickAnalyticsActions (Product Recommendation Engine)
ClickAnalyticsActions (Product Recommendation Engine)
|
|
Note
This component was introduced in version |
The click analytics action creators.
Deprecated. The product-recommendation sub-package is deprecated. Use the commerce sub-package instead.
See Dispatch Actions.
Loader Function
loadClickAnalyticsActions
Returns possible click analytics action creators.
Deprecated. The product-recommendation sub-package is deprecated. Use the commerce sub-package instead.
Parameters
-
engine:
ProductRecommendationEngineThe headless engine.
Returns ClickAnalyticsActionCreators: The click analytics action creators.
Deprecated. The product-recommendation sub-package is deprecated. Use the commerce sub-package instead.
ClickAnalyticsActionCreators
logProductRecommendationOpen
The event to log when a recommendation is selected.
Deprecated. The product-recommendation sub-package is deprecated. Use the commerce sub-package instead.
Parameters
-
productRecommendation:
ProductRecommendationThe selected recommendation.
Returns ProductRecommendationAction: A dispatchable action.
Related types
ProductRecommendation
Properties
-
additionalFields:
Record<string, unknown>An object containing the requested additional fields for the product.
-
childResults:
ProductRecommendation[]A list of child product recommendations in a product grouping context.
-
clickUri:
stringA direct link to the product in URL format.
-
documentUri:
stringThis parameter is no longer used by the Coveo Usage Analytics service.
-
documentUriHash:
stringDocument UriHash in the index.
Note: This parameter is deprecated. Use the
permanentidto identify items in the index. -
permanentid:
stringThe SKU of the product.
-
totalNumberOfChildResults:
numberThe total number of items in the group.
-
ec_brand?:
stringThe brand of the product.
From the
ec_brandfield. -
ec_category?:
stringThe category of the product (for example,
"Electronics","Electronics|Televisions", or"Electronics|Televisions|4K Televisions").From the
ec_categoryfield. -
ec_images?:
string[]Additional product images in URL format.
From the
ec_imagesfield. -
ec_in_stock?:
booleanThe availability of the product (that is, whether it’s in stock).
From the
ec_in_stockfield. -
ec_item_group_id?:
stringThe id used for Product Grouping.
From the
ec_item_group_idfield. -
ec_name?:
stringThe name of the product.
From the
ec_namefield. -
ec_price?:
numberThe base price of the product or variant.
From the
ec_pricefield. -
ec_promo_price?:
numberThe promotional price of the product or variant.
From the
ec_promo_pricefield. -
ec_rating?:
numberA rating system. Ratings range from 0-10.
From the
ec_ratingfield. -
ec_shortdesc?:
stringA short description of the product.
From the
ec_shortdescfield. -
ec_thumbnails?:
string[]Product images in URL format.
From the
ec_thumbnailsfield.