fix broken analytics tracking introduced in #1507 & changed default

This may not be the most elegant approach but it does fix tracking issue.
`config.analytics !== null` doesn't work because `undefined !== null` is true, so either `config.analytics != null` or `config.analytics !== undefined` (maybe the later is more clear?)