# WP-Matomo (WP-Piwik) Will not authorise

**URL:** <https://community.mainwp.com/t/wp-matomo-wp-piwik-will-not-authorise/9340>\
**Category:** Support\
**Tags:** matomo\
**Created:** [September 6, 2024, 10:27am UTC](https://community.mainwp.com/t/wp-matomo-wp-piwik-will-not-authorise/9340 "2024-09-06T10:27:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trident](https://community.mainwp.com/user_avatar/community.mainwp.com/trident/32/6264_2.png) [@trident](https://community.mainwp.com/u/trident)\
**Post date:** [September 6, 2024, 10:27am UTC](https://community.mainwp.com/t/wp-matomo-wp-piwik-will-not-authorise/9340/1 "2024-09-06T10:27:39Z")

</div>

Hi,  
I installed an On-Premise version yesterday on my own domain ([domain.com/analytics](http://domain.com/analytics)) and I’ve generated the new API code from Matomo.

In the plugin for MainWP I’ve set the matomo url as [https://domain.com/analytics](https://domain.com/analytics) and added the API code but it keeps generating a 401 error.

Any ideas what I’ve missed?

---

<div class="post-metadata">

**Author:** ![bojan](https://community.mainwp.com/user_avatar/community.mainwp.com/bojan/32/3059_2.png) [@bojan](https://community.mainwp.com/u/bojan)\
**Post date:** [September 6, 2024, 12:51pm UTC](https://community.mainwp.com/t/wp-matomo-wp-piwik-will-not-authorise/9340/2 "2024-09-06T12:51:58Z")

</div>

Hey @trident

I’ve sent you a pre-release version of Matomo via a private message.

It includes a change for “Only allow secure requests” that Matomo introduced in their Dashboards.

Please let me know if that version resolves the issue.

---

<div class="post-metadata">

**Author:** ![system](https://community.mainwp.com/uploads/default/original/2X/4/4cfc87ac67e4ebdbfa0bbf0b19c8657f35a29a5b.png) [@system](https://community.mainwp.com/u/system)\
**Post date:** [October 6, 2024, 12:52pm UTC](https://community.mainwp.com/t/wp-matomo-wp-piwik-will-not-authorise/9340/3 "2024-10-06T12:52:52Z")

</div>

Closed on October 6, 2024, 12:52pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
