JMix v2 Google Analytics

What’s the best way to setup Google Analytics with a JMix V2 App? This will be across all pages. I assume this is just injecting the JS code somehow.