Google Analytics Importer error

I am using on-premises.

I started an import and very shortly thereafter it reported the following error:


Error message: Error on day 2023-05-24, { “error”: { “code”: 401, “message”: “Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See”, “errors”: [ { “message”: “Invalid Credentials”, “domain”: “global”, “reason”: “authError”, “location”: “Authorization”, “locationType”: “header” } ], “status”: “UNAUTHENTICATED” } }
These errors are unexpected and will likely continue every time you run the import on this day. To resolve this issue, please ask on the forums. If you can provide access to your GA account to a member of Matomo’s support team it will provide a quicker resolution.


I noticed that the date in the error message 2023-05-24 is a date that is already in the data due to the running Matomo instance. So thinking this might have been an issue with a conflict, I decided to kill the import and start it over again but only going up until 2023-05-23. It has been running for 20 minutes now and no error has been reported yet.

Could someone comment on this situation?

Also, I checked the Matomo database tables to see if any data was coming in. While I am just poking around and don’t know exactly what to expect, I don’t see any historical data populating in any tables. In particulare matomo_log_visit is not getting any data from the import;

Shouldn’t I see some data being imported?


It now appears that new tables are coming in to the database, with names matomo_archive_blob_YYYY_MM and matomo_archive_numeric_YYYY_MM.

I would guess this is the expected result.


While there are tables coming in (matomo_archive_blob_YYYY_MM and matomo_archive_numeric_YYYY_MM), they seem to only be one monthly table for each month of 2023 to date. There are no tables for any prior years. Our import starts in 2007. Should there be a table for each month of that date range?