SDK Installation
Android Native
Tracking Events on Android
2min
tracking events once you integrate the sdk, cooee will automatically start tracking events you can view the collected events in system events docid\ facp3yvzawjmrp4ac5z9e apart from these, you must track mandatory events docid\ veiyktdil9dz4qflbhujb as well per your app domain which is defined in this document the event must be tracked once your screen(activity) is fully loaded the following example demonstrates a view item event void sendviewitemevent() { cooeesdk cooeesdk = cooeesdk getdefaultinstance(this); map\<string, object> props = new hashmap<>(); map\<string, object> item = new hashmap<>(); item put("id", "foo b076h19jpj"); item put("name", "adidas men's agora 1 0 multisport shoe"); map\<string, object> category = new hashmap<>(); category put("id", "15234"); category put("name", "shoes"); item put("category", category); props put("item", item); cooeesdk sendevent("view item", props) }fun sendviewitemevent() { val cooeesdk = cooeesdk getdefaultinstance(this) val props = mapof( "item" to mapof( "id" to "foo b076h19jpj", "name" to "adidas men's agora 1 0 multisport shoe", "category" to mapof( "id" to "15234", "name" to "shoes" ), ) ) cooeesdk sendevent("view item", props) } important! do not add (dot) in event property key string do not start the event name with ce