My published file views or statistics reports shows no data. What do I do?

Tags: #<Tag:0x007f414f8e0f70> #<Tag:0x007f414f8e0c28>


First of all, make sure that the usage statistics generic plugins is enabled. It comes enabled by default, but it can be disabled by users. Also, if you are not using the server access log files to retrieve statistics from, make sure that your “create log files” setting under the usage statistics settings page is checked. This setting comes enabled by default, but it also can be disabled by managers. If disabled, the plugin will stop logging the access into files.

If you are upgrading your system from a version older than 2.4.3, then make sure you read this: In a few words, you’re not going to see the same stats numbers you used to before upgrading. Those numbers are still available, but only using the stats reports.

With that in mind, usually, no statistics data indicates that the statistics processing is not working as expected. This might happen for two main reasons:

1 - wrong base_url setting inside your file. Make sure the setting there reflects the exact site base url.
2 - folders permission problems; make sure that the user that runs the php process in your server have access to the usageStats folder inside your ojs files_dir and everything inside of it.

For both cases it should be sent an email notification to your administrator email account to warn you about that. If you have no notification in your admin email, then the stats processing task is not running. For that you can check that you have the Acron Plugin installed and enabled.

To make sure there is no processed stats data, see if there is any file inside the usageStats/archive folder. If there’s none, then check the usageStats/reject. If there are files inside the reject folder, then it’s probably the error with base_url.

Also, if you can, try querying directly into the database server:

SELECT * FROM metrics WHERE metric_type = "ojs::counter";

This query should return entries if your stats processing is working. If not, check both main reasons described above.

Once you fixed any possible problem, make sure to wait a day to see any numbers in the galley view columns or inside the reports. The stats processing runs once every day.

Is there a download counter of the PDFs in OJS?
Abstracts Views and Galley Views are 0
Statistics handling before version 2.4
Counter Report Plugin
Counter Report Plugin
Upgradation from 2.3.7 to 2.4.6 but the view counter is not working it's 0
Issues with stats in v2.4.6
Custom Report Generator no data in spreadsheet
Usage Stats Report Stopped working
UsageStats problem
[OJS] Usage stats is not working
Statistics chart plugin not running
What's the exact view count statistics and when is it updated?
Abstract views, PDF views and Download Stats Made Public :no_mouth:
Is there a download counter of the PDFs in OJS?
Error in processing log files
Custom Report Generator no data in spreadsheet