Updated some logic.  It still collects fields from other types of requests but it will switch out the medium.  Also the cookie lasts for 30 days