fix syntax error on analytics code
Merge pull request #140 from mistio/analytics_fix

Analytics fix