The plugin allows track files downloads in specific site’s relative path by sending statistics to Google Analytics and the Local Database.
- Relative site path
It is useful to disable item without deleting the configuration.
- Use event label
Use statistics event label for that path. Doesn’t work if common statistics event label is disabled.
Type relative site’s path to monitor it’s files downloads.
Note: Choose path more precisely. Otherwise, it might degrade performance of downloading site’s elements.
- Files types
List of comma separated files extensions that only be included in monitor.
Note: There are system file types that always excluded from monitoring to prevent unstable site work: *.htaccess, *.php, *.js and *.css.
- Statistics event label
It is possible to use URL’s arguments as a statistics label. Label will be formed from a list of request’s arguments using the argument separator and the value delimiter.
Check to use it in all paths. Each path can enable it separately.
- Argument separator
Separator between arguments.
- Argument value delimiter
Separator between argument’s name and value.
So e.g. for URL ‘http://yoursite.com/page?arg1=v1&arg2=v1’ in case of ‘Argument separator’ = ‘,’ and ‘Argument value delimiter’ = ‘:’ label will be ‘arg1:v1,arg2:v2’.
- Send mode
By default statistic sending each minute to provide data on the time.
Note: There is the alternative way how to setup WP Cron on your site.
If enabled, statistics will be sent to Google Analytics account by specified tracking ID as events with specified event category, URI as event action and URL arguments as event label if it is enabled in general settings.
Set this checkbox to enable statistics sending.
- Tracking ID
Tracking ID of the account. Type your Google Analytics’s tracking ID.
- Event category
Event category that will be seen in the events’ dashboard. Change event category if needed.
- Custom dimension for client ID
Custom dimension index to store client ID for debug purposes e.g. user’s IP. Optional.
If enabled, statistics will be written to the local database table with name ‘wp_seraph_dlstat’. Use any databese viewer or editor to see events. It is used generally for debug purposes only or if there is no any other way.
Set this checkbox to enable statistics writing.
Set this checkbox and all data will be erased. If ‘Enabled’ is unchecked ‘wp_seraph_dlstat’ table will be deleted as well.
Configuration under NGINX#
To enable working under NGINX the following directives should be added manually into the begin of
# seraphinite-downloads-stats - File hook redirection
/www/wwwroot/my-site.com should be replaced by your site’s root filesystem path.
Note. After changing the settings, you need to manually update the NGINX configuration.
There are a set of filters and actions to hook.