added analytics to demos