Google Tag Manager?

Is there any recommended approach to set up the Google Tag Mnaager within the MainLayout cusotmlayout class? Or is there a better place to do it?


Is it something that shouldn’t even be in the app? (I know very little about the GTM and am being asked to add it to the application).

Thank you!

I think the easiest way is to use this add-on GoogleAnalyticsTracker - Vaadin Add-on Directory