update deployment script and add tracking code