Added a try-catch block around the GA  method to prevent a call to ga() before GA is loaded from breaking all the JavaScripts (because GTM is loading GA in the body and not head where it should be).
Merge branch 'master' of github.com:nib-components/analytics