:rocket: Introducing `KAnalytics`: A Kotlin Multip...
# feed
e
🚀 Introducing `KAnalytics`: A Kotlin Multiplatform analytics library that makes cross-platform event tracking a breeze! Key features: Send events to multiple analytics services simultaneously 🔍 Debug events with KAnalytics Viewer - useful for QA teams to visually inspect & verify the events being sent with ease. 🛠️ Intercept and modify events before they reach your analytics service 📱 Support for both Android and iOS for now
KAnalytics-viewer
is a companion app to the core analytics library
KAnalaytics
. It's similar to the likes of: • LeakCanary • Chucker • Inspektify • Inspektor • KtorMonitor • etc Check out the GitHub repository https://github.com/addhen/kanalytics to get started, and let me know what you think!
🚀 3
f
First of all, great work! I wanted to ask: 1. Is there any plan to support user properties? 2. Can I send deeply nested events? like firebase purchase event that contains a list of items?
e
Thank you.
1. Is there any plan to support user properties?
I haven't thought of adding support for that as that may seem like something specific to the tracker but yes I'll look into how to generalize and support it. Roughly thinking about it, it could be something along the lines of
KAnalyticsEvent#addUserProperties
then the specific tracker implementation of
KTracker
has to implement the logic to consume it. Thanks for mentioning it.
2. Can I send deeply nested events? like firebase purchase event that contains a list of items?
Yes, you should be able to however since it's a firebase thing you will have to convert the
KAnalyticsEvent#properities
to a firebase bundle and consume it with the firebase implementation of
KTracker
-- like an extension function on it. Let me know if this is not clear and I'll attempt again.