Guest user and query tracking