[TIMOB-12771] Fixed analytics to only send payload when logged in.