fix broken analytics tracking introduced in #1507 & changed default

This may not be the most elegant approach but it does fix tracking issue.
Don't we only need to check for `sessionAnalytics`?