Whack, I moved the initialization to runtime.js, bracked-syntaxed it and it works for me in browser. Since there's no dependencies, it should throw no runtime errors from within Cocoonjs too.
But whether GA will send actual data from within CocoonJS remains a question
You can get this version of the plugin here
Could you please let me know if it works for you? Thanks!