Updated storeEvents()
Improved the way the connection to GA and the relay are checked.