We are running a sharepoint online solution, in which we already use the usage analytics properties on many pages, to display the count of views for some elements. These elements, for which it works fine, are pages, and documents from various libraries across the whole site collection.
For example, we have a type of page which is used to display pages and documents in a Content Search WebPart, ordered by ViewsRecent. It works perfectly fine, the Views count is displayed at the bottom of each element, and well-updated. This specific type of page is used on subsites only, but we also use ViewsRecent to order some results on the homepage of the root site, and it also works. HOWEVER!
There is one library, in the root site, where the count isn't updated at all. It appears that it's a picture library, and it is the only one of its type on the site collection which needs to use the usage analytics features. And it fails. Buttons "Most popular items" and "Trends&Popularity" both are active, but clicking them leads to either :
Where it is the same for every element : 0 everywhere.
We tried to trigger increment on these images many times, by clicking them, visiting their pages, well, anything that is (according to the MS documentation) supposed to trigger incrementation of the views count. We don't understand why the count works on other libraries, but not this one. For information, the pictures in this library are of a custom ContentType.
Any idea? Someone who encountered this kind of problem?
UPDATE 13/09/2018 :
Recently we went through a major update in the way these libraries work together : Now we've got some documents, and some pictures that share the same content type, inside one library. And we still experience the same problem : the number of hits on the images, wether we display them directly in the browser, or show the DisplayForm of the items, or even download the pictures... nothing seems to trigger the increment.
And I don't understand why since I can't find anything in Microsoft's documentation mentionning any specific behavior of the Usage Analytics service when it comes to pictures... pictures are just a specific type of document right ? And the documents located just beside those images work fine with the views count; we only have to display them in the browser (they're PDFs), juste like we can do with pictures...