1

I'm using SharePoint 2019 and looking to get user visits count on all site pages using powershell or .Net or by any means.

I have tried usage report which is not providing the individual pages visits. I have tried audit report also, but for some reason visit count is very less which is wrong. I'm able get month wise visit count for all the sites and sub sites but i want site pages visit count separately.

Any help would be appreciated!

  • I think you can use search API. try this if it works for you YourSiteURL/_api/search/query?querytext='path:YourSiteURL'&selectproperties='Title,path,ViewsLifeTime,ViewsLifeTimeUniqueUsers' – vinit kumar Jul 4 at 11:30
  • Do you have page request included in your usage logging? REF: blog.syskit.com/analytics-in-sharepoint-on-premises – Marek Sarad Jul 4 at 14:20
  • Yes Marek, it is enabled, can i extract data from analytics? – Sivanrv Jul 4 at 14:33
1

You can refer to the two articles below:

1.Step by steps on how to display Most Visited Sites with number of view count in SharePoint 2013 Web Analytics.

https://www.sharepointpals.com/post/step-by-steps-on-how-to-display-most-visited-sites-with-number-of-view-count-in-sharepoint-2013-web-analytics/

2.SharePoint 2013: Showing Page Views within a SharePoint Page.

http://blog.meenavalli.in/post/page-views-hit-counter-on-a-sharepoint-page

0

As you are on prem you could use the IIS logs to determine specific usage. Have a look at the log parser studio, there are some nice examples prepared by Exchange team that can be an starting point for you. It allows you to export the queries as PowerShell.

https://techcommunity.microsoft.com/t5/Exchange-Team-Blog/Log-Parser-Studio-2-0-is-now-available/ba-p/593266

  • IIS logs are stored only for last 30 days in our server, I want a report for a year – Sivanrv Jul 4 at 13:59
  • Try the popularity trends docs.microsoft.com/en-us/sharepoint/administration/… – Marek Sarad Jul 4 at 14:18
  • Already tried popularity trends which doesn't help my case as i need an individual site page visits for a year(month wise) – Sivanrv Jul 4 at 14:36
  • 1
    To view the Popularity Trends report for a library or list item Verify that the user account that is performing this procedure is a member of the Visitors group. In the site collection, browse to the library or list that contains the item for which you want to view the Popularity Trends report. Select the item that you want to view the Popularity Trends report for, and then do one of the following: For a library, click the FILES tab, and then, on the ribbon, click Popularity Trends. For a list, click the ITEMS tab, and then, on the ribbon, click Popularity Trends. – Marek Sarad Jul 5 at 6:42

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.