Skip to main content

Custom Events

Send any event that matters to your product - a button tap, a feature used, a form submitted.

UserCom.getInstance().sendEvent("subscription_started", mapOf(
"plan" to "pro",
"billing_cycle" to "annual",
"price" to 99
))
UserCom.getInstance().sendEvent("subscription_started", mapOf(
"plan" to "pro",
"billing_cycle" to "annual",
"price" to 99
))

To send an event without attributes:

UserCom.getInstance().sendEvent("onboarding_completed", emptyMap())

Supported attribute types​

TypeExample
String"pro"
Int42
Booleantrue
ISO 8601 date string"2024-09-28T12:51:33.137Z"