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.
If selected, the current user session won’t be tracked through Google Analytics.
Screenshot - 1 : ( Google Analytics Opt-Out option )