
TrackFlow: A Kotlin Multiplatform Analytics Router for Android and iOS
Analytics is one of those things every app needs, but very few teams enjoy implementing . A typical mobile app might send events to multiple analytics providers -- Firebase Analytics, Mixpanel, Amplitude, Adobe Analytics, and Adobe Edge / CJA. Each provider comes with its own SDK and API, which often leads to duplicated analytics code spread throughout the app. firebase . logEvent ( "purchase" , bundle ) mixpanel . track ( "purchase" , mapOf ( "value" to 19.99 ) ) amplitude . track ( "purchase" , mapOf ( "value" to 19.99 ) ) This approach works at first, but over time it becomes painful to maintain: Scattered logic -- analytics calls spread across the codebase Inconsistent naming -- event names differ between providers Platform drift -- Android and iOS implementations diverge Rigid scaling -- adding a new provider means changes everywhere The Idea: An Analytics Router Instead of calling analytics SDKs directly, the app sends events into a single analytics pipeline that routes them to a
Continue reading on Dev.to
Opens in a new tab



