Learn business growth with Google Analytics 4 Forums Google Analytics 4 Accessing an existing GA4 report in Google Analytics

  • Accessing an existing GA4 report in Google Analytics

    Posted by Mia on 20 May 2022 at 10:21 pm

    Hey there, I’m building an api to pull data from Google Analytics.

    Just wanted to check if there’s any hack to open an already existing Google Analytics report (GA4) using an http request, Java or Python?

    I did find this useful doc,
    Google analytics data api run report

    But it only helps me create a whole new report from the ground up. What I really need is to open a report that’s already out there.

    When I’m on the web console of google analytics, I do see this URL for my report:

    https://analytics.google.com/analytics/web/?authuser=9#/analysis/pABCDEFGH/edit/VLE12345678901_765432 (Yeah, I've changed the ids)
    

    Open to any ideas you guys might have!

    Madison replied 1 year, 4 months ago 3 Members · 2 Replies
  • 2 Replies
  • Lily

    Member
    24 January 2023 at 7:34 am

    Unfortunately, no current API, including the Google Analytics Data API, allows you to open an already existing GA4 report. All Google APIs provide raw data as JSON, so if you want to access information from an existing report, you would need to recreate the report yourself by using the same dimensions, metrics and dates to make the request.

    There is a Google Analytics Embedded API that was designed for the Google Analytics core reporting API, but it only works with Universal Analytics. I’ve reached out to the Google team and was informed there are no current plans to make it compatible with GA4.

  • Madison

    Member
    15 May 2023 at 7:42 am

    Unfortunately, as of now, Google’s API does not provide an endpoint to directly open or retrieve an existing report from Google Analytics 4 (GA4). The API mainly provides ways to build new reports from raw data as you’ve mentioned. So, if you want to access a report that’s already in GA4 via Java or Python, you would need to recreate the report using parameters to match the GA4 report, and then retrieve the data that way. The URL you mentioned for the reports are only viewable in the Google Analytics console and cannot be directly called from a script. Alternatively, you may want to consider using Google Analytics’s scheduled email reports feature or the Google Sheets Add-on, both of which provide options to automate data delivery in a ‘report-like’ format.

Log in to reply.