repositioned analytics script