add advanced analytics script