switched order of analytics loading