There are a few ways to tell Matomo (Piwik) to exclude and ignore your traffic:

  • Set the ‘ignore cookie’: Login in Matomo, click “Administration” in the top menu, then in the ‘Personal > Settings’ page click the link below the section ‘Exclude your visits using a cookie’. (a matomo_ignore cookie without expiry date is created on the domain of your Matomo server).
  • You may also ignore all traffic from a given IP address or IP address range or CIDR range (useful if you use one or more static IP addresses): check this faq.
  • You may also exclude all traffic where the requests have particular User Agents.
  • You may also include a Tracking Opt-out feature in your website, and use it to exclude your traffic. (a matomo_ignore cookie without expiry date is created on the domain of your Matomo server).
  • You may also force Matomo to only track visits and Page URLs where the URL belongs to your website domain (useful to ignore traffic on your test/staging/qa instances)
  • Aternatively, you may also avoid tracking one or more users that meet your specific criteria by implementing logic yourself in Javascript (or server-side) to hide the tracking code. So that when user(s) meet the criteria and should be excluded from tracking, then your code would ensure to not display the JavaScript Tracking code in your pages or apps. When the tracking code is not output in the page for some users, then these users won’t be tracked.

Note: when you exclude some traffic, it will only exclude it going forward and is not applied retroactively.