Refine analytics setCustomVar code error