The free libre open source analytics software Matomo (formerly known as Piwik) is now on the fediverse:
They also have a website:https://matomo.org/
The software costs nothing if you self-host, and they also offer a paid hosted option for people who prefer it.
Unlike Google Analytics, Matomo's data stays entirely on the site that uses it. No one else has access to it, so there's no way for it to be aggregated across many sites.