Background: Trying to display to the public usage event plugin on synopsis page. Enabled under ‘Generic Plugins’ the ‘Usage statistics’, and ensured that under ‘Optional statistic information’ the tick is enabled to ‘Display submission statistics chart for reader’.
Problem:
However, we are unable to see the previous years statistics - only current. And no graph for city nor region. As an example see here - their is definately 2017 and 2016 statistics but for some reason we do not have this navigational function available.
What we did:
On a test site, we thought that the problem could be fixed by adding a javascript to the header of the OMP source code.
We added in:
/lib/pkp/templates/common/headerHead.tpl
/lib/pkp/templates/frontend/components/headerHead.tpl
The following code:
What should we do, to ensure the Usage Statistics plugin works correctly?
Appreciate the prompt response - thankful that the graph is indeed displaying as intended and designed. We will review the Github entries and give it a try, will let you know if any difficulties we encounter. It is indeed an improvement to showcase the last 12 months.
I don’t have this plugins/generic/usageStats/js/UsageStatsFrontendHandler.js in my UsageStats directory.
yes, I would like to apply the 12 months graph