Skip to content

Instantly share code, notes, and snippets.

@ronfe
Created December 14, 2015 13:15
Show Gist options
  • Save ronfe/b0aa33de95775ddbfc74 to your computer and use it in GitHub Desktop.
Save ronfe/b0aa33de95775ddbfc74 to your computer and use it in GitHub Desktop.
var deviceAttr = {
device: {{deviceID}},
activateDate: ISODate,
recentSession: ISODate,
platform: [PC, Android, ios],
users: [{{userID}}]
}
var userAttr = {
user: {{userId}},
recentPCSession: ISODate,
recentMobileSession: ISODate
}
// 45min consecutive events
var eventFlow = {
device: {{deviceId}},
user: {{userId}}.
startTime: ISODate,
endTime: ISODate,
eventFlow: ["openTopic", "startLearning", "openVideo", "quitVideo", "userLogout"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment