Google advises putting the google analytics script right before closing the .
However, I would prefer to combine it with the rest my javascript
you can put it before
I don't think there would be any problems with that.