Fixed script Analytics bug