Install:
Download the zip file and extract the xml file.
Login to the admin side of your store and go to "Manage Hooks" > "Import Code Snippets".
Select the extracted xml file and click "import".
To change the key name in the URL from 'coupon_code', once installed, edit the snippet and edit $_GET['coupon_code'] in both places.
Ref: 112/215