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.

ObjectTypeDescription
additionalTransformersArrayOptional. Define additional transformers that enable advanced content modifications before rendering.
personalizationExperienceConfigsArrayOptional. Specify personalization experiences to be included in the configuration.
customFlickerDefenseConfigArrayOptional. Configure flicker defense mechanisms used to prevent content flicker when retrieving and rendering personalized content.
customEngagementConfigArrayOptional. Define custom destinations to send engagement data.