small analytics script