[ANALYTICS-408] Migrating to the Google Analytics Data API v1 Created: 01/Mar/23  Updated: 26/Apr/23  Resolved: 26/Apr/23

Status: Closed
Project: Analytics
Component/s: None
Affects Version/s: 1.2.2
Fix Version/s: 1.2.3

Type: Story Priority: Neutral
Reporter: Thuy To Assignee: Thuy To
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 3d 0.5h
Original Estimate: Not Specified

Attachments: File authorxga4-key.json    
Issue Links:
Cloners
is cloned by ANALYTICS-378 Verify Google Analytics connector wor... Closed
dependency
is depended upon by ANALYTICS-427 Parse the GA4 report response to adap... Closed
is depended upon by ANALYTICS-418 DOCU: Provide an overview and link to... Closed
is depended upon by ANALYTICS-420 Investigate why request had invalid a... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[X]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Epic Link: Google Analytics 4
Story Points: 13
Team: AuthorX
Work Started:
Approved:
Yes

 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


Generated at Sun Feb 11 23:18:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.