Detailed view log
You don't need the detailed view information for View Count to function properly. This information is generally considered extraneous, but there may be some use-cases where it is handy to have.
# Enabling Detailed Logging
To enable the detailed view log:
- Go to the plugin's settings page.
- Check the box to "Keep a detailed record of all views".
Please note, at least some level of plugin development experience is required to pull this off.
You can communicate with View Count via PHP (ie: a custom plugin or module). Simply call the following Record:
use doublesecretagency\viewcount\records\ViewLog; $detailedLog = ViewLog::findAll([ 'elementId' => $elementId, 'viewKey' => $key, ]);
The following data will be available:
| ||Primary key of view record.|
| ||Element ID of view target.|
| ||Optional key to allow multiple viewing of the same element.|
| ||User ID of viewer (or NULL if viewed anonymously).|
| ||IP address of viewer.|
| ||User agent of viewer's device.|
| ||Timestamp of when vote was cast.|