[ANALYTICS-480] Verify and replace Universal Google to Google Analytics 4 in Integrated User eXperience (IUX) slots. Created: 05/Jun/23  Updated: 03/Jul/23  Resolved: 26/Jun/23

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

Type: Improvement Priority: Neutral
Reporter: Thuy To Assignee: Thuy To
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: 2d 6.5h
Original Estimate: Not Specified

Attachments: PNG File image-2023-06-05-10-41-07-876.png     PNG File image-2023-06-21-15-25-19-426.png     PNG File image-2023-06-21-15-29-24-804.png     PNG File image-2023-06-21-15-30-20-672.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Epic Link: Google Analytics 4
Story Points: 3
Team: AuthorX
Work Started:
Approved:
Yes

 Description   

Problem:

We are currently configuring and collecting data from Universal Google showing on extensionViews of IUX.

https://git.magnolia-cms.com/projects/DEMOS/repos/services-demos-travel/browse/services-demos-travel-config/src/main/resources/services-demos-travel-config/decorations/pages-app/apps/pages-app.subApps.browser.workbench.yaml#1,8,21,34,47

https://git.magnolia-cms.com/projects/ADDON/repos/addon-nightly-webapp/browse/magnolia-addon-config/src/main/resources/addon-config/decorations/pages-app/apps/pages-app.subApps.browser.workbench.yaml

Both services-demos-travel-config/decorations/pages-app/apps/pages-app.subApps.browser.workbench.yaml and Addon server are using UA in extensionViews of IUX.

Expectation:  Replace UA to Ga4 in extensionViews of IUX and update documentation.



 Comments   
Comment by Thuy To [ 21/Jun/23 ]

We need to update the chartDefinition of GA4 in extensionViews, replace UA to GA4 in documentation https://docs.magnolia-cms.com/product-docs/6.2/Connector-Packs/Analytics-Connector-Pack/Analytics-module.html#_iux_slot_filter_configuration_examples

Also update the jsonPath in https://docs.magnolia-cms.com/product-docs/6.2/Connector-Packs/Analytics-Connector-Pack/Analytics-module.html#_google_analytics_simple_column_chart_definition_example

extensionViews:
  - name: analytics1
    icon: icon-analytics-app
    view:
      name: analytics
      $type: analyticsView
      chartDefinitions:
        - name: active28DayUsers
          label: GA Active 28 Days Users
          class: info.magnolia.analytics.amcharts.data.AmChartDefinition
          dataSupplier: gaActive28DayUsersSupplier
          chartType: !include:/analytics-ui/chartTypes/line-and-area/line-different-colors-ups-downs.yaml
            series:
              - name: series
                dataFields:
                  - name: categoryX
                    jsonPath: $.rows.[*].dimensionValues.[*].value
                  - name: valueY
                    jsonPath: $.rows.[*].metricValues.[*].value
        - name: sessions
          label: GA Sessions
          class: info.magnolia.analytics.amcharts.data.AmChartDefinition
          dataSupplier: gaSessionsSupplier
          chartType: !include:/analytics-ui/chartTypes/line-and-area/line-different-colors-ups-downs.yaml
            series:
              - name: series
                dataFields:
                  - name: categoryX
                    jsonPath: $.rows.[*].dimensionValues.[*].value
                  - name: valueY
                    jsonPath: $.rows.[*].metricValues.[*].value
Generated at Sun Feb 11 23:19:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.