updated tracking script