fix analytics stuff