
Please use the following example for the different use case:
<script src=”resources/reco_product_carousel.js”></script>
<script src=”resources/reco_offer_banner.js”></script>
<script src=”resources/reco_offer_carousel.js”></script>
Parameter | Required | Data Type | Description |
carouselId | Yes | String | The ID of the div where products recommendations will be inserted |
orientation | No | String | The carousel orientation. The carousel can be either <vertical> or <horizontal>. By default,the orientation is horizontal. |
fontColor | No | Hexadecimal <#XXXXXX> | The font color of the recommendation text expressed as an RGB hexadecimal format <#XXXXXX>. By default, the font color is #000000 (black). |
userType | No | String | The type of ID used for the UserId. |
userId | No | String | The user ID, depending on the specified user type. This parameter is ignored if the Secure User ID checkbox is checked in the custom Recommendation Scenarios app. |
leadingItemIds | Only for association algorithms. | String | The comma-separated product IDs to be passed to the recommendation scenario. |
leadingItemType | Only when leading item IDs are provided. | String | The product type (origin) as defined in SAP Marketing Cloud. |
basketItemIds | No | String | The comma-separated product IDs which are already in the cart. |
basketItemType | Only when basket Item IDs are provided. | String | The product type (origin) as defined in SAP Marketing Cloud. |
context | No | String | The context parameters as configured in SAP Marketing Cloud. For example, interaction type, interaction contact type, or any of the other algorithm data source pre-filters (standard delivery or custom). For more information, see Algorithm Data Source Prefilters and Recommendation Data Source Prefilters. |
server | Yes | String | The SAP Cloud Platform application URL. |
language | Yes | String | The language to use for the product master data retrieval. For example, “EN”, “DE”, etc... |
l54 | Yes | String | Encrypted key information (part of the security string). |
h | No | String | User SALT to be supplied when Secure User ID checkbox is checked in Recommendation Scenarios app. |
k13 | Yes | Integer | Secret key version (part of the security string). |
v | Yes | Integer | Version of the validation (part of the security string). |
k14 | Yes | String | Generated HMAC string from the key information (part of the security string). |
Parameter | Required | Data Type | Description |
RecoOfferId | Yes | String | The ID of the div where products recommendations will be inserted |
userType | No | String | The type of ID used for the UserId. |
userId | No | String | The user ID, depending on the specified user type. This parameter is ignored if the Secure User ID checkbox is checked in the custom Recommendation Scenarios app. |
leadingItemIds | Only for association algorithms. | String | The comma-separated product IDs to be passed to the recommendation scenario. |
leadingItemType | Only when leading item IDs are provided. | String | The product type (origin) as defined in SAP Marketing Cloud. |
basketItemIds | No | String | The comma-separated product IDs which are already in the cart. |
basketItemType | Only when basket Item IDs are provided. | String | The product type (origin) as defined in SAP Marketing Cloud. |
context | No | String | The context parameters as configured in SAP Marketing Cloud, e.g.: Interaction Type, Interaction Contact Type. |
language | No | String | The language to use for the Offer Content data retrieval. For example, “EN”, “DE”, etc... |
position | No | String | The Position Type of the offer content to recommend. |
communicationMedium | No | String | The Communication Medium of the Offer Content to recommend. |
offerContentType | No | String | The Offer Content Type to recommend. |
withCoupon | No | String | ‘X’ – Only Offer with Coupon ‘’ – Only Offer without Coupon |
marketingArea | No | String | The Marketing Area to recommend. |
server | Yes | String | The SAP Cloud Platform application URL. |
l54 | Yes | String | Encrypted key information (part of the security string). |
h | No | String | User SALT to be supplied when Secure User ID checkbox is checked in Recommendation Scenarios app. |
k13 | Yes | Integer | Secret key version (part of the security string). |
v | Yes | Integer | Version of the validation (part of the security string). |
k14 | Yes | String | Generated HMAC string from the key information (part of the security string). |
Parameter | Required | Data Type | Description |
offerCarouselShowNumOffers | Yes | Integer | Number of offers to show in the carousel (Not applicable for banners) |
offerCarouselBoxColor | No | Hexadecimal <#XXXXXX> | The color of the recommendation box expressed as an RGB hexadecimal format <#XXXXXX>. (Not applicable for banners) |
fontColor | No | Hexadecimal <#XXXXXX> | The font color of the recommendation text expressed as an RGB hexadecimal format <#XXXXXX>. By default, the font color is #000000 (black). (Not applicable for banners) |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
4 | |
4 | |
3 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |