update to analytics script