fix analytics

accidentally broke it in my attempt to clean up the js