One thing to note is that many Google Analytics alternatives suffer from data accuracy issues.
They record and count analytics data differently from how Google Analytics does.
Therefore, before fully transitioning to Google Analytics and being surprised by a drop in visitors, it's advisable to use any analytics alternative alongside it first.
I have reviewed many Google Analytics replacements in terms of features and capabilities. Matomo may be suitable for you, but its data presentation is not user-friendly. If you only need basic metrics to track, there are many alternatives that present analytics data more clearly. For more information, see https://algustionesa.com/google-analytics-alternatives/.