Matomo is a free alternative to Google Analytics that is GDPR compliant, and it has more features.