In some cases, it may be necessary for you to offer your website visitors a way to opt out of data collection that supports Alexa Certified Site Metrics. You can easily add this option to your site with the information on this page: Certified Site Metrics Opt Out.
Anytime someone returns to your site on any device - mobile or desktop - we will check for the opt-out cookie. The opt-out cookie will work until the visitor clears their cookies, switches browsers, or switches computers.
For opt-out on AMP pages, see page linked to above.