When your end user performs an “activity” for a “certain number of times” or with a “certain frequency,” it is
called a streak.
The Upshot.ai Streak module helps you to track the continuity of the activity/action performed by your end users
on the app/websites.
Streak is defined in 3 different parameters:
- Current Streak length
- Recent Streak Length
- Max Streak Length
How to fetch Streaks data
[[BrandKinesis sharedInstance] getStreaksDataWithCompletionBlock:^(NSDictionary * _Nullable
response, NSString * _Nullable errorMessage)
{
}];
BrandKinesis.sharedInstance().getStreaksData() { (response, error)
in
}
Sample Response
{
"status" : "success",
"statusCode" : 200,
"data" :
[
{
"streakType" : "length",
"displayName" : "Production
Streak",
"tags" : ["tag"],
"streakId" : "646bd7f287a53c85028b4000"
"timeZone" : "usertimezone"
"name" : "Production
Streak"
"desc" : "The Streak
collection for production"
"streakFrequency" : "onceaday"
"logo" : "https://media.goupshot.com/bk-purpletalk/5d4d3f3f4ce8f387208b4585/si/56af50e0eaea3.jpg"
,
"recentStreak" :
{
"startDate" : 1685973327,
"length" : 1,
"endDate" : 1685973327
}
,
"longestStreak" :
{
"startDate" : 1685973327,
"length" : 1,
"endDate" : 1685973327
}
,
"currentStreak" :
{
"startDate" : 1685973327,
"length" : 1,
"endDate" : 1685973327
}
}
]
}