Opting out of tracking - GDPR rules

Take a look at this post. It should answer your question.