mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-10-03 09:04:32 -04:00
feat(analytics): report key user interactions as named RUM actions (#6654)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b4cc36043d
commit
9fa9f1e341
16 files changed
+74
-3
No files matched your search
@@ -275,6 +275,11 @@ class GooglePlatformAnalytics(private val context: Context, private val analytic
|
||||
GlobalRumMonitor.get().addAction(RumActionType.CUSTOM, "connect", attributes)
|
||||
}
|
||||
|
||||
override fun trackAction(name: String, attributes: Map<String, Any>) {
|
||||
if (!Datadog.isInitialized() || !GlobalRumMonitor.isRegistered()) return
|
||||
GlobalRumMonitor.get().addAction(RumActionType.CUSTOM, name, attributes)
|
||||
}
|
||||
|
||||
override fun startScreenView(key: String, name: String) {
|
||||
if (!Datadog.isInitialized() || !GlobalRumMonitor.isRegistered()) return
|
||||
GlobalRumMonitor.get().startView(key = key, name = name)
|
||||
|
||||
Reference in new issue
Block a user