Initialize the Personalization Module
To use the Personalization module, you must initialize it at the beginning of your sitemap. Initialize the module using the SalesforceInteractions.Personalization.Config.initialize
method, as shown in this example.
Since the module initialization must occur before the sitemap is initialized, you must call the SalesforceInteractions.Personalization.Config.initialize
method before you call SalesforceInteractions.init
.
The SalesforceInteractions.Personalization.Config.initialize
method accepts the objects described in this table.
Object | Type | Description |
---|---|---|
additionalTransformers | Array | Optional. Define additional transformers that enable advanced content modifications before rendering. |
personalizationExperienceConfigs | Array | Optional. Specify personalization experiences to be included in the configuration. |
customFlickerDefenseConfig | Array | Optional. Configure flicker defense mechanisms used to prevent content flicker when retrieving and rendering personalized content. |
customEngagementConfig | Array | Optional. Define custom destinations to send engagement data. |