braekling / WP-Matomo

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

Adding the matomo.php and proxy.php from the official matomo/tracker-proxy #91

Closed Rasp8e closed 3 years ago

Rasp8e commented 3 years ago

This change fixes the errors from the php tracker proxy in the WP-MATOMO plugin where everything was working, connection to Matomo, configuration, except when the matomo.php was called. It was reported some time ago in 2 threads: https://wordpress.org/support/topic/wp-matomo-proxy-not-working/ https://wordpress.org/support/topic/built-in-tracker-proxy/

It was not working with the latest git commit :WP-Matomo 1.0.24 and to Matomo 4.2.1 and on WordPress 5.7.1

After this change, it all works, the config.php takes care of the environmental variables and the tracker proxies correctly the requests.