Changed position of analytics code

The analytics code should always be loaded last.