Uploaded image for project: 'Analytics'
  1. Analytics
  2. ANALYTICS-408

Migrating to the Google Analytics Data API v1

    XMLWordPrintable

Details

    • Story
    • Resolution: Fixed
    • Neutral
    • 1.2.3
    • 1.2.2
    • None

    Description

      Problem: 

      Google Analytics 4 is replacing Universal Analytics. On July 1, 2023 all standard Universal Analytics properties will stop processing new hits. 360 Universal Analytics properties will stop processing new hits on July 1, 2024.
      So we need to migrate data and use GA4 in Magnolia instead. Steps for doing:
      1/ Create a GA4 property and data stream in AuthorX demo site —> Done
      2/ Access and get data from URL site on Addon server by using GA script —> Refer comments on  https://jira.magnolia-cms.com/browse/ANALYTICS-378#:~:text=2/-,Access%20and%20get%20data,-from%20URL%20site

      3/ Migrating to the Google Analytics Data API v1 ----> we have to implement in code
      Why do we need to migrate?
      ===> We are currently using Universal Analytics with the Reporting API v4, since the Reporting API v4 can only access properties created with Universal Analytics. If our application needs to access data in a Google Analytics 4 property, it is necessary to update the code to use the Data API v1

       

      Expectation 1: Analytics can access and get data from GA4 in Magnolia.
      Expectation 2: Create a new connector so that there will be a soft migration for the existing customers

      Refer links for demo site and document:

      AuthorX demo site for GA4: https://analytics.google.com/analytics/web/#/a257509406p354424382/admin/property/settings

      Google cloud API: https://console.cloud.google.com/apis/api/analyticsreporting.googleapis.com/metrics?project=authorxga4

      https://developers.google.com/analytics/devguides/collection/ga4

      https://developers.google.com/analytics/devguides/reporting/data/v1

      https://developers.google.com/analytics/devguides/migration/api/reporting-ua-to-ga4#data-api-v1_1

      Development notes:

      https://github.com/googleapis/java-analytics-data

      Need to change the API for google analytics and re-implement code in GoogleDataSupplier including unit tests.

      GoogleDataSupplier.java and GoogleAnalyticsServiceProvider.java are related to Data API directly

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                thuy.to Thuy To
                thuy.to Thuy To
                AuthorX
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 3d 0.5h
                      3d 0.5h