如何处理用户交互并为我的应用进行有意义的分析?
我有一个生产力应用程序,我目前正在处理该应用程序,该应用需要一个用户分析面板,该面板记录了他们研究了多少时间,包括在应用程序导航上花费了多少时间,计时器运行时花费了多少时间,花费了多少时间当计时器被暂停等等时...
我已经在React Native中构建了该应用程序,并设置了用Python编写的用于后端处理的服务器。我当前的模型是,每个用户互动都登录到数组中,例如
[{“ data”:{“ screet”:“ settings”,“ type”:“ 6”},“ date”:1650558805913} ,{“ data”:{“屏幕”:“ home”,“ type”:“ 6“”},“ date”:1650558808312},{“ data”:{“ screet”:“ space”:“ space Repetition”,“ type”,“ type”: “ 6”},“ date”:1650558809615}]
其中类型对应于事件的类型,日期是时间戳。现在,我计划将这些数据发送到后端。后端将循环数组,并且每次到达特定定义元素时,例如导航到特定的屏幕,它将创建与该屏幕相对应的对象。在对象创建后产生的所有元素将被处理并登录到该对象,直到到达数组中的另一个预定义元素为止。
这是我发现的一种非常基本的方法,并且远不及我想要的那样可扩展。
I have a productivity app that I'm currently working on which requires a user analytics panel that logs how much time they've studied, including how much time spent on app navigation, how much time spent while timer is running, how much time spent while timer is paused etc...
I've built the app in react native and set up servers written in python for backend processing. My current model is that every user interaction is logged into an array, for example,
[{"data": {"screen": "Settings", "type": "6"}, "date": 1650558805913}, {"data": {"screen": "Home", "type": "6"}, "date": 1650558808312}, {"data": {"screen": "Spaced Repetition", "type": "6"}, "date": 1650558809615}]
where type corresponds to the type of event and date is the timestamp. Right now, I plan on sending this data to the backend. The backend will loop the array and everytime it reaches a specific defined element, such as navigating to a specific screen, it will create an object that corresponds to that screen. All the elements that come after the creation of the object will be processed and logged accordingly into that object until reaching another predefined element in the array.
This, I've found out is a very rudimentary way of doing it and is nowhere near as scalable as I want it to be.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论