updated version of analytics demo