How to Enable Google Analytics Opt-Out for Site Users?
If you do not want to send the data back to your GA account, Enable the Google Analytics Opt-Out option. It is a good idea when you are not running any campaign (temporarily).
Alternatively, if you want your users to give an option for opting out, add this line to your theme’s header/footer.
<a href="javascript:uaOptout()">Click here to opt-out of Google Analytics</a>
If selected, the current user session won’t be tracked through Google Analytics.
Screenshot - 1 : ( Google Analytics Opt-Out option )