• Returns {
        getAnalyticsProvider: (() => IAnalyticsProvider);
        setAnalyticsProvider: ((provider) => void);
        trackEvent: ((event, trackObj) => void);
    }

    • getAnalyticsProvider: (() => IAnalyticsProvider)
    • setAnalyticsProvider: ((provider) => void)
        • (provider): void
        • Parameters

          • provider: IAnalyticsProvider

            is the instance of your analytics provider. It should have a track function that takes two parameters - event name and event object.

          Returns void

          Description

          Set your own Analytics Provider

          Example

          setAnalyticsProvider(providerInstance)
          
    • trackEvent: ((event, trackObj) => void)
        • (event, trackObj): void
        • Parameters

          • event: string
          • trackObj: unknown

          Returns void

Generated using TypeDoc