openedx / openedx-app-ios

The mobile app for iOS for the Open EdX Platform.
Apache License 2.0
19 stars 13 forks source link

Firebase and Segment integration #291

Closed rnr closed 4 months ago

rnr commented 4 months ago

This PR implements both Analytics options - Firebase+GoogleAnalytics standalone library and Segment+GoogleAnalytics. In the config we have the ANALYTICS_SOURCE parameter:

FIREBASE:
    ENABLED: true
    ANALYTICS_SOURCE: 'segment'

This parameter may have values:

Depending on this parameter, the application uses the appropriate library. For this purpose, FirebaseAnalyticsService and SegmentAnalyticsService are added. Both services are added to the DI.