fix analytics code placement