Make sure analytics is active before adding an event.