I am using Segment.io JAVA SDK to collect the events from my application and using Keen.io to represent the same visually. I have a hierarchical event structure as follows,
- Company
- Department
- User (login, logout)
- Book (open, close)
- Page (view, next, previous)
- Vehicle (start, drive, stop)
- Book (open, close)
- User (login, logout)
- Department
So, when collecting the data in segment, should we send all the properties in all the events to do analysis later (in keen.io or any other tools) as follows,
Identify user, and track
login: company-id, dept-id, timestamp
book-open: company-id, dept-id, timestamp, book-id, book-name
page-view: company-id, dept-id, timestamp, book-id, book-name, page-id
vehicle-start: company-id, dept-id, timestamp, vehicle-id, vehicle-name
or
Should we just identify the user, and track the events by just sending the relevant properties
login: company-id, dept-id, timestamp
book-open: timestamp, book-id, book-name
page-view: timestamp, page-id
vehicle-start: timestamp, vehicle-id, vehicle-name
In the 2nd case, how can we identify that the "page-view" event is for which book ?
Any help would be greatly appreciated.
Thanks