Update analytics code
Merge pull request #1 from pschmitt/new_analytics_js

Update analytics code