One-to-one + Best-sellers Widget
Add this where you want the widget to appear:
<!-- one-to-one + best-sellers engine -->
<pleasepoint-recommendation
account-id="my_account_id"
num-recommendations="4"
cols="2"
show-slider <!-- optional, default false -->
engine="" <!-- remove to use best-sellers engine only -->
best-sellers-engine=""
business-rule=""
business-rule-params='{"param1": ["value1", "value2"]}' <!-- optional -->
secondary-business-rule="" <!-- optional for best-sellers engine -->
secondary-business-rule-params='{"param1": ["value1", "value2"]}' <!-- idem -->
user-reference-id="" <!-- OR --> email=""
session-id="" <!-- optional -->
event-source-page="" <!-- optional -->
event-source-block="" <!-- optional -->
></pleasepoint-recommendation>
Or use the following Javascript code to create a widget programmatically:
// one-to-one + best-sellers engine
const widget = pleasepointWidget.create('recommendation', {
accountId: 'my_account_id',
numRecommendations: 4,
cols: 2,
showSlider: true, // optional, default false
engine: '', // remove to use best-sellers engine only
bestSellersEngine: '',
businessRule: '',
businessRuleParams: {"param1": ["value1", "value2"]}, // optional
secondaryBusinessRule: '', // optional for best-sellers engine
secondaryBusinessRuleParams: {"param1": ["value1", "value2"]}, // idem
userReferenceId: '', /* OR */ email: '',
sessionId: '', // optional
eventSourcePage: '', // optional
eventSourceBlock: '', // optional
});