This page helps you to understand the types of events and how to send events to Contlo.

Analyzing events helps in understanding how users interact with an application. The events play an essential role in decision-making. There are four types of events in the Contlo SDK:

System events

These events are fired automatically by the SDK.

  • App launched: This event is fired when the app is launched from the background or killed state.
  • App installed: This event is fired when a user installs or reinstalls the app, or clears app data, and launches it for the first time.
  • App backgrounded: This event is fired when the app is sent into the background state.
  • App updated: This event is fired when a user opens the app for the first time after updating.

Message events

These events are related to push notifications that are automatically sent to Contlo.

  • Mobile push received: This event is fired when the SDK receives the notification payload from Contlo.
  • Mobile push clicked: This event is fired when the user clicks the notification.
  • Mobile push dismissed - This event is fired when the user dismisses the notification or clicks the Clear all notifications button.

Custom events

These events are your user journey events that you would track across the user journey. You can send these custom events to Contlo using the sendEvent() method. Refer to the code below:

Contlo.sendEvent("event name")

You can send additional parameters in the sendEvent() method. Refer to the examples below:

Example 1: If you want to send custom property to the event, you can use the HashMap object as shown below:

val map = HashMap<String, String>()
map.put("eventKey", "Event data")

Contlo.sendEvent("event name", map)

Example 2: You can also send email, phoneNumber, event property and profile property to Contlo:

val eventMap = HashMap<String, String>()
map.put("eventKey", "Event data")

val profileMap = HashMap<String, String>()
map.put("profileKey", "Profile data")

Contlo.sendEvent("event name", "email", "phone", eventMap, profileMap)

Charged event

This is a special event that captures details of customer purchases, including items, categories, transaction amount, transaction ID, and information about the respective user. Recording a purchase against a user marks them as a customer in Contlo. This enables you to compare your funnel reports between customers and non-customers.


The charged event has the following properties:

event_idstringUsed to map the event.
transacation_valuestringThe total transaction amount attributed to the revenue.
variant_idstringThe corresponding variant(s) ID for which the transaction is taking place.
event_typestringType of event (Charged)
currencystringCurrency code of variant prices. Follows ISO 4217:2015 format.
transaction_idstringUnique identifier of the transaction.
emailstringEmail ID of the customer
phone numberstringPhone number of the customer.
product_idstringThe corresponding product (s) ID for which the transaction is taking place.
timeLongEpoch time in milliseconds.

Sample JSON:

   "email":"[email protected]",

Please note the following when sending a charge event:

  • Please send 0 if there is no discount/shipping price etc. and do not send null.
  • The total price is before adding the tax and discount.
  • Ensure to keep the products updated on Contlo to avoid any mismatch of product ID mapping.
  • No. of items in the arrays for product prices and quantity should be equal.