fixing analytics