The written procedure is available at Adding a Stamp Portlet.
Adding an Analysis Click Action to a Portlet