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

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

Here is what the opt-out form looks like:

You can easily customise the opt-out form’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