added analytics code
hotfix