Variable: analyticsEventTarget

const analyticsEventTarget: EventTarget

Use this global event target to listen for failure events during SDK initialization or as the component is rendering. For example, if the intializeAnalyticsSdk function fails due to an invalid orgUrl parameter value.

Example 

1import {analyticsEventTarget, EventName} from '@salesforce/analytics-embedding-sdk';
2
3//Listening to global ERROR event, such as SDK or component initialization failures.
4analyticsEventTarget.addEventListener(EventName.ERROR, (errorEvent) => {		
5	//Error details (such as error code and message) are available in the event object
6	console.log("Received a global error event", errorEvent)				
7});

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!