finish tracking script generation, now this script could send to the user