Moving Analytics.js specific stuff into it's own file