Is there a way not to track an admin? I know you can set a cookie in the settings that will do this. However, every time I close and reopen my browser tracking resumes because my cookies are cleared. Is there a setting that won’t track admins when they are logged in? Right now Matomo is even tracking pages and posts that I’m previewing whether they are published or drafts.
Hello @NicCrockett. We do have this guide that can help you exclude traffic or specific users from being tracked: https://matomo.org/faq/how-to/faq_126/
Yes, it’s a great post: https://matomo.org/faq/how-to/faq_126/
A simple fix is to disable the tracking code for logged-in admins instead of relying on cookies. This way your previews and draft views won’t be counted in Matomo analytics.
It’s definitely the easiest way to handle it if you’re the only one managing the site.
For those managing a larger team though, it can be a bit of a hassle to make everyone click a button. I’ve found that excluding the administrator IP range in the ‘Websites’ settings or using a simple ‘if user is logged in’ check in the tracking code itself works wonders for keeping those stats clean without relying on cookies.