Skip to content

raccoongang/openedx-app-firebase-analytics-android

Repository files navigation

OpenEdX Analytics Integration

This project provides an easy way to manage and initialize analytics services for OpenEdX applications using PluginManager. With PluginManager, you can dynamically add and configure analytics services without modifying AnalyticsManager.

Adding OEXFirebaseAnalytics

To include OEXFirebaseAnalytics in your project, follow these steps:

Step 1: Add Dependency

First, include the OEXFirebaseAnalytics library in your project. Open your project's build.gradle file for the app module and add the following dependency:

implementation("org.openedx:firebase-analytics:1.0")

Step 2: Initialize in OpenEdXApp

Next, update the initPlugins function in your OpenEdXApp class to include OEXFirebaseAnalytics. Here’s how to do it:

private fun initPlugins() {
    pluginManager.addPlugin(OEXFirebaseAnalytics(context = this))
}

Now, PluginManager will handle the integration of OEXFirebaseAnalytics with AnalyticsManager. This ensures that AnalyticsManager remains decoupled from specific analytics implementations, making your app’s analytics easily configurable and extensible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages