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

Geolocation indicates the location of the server, not the visitor. #66

Closed tekhnee closed 3 years ago

tekhnee commented 3 years ago

I'm trying to use the tracker proxy with the following topology:

Client (simple static HTML)   ------> Matomo (with tracker-proxy)

The Matomo instance is on the same server as the client. Curiously, other websites using the proxy tracker on the same server, and with no apparent differences in their vhost files, are tracked accurately.

I experimented with a RemoteIPHeader X-Forwarded-For tracker proxy setting but am still failing to make this work. Might anyone have further instructions to share?

tekhnee commented 3 years ago

Fixed — there was a breaking typo in my code. Apologies for the false alarm.