Hack adding analytics when loading state.