To respect the privacy of your visitors, it is recommended to include the Matomo (Piwik) Opt-out iframe in your website. This iframe will display to your users a short text and let them opt-out in one click.

To find the code for the iframe, login to Matomo, then click Administration and then click Privacy > Users opt-out.

Here is what the opt-out iframe looks like:

You can easily customise the opt-out iframe’s font color, font family, font size, as well as the background color.

Learn more in the Privacy user guide.

See also: How do I exclude / ignore my traffic from Matomo?

Alternatively, if you want to opt-out all your users by default instead and let them opt-in to being tracked, then you can “require consent” and ask for consent by following the steps in Implementing tracking consent in Matomo

Previous FAQ: How do I enforce tracking without cookies