For detailed instructions please refer to the Google Analytics + User Manual here.
Add support for google opt out cookie. Add a link like "<a href="javascript:gaOptout()">Click here to opt-out of Google Analytics</a>" to pages of your choice.
NOTE: You MUST have Universal Analytics Enabled for this to work correctly