Reputation: 39
I want to log every visitor's behavior
How do I achieve that?
Upvotes: -1
Views: 1982
Reputation: 7647
There are readily available extensions for this I have used this extension for most of your use cases
http://www.yiiframework.com/extension/audittrail/
or the newer version is here
http://www.yiiframework.com/extension/audittrail2/
For 2. you would need to create some client side code js as well,
For 6. Writes can be captured by auditTrail, generally DB reads i don't advise capturing, as it generates a lot of data and causes significant overhead.
Upvotes: 0