Open martin-neumann-gurus opened 9 months ago
Hi @martin-neumann-gurus,
thank you for raising this issue.
I could confirm this behaviour when using a token that is configured as Secure use only = Yes
. Having a token that is configured to allow being used as a GET parameter (Secure use only = No
), the bulk tracking works as expected, but I don't think the behaviour you are experiencing is or should be expected.
For reference my curl
commands (should match your Postman requests):
# single tracking request
# token_auth works as expected
curl -XPOST 'https://matomo.instance/matomo.php?idsite=1&rec=1&cip=1.2.3.4&cdt=1706332501&url=https%3A%2F%2Fexample.com%2F&urlref=-' --data 'token_auth=<secure_use_only_token>'
# bulk tracking request
# token_auth not detected as secure
curl -kv -XPOST 'https://dev.matomo.io/matomo.php' --data '{"requests":["?idsite=1&rec=1&cip=1.2.3.4&cdt=1706332501&url=https%3A%2F%2Fexample.com%2F&urlref=-"],"token_auth":"<secure_use_only_token>"}'
This issue has been mentioned on Matomo forums. There might be relevant details there:
What happened?
I did some tests with Postman and with debugging enabled. Doing a single tracking request works perfectly. I take the same token and put it into a bulk tracking request and I get the error: WARNING! token_auth = xxxxx is not valid, Super User / Admin / Write was NOT authenticated
What should happen?
It should authenticate and process the tracking requests
How can this be reproduced?
Send on Postman this tracking request
Matomo version
5.0.2
PHP version
No response
Server operating system
No response
What browsers are you seeing the problem on?
No response
Computer operating system
No response
Relevant log output
No response
Validations