Initializes Cello Referral Component in your product.Returns a promise that is resolved once the whole initialization process is finished or rejected if the boot command failed.
The solution above is designed so that you don’t have to wait for the library to finish loading before you call the command - follow it and use the window.cello object to avoid that particular race condition.
For any other commands, or when you are sure that the command is called after the library has finished loading, you can opt to use the regular command syntax:
First name of the product user.
This data is used in the personalization of the referral experience, e.g. email notifications and the personalized message to referees.
Required for select features
Product user country, if known. ISO 3166 Alpha-2 standard e.g. DE.
If the user is from an unsupported country, the Cello Referral Component will not be booted for this user and an error will be returned.
If no country is passed, Cello will still be booted.
The language, in which the Referral Component will be loaded in ISO 639-1.
Default: undefined. If undefined, we use default language set for your product.
Callback handler for user interactions within the Referral Component.
Receives two parameters: action (string) and payload (any).
Currently supports linkCopied action which provides the copied URL as payload.
First name of the product user.
This data is used in the personalization of the referral experience, e.g. email notifications and the personalized message to referees.
Required for select features