matomo-org / tracker-proxy

HTTP proxy for Matomo's tracker API. This script allows to track websites with Matomo without revealing to your visitors the secret Matomo server URL.
http://matomo.org/faq/how-to/faq_132/
GNU General Public License v3.0
152 stars 46 forks source link

Error loading matomo js #78

Open DJZenose opened 2 years ago

DJZenose commented 2 years ago

for context, I'm using the proxy on a server running WordPress 7.4 and I have the appropriate tracking code applied

I have the proxy installed in a directory under root (matomo/matomo.php) and am referencing it in the tracker as u+'matomo/matomo.php'

When I load the page, the request for matomo.php gives a 200 with the response of /* there was an error loading matomo.js */.

I cant quite figure out where the issue is at.

massimomarazzi commented 2 years ago

Apply this pull request #76 and set DEBUG_PROXY=true in proxy.php. then you'll see debug-proxy.log into tracker-proxy dir with debug details.

chrislp commented 1 year ago

@DJZenose I had the same issue when the tracked site and the matomo instance were on the same server. Depending on your configuration it might be necessary to add the DNS name of the matomo instance to /etc/hosts with an IP address of 127.0.0.1

Took me quite a while to figure out.

benisdev-py commented 1 month ago

same error for me but nothing helps. and I already set $DEBUG_PROXY = true; but the debug log dose not come up