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

Investigate why request had invalid authentication credentials in GA4

    XMLWordPrintable

Details

    • Spike
    • Resolution: Fixed
    • Neutral
    • 1.2.3
    • None
    • None
    • 3

    Description

      + Sample yaml configuration:

      class: info.magnolia.analytics.google.datasource.GoogleDataSupplier

      credentials:

        applicationName: Magnolia Analytics

        serviceAccountJsonPath: /google-analytics/dataSuppliers/authorxga4-key.json

      parameters:

        propertyId: 354424382

        startDate: 7DaysAgo

        endDate: today

        dimensionName: date

        metricExpression: sessions

      + Document refer: https://github.com/googleapis/java-analytics-data

       

      + Problem: When running to get the GA4 report on Analytics module of Magnolia, it throws this error.

      io.grpc.StatusRuntimeException: UNAUTHENTICATED: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

      Attachments

        Issue Links

          Activity

            People

              asoto Alberto Soto
              thuy.to Thuy To
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 5.5h
                  5.5h