我正在构建处理跟踪的网络分析工具click events and mouse movements
,为此,我不想将数据发送到服务器mouse move
,click
而是我计划在本地保存并在会话超时或同时将数据发送到服务器关闭浏览器或选项卡(关闭网站)。
注意:大量数据要存储在本地。
我知道一些在本地存储数据的可能方法。
1.LocalStorage:
Drawbacks: Domain Specific so i can't rely on this.
2.Cookie
Drawbacks: 1.Analytics fails if cookie is disabled
2.Not possible to store large amount of data
(scenario: Every mouse movement
co-ordinates should be captured)
我有两个问题:
1.在本地存储数据是否是好的做法(特别是使用网络分析)?
2.是否有其他可能的方式在large amount
本地存储(不能假设)数据?