The consumer price index (CPI) in Canada rose 2.8 percent year on year in June, according to data from Statistics Canada on Tuesday.