I was wondering why google does not offer simpler and shorter way of initializing ga.js code like this:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXX-Y']);
_gaq.push(['_trackPageview']);
</script>
<script src="//google-analytics.com/ga.js" async="true" type="text/javascript"></script>
Original solution is to make use of javascript check for protocol, set async flag etc, etc..
Are there any downsides to my solution?