updates to analytics script