My fellow SharePointers,
Can you someone shed some information on how implement Google Analytics for SharePoint Online modern pages?
View best response
You can use extensions to add functionality to modern pages (that don't require UX, like webparts). Here's a doc about extensions. This application customizer sample code should help you get started with google analytics