Pagination offset is calculated wrong for GA4 queries

Created on 13 June 2023, about 1 year ago

Problem/Motivation

I discovered that in src/GoogleAnalyticsCounterAppManager.php we calculate the offset during pagination like this:

$pointer = $step * $chunk + 1;

Now, the very first offset will be 0 * 1000 + 1 = 1 which is wrong as stated in https://developers.google.com/analytics/devguides/reporting/data/v1/basi... It should start with zero. Also, investigate following chunks' queries.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024