fix broken analytics tracking introduced in #1507 & changed default

This may not be the most elegant approach but it does fix tracking issue.
actually this tested if config = undefined. I fixed the test.