fix broken analytics tracking introduced in #1507 & changed default

This may not be the most elegant approach but it does fix tracking issue.
would it be more clear if we check for undefined since that's what the value actually is if not set? i know this works, just for clarification