by shaheedabdol on WordPress.org
This plugin takes a configured url parameter and stores it in a cookie with parameters you choose.

A view of the available settings on the plugin settings screen.
When configured, this plugin examines the visited url for a configured parameter and stores it in a cookie. The cookie name, domain, path
and expiry can be configured.