Data Integration
Mandatory Events
General Apps
15min
the following events are helpful for any kind of business domain sign up when the user signed up properties name type required description method string yes the method of signing up for example, it can be google , email , or facebook code example const props = { "method" "email" }; cooeesdk sendevent("sign up", props);const props = { method 'method' }; cooeesdk sendevent('sign up', props);map\<string, object> props = new hashmap<>(); props put("method", "method"); cooeesdk sendevent("sign up", props);val props = mapof( "method" to "method" ) cooeesdk sendevent("sign up", props)nsdictionary props = @{ @"method" @"method" }; @try { \[cooeesdk sendeventwitheventname @"sign up" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "method" "method" ] do { try cooeesdk sendevent(eventname "sign up", eventproperties props) } catch { print("\\(error)") } dart var props = { "method" "method" }; cooeesdk sendevent("sign up", props); log in when the user log in into your app using their credential (this is not app open) properties name type required description method string yes the method of signing in for example, it can be google , email , or facebook code example const props = { "method" "method" }; cooeesdk sendevent("log in", props);const props = { method 'method' }; cooeesdk sendevent('log in', props);map\<string, object> props = new hashmap<>(); props put("method", "method"); cooeesdk sendevent("log in", props);val props = mapof( "method" to "method" ) cooeesdk sendevent("log in", props)nsdictionary props = @{ @"method" @"method" }; @try { \[cooeesdk sendeventwitheventname @"log in" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "method" "method" ] do { try cooeesdk sendevent(eventname "log in", eventproperties props) } catch { print("\\(error)") } dart var props = { "method" "method" }; cooeesdk sendevent("log in", props); search when a user searches your content properties name type required description query string yes what user searched category category docid\ xyfflvav fzf01nmc2zn no which category user search tag tag docid\ xyfflvav fzf01nmc2zn no which tag user search code example the following example includes optional properties too const props = { "query" "what user search", "category" { "id" "1234", "name" "category name" }, "tag" { "id" "1234", "name" "tag name" } }; cooeesdk sendevent("search", props);const props = { 'query' 'what user search', 'category' { 'id' '1234', "name" 'category name' }, 'tag' { 'id' '1234', 'name' 'tag name' } }; cooeesdk sendevent("search", props);map\<string, object> props = new hashmap<>(); props put("query", "what user search"); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); props put("category", category); map\<string, object> tag = new hashmap<>(); tag put("id", "1234"); tag put("name", "tag name"); props put("tag", tag); cooeesdk sendevent("search", props);val props = mapof( "query" to "what user search", "category" to mapof( "id" to "1234", "name" to "category name" ), "tag" to mapof( "id" to "1234", "name" to "tag name" ) ) cooeesdk sendevent("search", props)nsdictionary props = @{ @"query" @"what user search", @"category" @{ @"id" @"1234", @"name" @"category name" }, @"tag" @{ @"id" @"1234", @"name" @"tag name" } }; @try { \[cooeesdk sendeventwitheventname @"search" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "query" "what user search", "category" \[ "id" "1234", "name" "category name" ], "tag" \[ "id" "1234", "name" "tag name" ] ] do { try cooeesdk sendevent(eventname "search", eventproperties props) } catch { print("\\(error)") } dart var props = { "query" "what user search", "category" { "id" "1234", "name" "category name" }, "tag" { "id" "1234", "name" "tag name" } }; cooeesdk sendevent("search", props); tutorial begin when a user begins an onboarding tutorial code example cooeesdk sendevent("tutorial begin");cooeesdk sendevent("tutorial begin");cooeesdk sendevent("tutorial begin");cooeesdk sendevent("tutorial begin")@try { \[cooeesdk sendeventwitheventname @"tutorial begin" eventproperties\ nil error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }cooeesdk sendevent("tutorial begin"); dart cooeesdk sendevent("tutorial begin"); tutorial complete when a user completes the tutorial code example cooeesdk sendevent("tutorial complete");cooeesdk sendevent("tutorial complete");cooeesdk sendevent("tutorial complete");cooeesdk sendevent("tutorial complete")@try { \[cooeesdk sendeventwitheventname @"tutorial complete" eventproperties\ nil error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }do { try cooeesdk sendevent(eventname "tutorial complete") } catch { print("\\(error)") } dart cooeesdk sendevent("tutorial complete"); share app when a user shares your app code example cooeesdk sendevent("share app");cooeesdk sendevent("share app");cooeesdk sendevent("share app");cooeesdk sendevent("share app")@try { \[cooeesdk sendeventwitheventname @"share app" eventproperties\ nil error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }do { try cooeesdk sendevent(eventname "share app") } catch { print("\\(error)") } dart cooeesdk sendevent("share app"); view category when a user selects any kind of category within your app properties name type required description category category docid\ xyfflvav fzf01nmc2zn yes the category that the user selected code example const props = { "category" { "id" "1234", "name" "category name" } }; cooeesdk sendevent("view category", props);const props = { 'category' { 'id' '1234', "name" 'category name' } }; cooeesdk sendevent("view category", props);map\<string, object> props = new hashmap<>(); map\<string, object> category = new hashmap<>(); category put("id", "1234"); category put("name", "category name"); props put("category", category); cooeesdk sendevent("view category", props);val props = mapof( "category" to mapof( "id" to "1234", "name" to "category name" ) ) cooeesdk sendevent("view category", props)nsdictionary props = @{ @"category" @{ @"id" @"1234", @"name" @"category name" } }; @try { \[cooeesdk sendeventwitheventname @"view category" eventproperties\ props error\ nil]; } @catch (nsexception exception) { nslog(@"%@", exception reason); } @finally { nslog(@"finally condition"); }let props = \[ "category" \[ "id" "1234", "name" "category name" ] ] do { try cooeesdk sendevent(eventname "view category", eventproperties props) } catch { print("\\(error)") } dart var props = { "category" { "id" "1234", "name" "category name" } }; cooeesdk sendevent("view category", props);