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

Run report with multiple dimensions/metrics and dimensionsFilters/metricFilters for GA4

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Done
    • Neutral
    • 1.2.3
    • None
    • None
    • 5
    • Yes

    Description

      Problem: The report should have multiple dimensions/metrics and dimensionsFilters/metricFilters:

      + Also apply pagination in report.

      + Investigate how to apply .addAllDimensions(...) and .addAllMetrics(....) 

      RunReportRequest request =
      RunReportRequest.newBuilder()
      .setProperty("properties/" + propertyId)
      .addDimensions(Dimension.newBuilder().setName(dimensionNames))
      .addMetrics(Metric.newBuilder().setName(metricExpressions))
      .addDateRanges(DateRange.newBuilder().setStartDate(startDate).setEndDate(endDate))
      .addAllDimensions(...)

      .addAllMetrics(....)

      .build();

      Document refer

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

      https://github.com/googleapis/java-analytics-data/blob/main/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java

      Checklists

        Acceptance criteria

        Attachments

          1.
          Implementation Sub-task To Do Unassigned
          2.
          Review Sub-task To Do Unassigned
          3.
          Pre-Integration QA Sub-task To Do Unassigned
          4.
          QA Sub-task To Do Unassigned

          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:

                Time Tracking

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