added analytics to demo