You have the following options to measure SharePoint Sites usage:
- Site Usage reports available at the site level
- SharePoint usage reports available in the Office 365 Admin Center
- The Microsoft Usage Analytics
If those three options are not enough, them you could develop and deploy a SPFx Extensions that makes use of Google Analytics