Format tracking code