pat_nadolny
01/27/2022, 9:55 PMFor the google-analytics tap meltano variant, we've found that choosing a start date in 2020 that goes to the current day outputs reports that vary significantly from the GA UI, and that one-day increments match up much more closely (ex config file below).
{
"key_file_location": "client_secrets.json",
"view_id": "123456789",
"start_date": "2022-01-01T000000Z"
"end_date": "2022-01-02T000000Z"
}
Is there a way to loop through dates in one-day increments? So that the tap pulls a report for 1/1/22, then systematically runs through each day following that until it hits the current day. Example config file below. Without having to manually update for each one-day run?
pat_nadolny
01/27/2022, 9:55 PMpat_nadolny
01/27/2022, 9:55 PMFor additional context, when we do big backfills in GA we trigger sampling and it degrades the historic data
pat_nadolny
01/27/2022, 9:58 PMmeltano
variant and @taylor suggested trying the SDK based meltanolabs
variant. I reimplemented the same functionality with the SDK in the new meltanolabs variant so I think it will act the same way unfortunately. I believe this is really due to google analytics rather than the way data is retrieved data but for our use cases I think we're just pulling unaggregated data (or aggregated at the daily level so its fine grain enough for us) so we havent really run into this issue.edward_ryan
01/27/2022, 9:59 PMpat_nadolny
01/27/2022, 9:59 PMedward_ryan
01/27/2022, 9:59 PMpat_nadolny
01/27/2022, 10:01 PMedward_ryan
01/27/2022, 10:02 PMjo_pearson
01/27/2022, 10:02 PMpat_nadolny
01/27/2022, 10:10 PM[
{
"name": "events",
"dimensions": [
"ga:date",
"ga:eventCategory",
"ga:eventAction",
"ga:eventLabel"
],
"metrics": [
"ga:totalEvents"
]
}
]
pat_nadolny
01/27/2022, 10:13 PMsampleLevel
parameter in the client.py and setting it to HIGHER_PRECISION
? Maybe that would be betteredward_ryan
01/27/2022, 10:14 PMedward_ryan
01/27/2022, 10:14 PMjo_pearson
01/27/2022, 10:58 PM