Home

Communication site with Google Analytics

%3CLINGO-SUB%20id%3D%22lingo-sub-252473%22%20slang%3D%22en-US%22%3ECommunication%20site%20with%20Google%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252473%22%20slang%3D%22en-US%22%3E%3CP%3EOne%20recent%20ask%20from%20our%20customers%20is%20in%20being%20able%20to%20leverage%20Google%20Analytics%20with%20SharePoint%20Online%2C%20something%20they%20have%20today%20on%20premise.%26nbsp%3B%26nbsp%3BOur%20goal%20is%20in%26nbsp%3Bmigrating%20or%20replacing%20some%20of%20those%20older%20SharePoint%20sites%20with%20Communication%20Sites.%26nbsp%3B%20Communication%20Sites%20do%20not%20the%20Google%20Analytics%20Connector%20we%20see%20on%20Modern%20Team%20Sites%20that%20use%20Office%20365%20Groups.%26nbsp%3B%20Has%20anyone%20been%20able%20in%20integrating%20a%20SharePoint%20Communication%20Site%20with%20Google%20Analytics%20specially%20this%20requirement%20were%20we%20need%20to%20inject%20code%20into%20each%20page%20that%20we%26nbsp%3Bwant%20metrics%26nbsp%3Bcaptured.%26nbsp%3B%20In%20the%20past%20master%20pages%20were%20changed%20but%20online%20that's%20not%20the%20approach%20that%20can%20be%20followed.%26nbsp%3B%20I%20have%20seen%20some%20SharePoint%20Framework%20web%20parts%20that%20could%20help%2C%20but%20again%20I'm%20not%20an%20expert%20on%20this%20topic%20so%20I%20appreciate%20any%20comments%20or%20ideas.%26nbsp%3B%20Thanks!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-252473%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EUsage%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-252522%22%20slang%3D%22en-US%22%3ERe%3A%20Communication%20site%20with%20Google%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252522%22%20slang%3D%22en-US%22%3E%3CP%3EGreat%20thanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-252517%22%20slang%3D%22en-US%22%3ERe%3A%20Communication%20site%20with%20Google%20Analytics%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-252517%22%20slang%3D%22en-US%22%3EHere%20you%20go%3A%20build%20a%20SPFx%20Extension%20that%20allows%20you%20to%20use%20Google%20Analytics.%20Fortunately%20there%20already%20samples%20of%20this%3A%3CBR%20%2F%3E-%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%3Ehttps%3A%2F%2Fgithub.com%2FSharePoint%2Fsp-dev-fx-extensions%2Ftree%2Fmaster%2Fsamples%2Fjs-application-analytics%3C%2FA%3E%3CBR%20%2F%3E-%20%3CA%20href%3D%22http%3A%2F%2Fwww.compartimoss.com%2Frevistas%2Fnumero-35%2Fsetup-google-analytics-on-modern-sharepoint-using-spfx-extensions%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.compartimoss.com%2Frevistas%2Fnumero-35%2Fsetup-google-analytics-on-modern-sharepoint-using-spfx-extensions%3C%2FA%3E%3C%2FLINGO-BODY%3E
Juan M Baena
Regular Contributor

One recent ask from our customers is in being able to leverage Google Analytics with SharePoint Online, something they have today on premise.  Our goal is in migrating or replacing some of those older SharePoint sites with Communication Sites.  Communication Sites do not the Google Analytics Connector we see on Modern Team Sites that use Office 365 Groups.  Has anyone been able in integrating a SharePoint Communication Site with Google Analytics specially this requirement were we need to inject code into each page that we want metrics captured.  In the past master pages were changed but online that's not the approach that can be followed.  I have seen some SharePoint Framework web parts that could help, but again I'm not an expert on this topic so I appreciate any comments or ideas.  Thanks! 

2 Replies

Great thanks!