Wordpress_TokenAuthMissing

I’m trying to export the statistics in Matomo, but whenever I attempt it I get the error Wordpress_TokenAuthMissing. I’ve searched the forum for a solution, but nothing seems to work. I also can’t create any tokens in my admin panel. I’m stuck — please help!

Hi there — this error and the inability to create tokens are usually connected, so fixing one often fixes the other. A few things worth checking:

  1. Create personal API tokens from the user menu (top-right avatar) under Personal → Security → “Create new token”. If that page itself errors, the account you are logged in with may lack the required role. A Matomo Super User can verify your access rights under Administration.

  2. If you are using the Matomo for WordPress plugin: make sure you are logged in as a WordPress administrator, and that the WordPress account is properly linked to Matomo. Sometimes reconnecting the plugin (deactivating and reactivating it) clears up broken token state.

  3. Try in a private/incognito browser window. A stale or half-logged-in session can cause exactly this kind of authentication error on export.

  4. Make sure the API plugin is enabled (Administration → System → Plugins) and that no privacy extension is blocking requests on the admin pages.

If it still fails, it would help if you could share the exact full error message shown when you try to export (just redact any token value). Are you on the WordPress plugin or the standalone install?