taeef_najib
01/06/2024, 11:05 PMtap-ga4
and this is how my configuration looks like:
{
"end_date": "2023-12-15",
"key_file_location": "./keys/client_secrets.json",
"property_id": "420038723",
"reports": "./reports/report.json",
"start_date": "2023-12-31"
}
When I'm running meltano config tap-ga4 test
I get this error:
Plugin configuration is invalid
{"type": "SCHEMA", "stream": "users_per_day", "schema": {"properties": {"date": {"type": ["string"]}, "activeUsers": {"type": ["integer", "null"]}, "report_start_date": {"type": ["string"]}, "report_end_date": {"type": ["string"]}}, "type": "object", "required": ["date", "report_start_date", "report_end_date"]}, "key_properties": ["date"], "bookmark_properties": ["date"]}
This is how my report.json
file looks like:
[
{ "name": "users_per_day",
"dimensions":
[
"date"
],
"metrics":
[
"activeUsers"
]
}
]
Can anyone please tell me what could have gone wrong?Reuben (Matatika)
01/07/2024, 2:36 AMmeltano --log-level debug config tap-ga4 test
?taeef_najib
01/07/2024, 6:22 PMReuben (Matatika)
01/08/2024, 9:56 AMRECORD
messages). Have you tried loosening your select
criteria?taeef_najib
01/08/2024, 12:41 PMselect
criteria. This is what I have in my `meltano.yml`:
- name: tap-ga4
variant: meltanolabs
pip_url: git+<https://github.com/MeltanoLabs/tap-google-analytics.git>
config:
end_date: '2023-12-15'
start_date: '2023-12-31'
reports: ./reports/report.json
Does it require any other configuration?Reuben (Matatika)
01/08/2024, 12:55 PMmeltano invoke tap-ga4 > tap.out
and look for RECORD
messages in tap.out
, or
meltano install loader target-jsonl
meltano run tap-ga4 target-jsonl
and see if you get any data as .jsonl
files under output/
.
Note that there are some current issues with `meltano config tap test`:
⢠#8307 (could be obfuscating some useful error output)
⢠#8212 (if you are on Windows)Pat Nadolny (Arch)
01/08/2024, 2:52 PMtaeef_najib
01/08/2024, 4:40 PMmeltano invoke tap-ga4 > tap.out
{"type": "SCHEMA", "stream": "users_per_day", "schema": {"properties": {"date": {"type": ["string"]}, "activeUsers": {"type": ["integer", "null"]}, "report_start_date": {"type": ["string"]}, "report_end_date": {"type": ["string"]}}, "type": "object", "required": ["date", "report_start_date", "report_end_date"]}, "key_properties": ["date"], "bookmark_properties": ["date"]}
{"type": "RECORD", "stream": "users_per_day", "record": {"date": "20231215", "activeUsers": 3, "report_start_date": "2023-12-01", "report_end_date": "2023-12-30"}, "time_extracted": "2024-01-08T16:35:19.245808+00:00"}
{"type": "RECORD", "stream": "users_per_day", "record": {"date": "20231216", "activeUsers": 2, "report_start_date": "2023-12-01", "report_end_date": "2023-12-30"}, "time_extracted": "2024-01-08T16:35:19.246051+00:00"}
{"type": "RECORD", "stream": "users_per_day", "record": {"date": "20231217", "activeUsers": 2, "report_start_date": "2023-12-01", "report_end_date": "2023-12-30"}, "time_extracted": "2024-01-08T16:35:19.246208+00:00"}
{"type": "RECORD", "stream": "users_per_day", "record": {"date": "20231229", "activeUsers": 1, "report_start_date": "2023-12-01", "report_end_date": "2023-12-30"}, "time_extracted": "2024-01-08T16:35:19.246351+00:00"}
{"type": "STATE", "value": {"bookmarks": {"users_per_day": {"replication_key": "date", "replication_key_value": "20231229"}}}}
Now I'm getting: Plugin configuration is valid
thank you!Reuben (Matatika)
01/08/2024, 4:40 PM