Create a javascript that directs returning visitors back to my sales page

Closed - This job posting has been filled and work has been completed.
Hourly Job
As Needed
Less than 1 week
Entry Level
I am looking for freelancers with the lowest rates

Details

I need someone to create a cookie for me so I can place it on certain pages of my site. Once a visitor opts in to my site and visits my sales page, they need to be redirected back to the sales page every time they visit my site, until they make a purchase or clear their cookies.