11<h3 align =" center " >User Behaviour Tracking</h3 >
2- <h4 align =" center " >4.0 KB</h4 >
2+ <h4 align =" center " >2.7 KB</h4 >
33
44<div align =" center " >
55
2020- [ About] ( #about )
2121- [ Installation] ( #install )
2222- [ Configuration] ( #config )
23+ - [ Methods] ( #methods )
2324- [ Tracking] ( #tracking )
2425- [ Results] ( #results )
2526
@@ -55,6 +56,7 @@ userBehaviour.config({.....});
5556If no configuration was passes the libray will use the default configuration:
5657``` javascript
5758{
59+ userInfo: true ,
5860 clicks: true ,
5961 mouseMovement: true ,
6062 mouseMovementInterval: 1 ,
@@ -67,18 +69,30 @@ If no configuration was passes the libray will use the default configuration:
6769 },
6870}
6971```
70- | Config Key | Description | Type | Default | | |
71- | -----------------------| ----------------------------------------------------------------------------------------------------| --------------------| ---------| ---| ---|
72- | clicks | track mouse clicks | bool | true | | |
73- | mouseMovement | track mouse movement | bool | true | | |
74- | mouseMovementInterval | time between tracking mouse movements | int (seconds) | 1 | | |
75- | mouseScroll | track mouse scroll | bool | true | | |
76- | timeCount | track time | bool | true | | |
77- | clearAfterProcess | clear results object after processing the data | bool | true | | |
78- | processTime | time between processing the data automatically <br >(false will enable manual only data processing) | int/bool (seconds) | 15 | | |
79- | processData | function that processes the results object | function | ... | | |
80-
81-
72+ | Config Key | Description | Type | Default |
73+ | -----------------------| ----------------------------------------------------------------------------------------------------| --------------------| ---------|
74+ | userInfo | record browser/device details | bool | true |
75+ | clicks | track mouse clicks | bool | true |
76+ | mouseMovement | track mouse movement | bool | true |
77+ | mouseMovementInterval | time between tracking mouse movements | int (seconds) | 1 |
78+ | mouseScroll | track mouse scroll | bool | true |
79+ | timeCount | track time | bool | true |
80+ | clearAfterProcess | clear results object after processing the data | bool | true |
81+ | processTime | time between processing the data automatically <br >(false will enable manual only data processing) | int/bool (seconds) | 15 |
82+ | processData | function that processes the results object | function | ... |
83+
84+ ## 📚 Methods <a name =" methods " ></a >
85+
86+ This is a list of all available methods that can be called:
87+
88+ | Method | Description | Example |
89+ | ----------------| ------------------------------------------| -------------------------------------|
90+ | showConfig | returns current config | userBehaviour.showConfig() |
91+ | config | sets the configuration | userBehaviour.config(config_object) |
92+ | start | starts tracking | userBehaviour.start() |
93+ | stop | stops tracking | userBehaviour.stop() |
94+ | showResult | returns current result | userBehaviour.showResult() |
95+ | processResults | calls the process function set in config | userBehaviour.processResults() |
8296
8397## 🚀 Tracking <a name = " tracking " ></a >
8498
0 commit comments