Fixed tracking code, being in the wrong scope