Add analytics code
Merge branch 'dev'