Added type to analytics script