Refactor analytics services to support multiple providers
The analytics manager has been significantly refactored to allow the use of multiple providers simultaneously. The API has been adjusted, replacing the single active service with a new Map called activeServices, to hold the active analytics services. Additionally, several methods have been modified to return promises rather than void. The 'defaultProvider' property has been removed, as it no longer fits into the system architecture.
This commit is contained in:
@@ -3,7 +3,6 @@ import { NullAnalyticsService } from './null-analytics-service';
|
||||
import type { AnalyticsManager } from './types';
|
||||
|
||||
export const analytics: AnalyticsManager = createAnalyticsManager({
|
||||
defaultProvider: 'null',
|
||||
providers: {
|
||||
null: () => NullAnalyticsService,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user