You will go though customs when you arrive in Toronto. It is in the same terminal building that you arrive in but you will have to go through security again before going to your departing gate. The website you provided is pretty clear, as is the airport signage.