How to include google analytics JS snippet on Dash app?

Hey all, I’ve built a Dash app and can’t figure out how to include the JS snippet for google analytics on the site. Can someone point me in the right direction?

There’s instructions for doing this in the Dash guide. Note however that using this method means you can’t set Dash to use offline JavaScript assets.