Android app analytics in Kotlin, with revenue
One Kotlin file, no dependencies. Screens can count themselves, and campaign links count as the app's source through the Play install referrer.
What Sumly reads
- Screens, every Activity on its own or named by you
- Events with properties
- The Play install referrer, for campaigns
- App version, device and country
Good to know
- Needs only the INTERNET permission.
Add it to your app
One file, no dependencies. Copy Sumly.kt into your app module.
// Application.onCreate; autoScreens counts every Activity as a screen
Sumly.init(this, siteKey = "sl_…", autoScreens = true)
// Compose or fragments: name the screens yourself
Sumly.screen("Home")
Sumly.track("signup", mapOf("plan" to "pro"))
Sumly.identify(id = user.id, email = user.email, name = user.name)
// Campaign links: the Play install referrer becomes the app's source
Sumly.setInstallReferrer(referrerDetails.installReferrer)
Trace each payment to its visit
Pass Sumly.visitorId to RevenueCat or Stripe as sumly_visitor_id. How attribution works.
Questions
What goes in Data safety?
App interactions, approximate location and device or other ids, plus user ids if you call identify. Nothing shared or used for advertising.
Other integrations
Try it with your own projects
Sumly opens to a few founders at a time. Leave your address and what you would connect; we write when your place is ready.
Or look around first: open the live demo.