0

We need to display viewslifetime (page view count) in our SharePoint page using search API. But when we are hitting the search API query it is giving data for some of the sharepoint pages. but when it comes to older sharepoint pages (2018). it is not displaying data. We have filter the query on the basis of sharepoint page URL to display viewslifetime(page view count).

API - URL/_api/search/query?querytext=''&sourceid='f3c91631-eff1-4f7b-aa2e-dcb2cbe377de'&selectproperties='ViewsLifeTime,PublishingStatusOWSTEXT,Path,Title'&refinementfilters='Path:("URL")'

Please let us know if this is the correct API.

0

Make sure that managed properties are searchable, queryable, and wait for a full crawl.

You can use SharePoint 2013 Search Query Tool to generate REST queries on the fly and refine searches.

Similar issue for your reference:

SharePoint 2013 Page Views

If you could access Admin center, refer to the site usage reports article:

https://docs.microsoft.com/en-us/microsoft-365/admin/activity-reports/sharepoint-site-usage?redirectSourcePath=%252fclient%252fSharePoint-site-usage-4ecfb843-e5d5-464d-8bf6-7ed512a9b213&view=o365-worldwide

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.