fix analytics IF