fix broken analytics tracking introduced in #1507 & changed default

This may not be the most elegant approach but it does fix tracking issue.
this should test when `analytics: undefined` correct?