SOLVED

Implement Google Analytics for SharePoint Online modern sites

%3CLINGO-SUB%20id%3D%22lingo-sub-277041%22%20slang%3D%22en-US%22%3EImplement%20Google%20Analytics%20for%20SharePoint%20Online%20modern%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277041%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20fellow%20SharePointers%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20someone%20shed%20some%20information%20on%20how%20implement%20Google%20Analytics%20for%20SharePoint%20Online%20modern%20pages%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3ESri%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-277041%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGoogle%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277044%22%20slang%3D%22en-US%22%3ERe%3A%20Implement%20Google%20Analytics%20for%20SharePoint%20Online%20modern%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277044%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20use%20extensions%20to%20add%20functionality%20to%20modern%20pages%20(that%20don't%20require%20UX%2C%20like%20webparts).%20Here's%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fspfx%2Fextensions%2Foverview-extensions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ea%20doc%20about%20extensions%3C%2FA%3E.%20This%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-extensions%2Ftree%2Fmaster%2Fsamples%2Fjs-application-analytics%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Eapplication%20customizer%20sample%20code%3C%2FA%3E%20should%20help%20you%20get%20started%20with%20google%20analytics%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Contributor

My fellow SharePointers,

 

Can you someone shed some information on how implement Google Analytics for SharePoint Online modern pages?

 

Thanks,

Sri

1 Reply
Best Response confirmed by John Sanders (Microsoft)
Solution

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