Personalized Offers Object

A Personalized Offers instance can be used to dynamically display eligible offers to the user.

Create a personalizedOffers object using the chargebee object to use the functions listed below.

Tutorials

For a step-by-step integration, see the Personalized Offers tutorials.

Initialize personalized offers

init()

Initializes the personalized offers experience and displays eligible offers to the user.

Chargebee detects the pages visited by the user and dynamically displays eligible offers that have been pre-configured in the Retention dashboard.

Example

personalizedOffers.init({
  account: {
    customerId: "16CRibUdE6pV6HoU"
  },
  externalUserId: "jane_doe",
  roles: ['sales-manager'],
  locale: "fr-FR",
  custom: {
    viewCount: 6
  }
});

Parameters

account
required, Object
subscription
required if multiple brands are configured in the Growth dashboard., Object
firstName
String
lastName
String
fullName
String
email
String
externalUserId
String
roles
Array<String>
locale
String
custom
Object

Returns

None.