Function: initializeAnalyticsSdk()
initializeAnalyticsSdk(
config):Promise<BootstrapResponse>
Use this method to initialize the Analytics Embedding SDK with the provided configuration.
Calling this method clears all event data before initialization.
Successful initialization triggers a successEvent, while any failures due to configuration or authorization issues trigger an errorEvent.
• config: AnalyticsSdkConfig
The configuration to use for SDK initialization
Promise<BootstrapResponse>
A promise that resolves to the result of the initialization.
The SDK supports initializing and embedding components from multiple Salesforce orgs.
Use the orgConfigs array to configure multiple orgs:
Note: The orgUrl parameter must be a Lightning URL (e.g., https://yourorg.lightning.force.com), not the my.salesforce.com domain URL.