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.
GNU General Public License v3.0
152
stars
46
forks
source link
Bulk request did not send `cip` #86
Open
ducdigital opened 10 months ago
It seems like tracker-proxy does not include
token_auth
andcip
in bulk request . TheX-Forwarded-For
does not work with bulk requests on Matomo 5.For all bulk requests, the server IP is used on Matomo instead of the real forwarded IP address.
I took some liberty to add a few more methods to the file, it works but I did not test it for PHP < 7.4.
What works:
What seems to be broken:
cip
passed in the bulk request?)Here's the code:
Add the following code in the POST handler will add
cip
to the individual query andtoken_auth
on the post body:original requests :
expected result: