fixed analytics code placement