reorder lifecycle method calls for analytics Kazuki implementation

@cstamas thank you for the pointer to this fix area! let me know if this looks good to you.

 I'll kick off a feature build as well