How to use "ga:isoWeek" in GA4

Viewed 217

I need to have this year data by week from GA4. I used the below API:

  {
    "dateRanges": [{ "startDate": "2021-1-1", "endDate": "yesterday" }],
    "dimensions": [
      {
        "name": "week"
      }
    ],
    "metrics": [{ "name": "activeUsers" }]
}

But, I’d like to have the week from Monday to Sunday as ISO week, instead Sunday to Saturday.

I have known UA had "ga:isoWeek" as dimensions, but how about GA4?

1 Answers

Ga4 does not support isoWeek at this time. You should check out the API Dimensions & Metrics for the Google analytics data api it shows all the dimensions and metrics that work with GA4.

enter image description here

Related