braekling / WP-Matomo

Official WP-Matomo (former WP-Piwik) repository
GNU General Public License v3.0
31 stars 29 forks source link

Matomo Mode > Cloud-hosted (*.matomo.cloud) does not connect #77

Closed mattab closed 5 years ago

mattab commented 5 years ago

We have tried the new feature of connecting WP to Matomo using Matomo Mode > Cloud-hosted (under Connect to Matomo tab), and tried different sub-domains and it results in the same error WP-Matomo 1.0.21 was not able to connect to Matomo using your configuration. Check the »Connect to Matomo« section below..

We found the workaround of choosing Self-hosted (HTTP API, default) works.

Would it be possible to fix the issue for Cloud-hosted connection? If you need we can create a cloud account for you to test, please let us know?

Thank you @braekling for a great plugin :+1:

Findus23 commented 5 years ago

I tried to debug this, but am slightly confused.

I tried to add a var_dump($url) here: https://github.com/braekling/WP-Matomo/blob/5d0d7d1f951bf1409011cfeab083c57d877ca09e/classes/WP_Piwik/Request/Rest.php#L14

When I select the cloud option, it outputs https://lukas-testing-wp-plugin.innocraft.cloud/ as it should, but when I select the cloud_matomo option, nothing is printed and this section of the code is never called.

braekling commented 5 years ago

Solved in v1.0.22. Sorry for the long time it took!

https://github.com/braekling/WP-Matomo/releases/tag/v1.0.22