Get page views into library column

Anonymous
2025-04-29T11:02:36+00:00

I can see there is a standard column for "Like count"  but not for "page views"? 

I want these 2 columns sitting side by side in the page library list.

How can i get page views into a column? Currently the information only seems to be accessible by going to the "Details" icon.

Microsoft 365 and Office | SharePoint | Other | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2025-04-29T19:43:21+00:00

    Hello,

    Welcome to the Microsoft Community Forum. Please accept our warmest regards and sincerest hope that all is well despite the situation you find yourself in.

    It’s understandable that you’d want to see "Page Views" alongside "Like Count" in your library list for better visibility. Unfortunately, SharePoint and similar platforms don’t always include "Page Views" as a default column in the library view, as this data is usually tied to analytics or the Details Pane. However, you can achieve this by customizing your library view or leveraging additional tools. Here’s how:

    Option 1: Add "Page Views" via Library Settings (if available)

    1. Navigate to the library where your pages are stored.
    2. Click on the Settings (gear icon) in the top-right corner and select Library Settings.
    3. Under Columns, check if there's a hidden column named "Page Views" or "View Count".
      • If it exists, enable it and add it to the library view.

    Option 2: Use SharePoint Analytics

    If the "Page Views" column isn’t directly available, you can pull this data using SharePoint’s built-in analytics tools:

    1. Go to the Site Contents or Site Pages Library.
    2. Use the Site Usage or Details Pane to view metrics for individual pages.
    3. Unfortunately, this won’t directly add a "Page Views" column, but it helps track this data manually.

    Option 3: Add a Custom Column with Power Automate

    1. Set Up a Custom Column:
      • Add a new custom column to your library named "Page Views".
    2. Create a Flow in Power Automate:
      • Use Power Automate to capture and update page view metrics into this column.
      • Configure a flow that retrieves analytics data for your pages periodically and writes it to your custom column.

    Option 4: Use SharePoint Framework (SPFx)

    For advanced users or developers:

    1. Use SPFx to create a custom library view or web part that displays both "Like Count" and "Page Views."
    2. This solution requires some coding but provides the flexibility to customize SharePoint exactly the way you need.

    Option 5: Export Data

    If you don’t mind working outside SharePoint:

    1. Export the library data to Excel or Power BI.
    2. Use the analytics data from SharePoint’s Site Usage page to merge "Page Views" into the exported table.
    3. This provides a snapshot of the information side by side.

    Hope this helps.

    Best Regards,

    Clifford B.

    Microsoft Community Moderator

    0 comments No comments
  2. Anonymous
    2025-05-02T15:25:16+00:00

    We haven't heard from you, so we assume that your issue has already been addressed. We will not be monitoring this thread moving forward so, if you need further assistance, please create a new thread to discuss these concerns by clicking this link: Create a new question (microsoft.com)

    Thank you for understanding.

    Regards,

    Clifford

    Microsoft Moderator

    0 comments No comments