Revert "updated analytics code"

This reverts commit 0c2da462a3361a1d899f9c4124fcd5791acfa86f.