# 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
))
  • Kotlin
  • Java
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

Type Example
String "pro"
Int 42
Boolean true
ISO 8601 date string "2024-09-28T12:51:33.137Z"