Space/Page Analytics fails to load and displays an Unauthorized error

XMLWordPrintable

    • 5
    • Minor

      Issue Summary

      Sometimes, the space/page analytics fail to load due to an error, even though there are no restrictions on the site or space analytics permissions. The network shows 403 Forbidden responses, and the UI displays:

      We couldn't retrieve your data.

      Please reload the page or contact your site administrator.

      Steps to Reproduce

      1. Navigate to a Space/Page Analytics
      2. View errors in the UI

      Expected Results

      Analytics load content

      Actual Results

      Analytics load with an error:

      We couldn't retrieve your data.

      Please reload the page or contact your site administrator.

       

      Network Request Endpoint

      https://SITE.atlassian.net/gateway/api/ex/confluence/UUID/analytics/space/details?spaceKey=SPACEKEY&spaceId=SPACEID
      

      Response: 403 Forbidden

      {"reason": "ViewAnalyticsRestricted"}
      

      Workaround

      Double-check the site and space permissions following this guide: https://support.atlassian.com/confluence-cloud/docs/set-viewing-permissions-for-analytics/

       

      Reset the space permissions by following these steps:

      • Navigating to space settings > analytics permissions
      • Set 'View-only restrictions' and Save
      • Set to 'No Restrictions' and Save

        1. Screenshot 2024-11-12 at 8.40.08 PM.png
          113 kB
          Avrahm K [Atlassian Support]

            Assignee:
            Brian Ma
            Reporter:
            Avrahm K [Atlassian Support]
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: