tracker-proxy icon indicating copy to clipboard operation
tracker-proxy copied to clipboard

Error loading matomo js

Open DJZenose opened this issue 3 years ago • 3 comments

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.

DJZenose avatar Jul 12 '22 14:07 DJZenose

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.

massimomarazzi avatar Aug 03 '22 15:08 massimomarazzi

@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.

chrislp avatar Dec 08 '22 17:12 chrislp