you can put it in page, whose traffic you wanna track. If you wanna track all website's traffic then you can put GA code into footer or header. If you ask mi ... I will put it in footer.