Fixed analytics protocol.
Fixed login setting of state.