sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Question on SharePoint Online modern pages OOTB Social bar Page view count feature

Open gurubn opened this issue 8 years ago • 5 comments

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Could you please throw some light on "Modern pages Social bar Page view statistics". How does page view count works ? is it based on the search service (like using "ViewsLifeTime" managed property)? or is it based on some other technology like Graph ?

We have custom news SPFx web part which uses Search KQL query to fetch Site pages (as News articles) and uses "ViewsLifeTime" managed property to show Page view count, but Search based Page view count is always differs from Social bar Page view count on actual modern site page (difference is more than 100 or 500 most of the time)

Expected or Desired Behavior

I assumed Social bar Page view count uses Search service in behind. Considering that, Page view count should be same or at least near by.

Observed Behavior

Search based Page view count always less or more than Social bar Page view count

Apologize if this is not the right place to raise this question. Please redirect me to right location if I am on wrong location.

gurubn avatar Sep 10 '18 14:09 gurubn

Hi,

I have some requirements for a custom development, and I need to fetch this count of views in my WebPart. I did some search but haven't found anything relevant so far... Does anyone know if there is any official API to fetch this value, or at least can anyone tell where (or how) it should be fetch (maybe using the search API ?)

Best regards, Yannick

ypcode avatar Oct 23 '18 07:10 ypcode

User voice entry : https://sharepoint.uservoice.com/forums/329220-sharepoint-dev-platform/suggestions/35822527-official-documented-api-needed-to-fetch-modern-pag

gurubn avatar Oct 25 '18 10:10 gurubn

This is a closed API. Probably, only Microsoft can explain how the page view counts work.

VelinGeorgiev avatar Dec 05 '19 09:12 VelinGeorgiev

This issue is being closed as part of an issue list cleanup project. Issues with no activity in the past 3 months that aren't tracked by engineering as bugs were closed as part of this inititive. If this is still an issue, please follow the steps outlined to re-open or submit a new issue.

ghost avatar Dec 29 '21 14:12 ghost

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Jan 06 '22 00:01 ghost