OJS Article visits shown in article pages

Hi to all,
in OJS 2.4.1 and previous versions was possible to show the visits received by an article in the article pages, with a modification described here: http://pkp.sfu.ca/support/forum/viewtopic.php?f=9&t=9668

I know that the new OJS metrics system that solution doesn’t work anymore.

Is there a way to show the visits data in OJS 2.4.6?

Thanks,
andrea

Hi Marchitelli,

You can use the getViews() method on published objects, like published articles or galleys to retrieve the current object number of views. So basically you have to instantiate the object you want stats from and use that method.

Cheers,
Bruno