First my system description:
I have running server 2019 with php 7.4.15 and running only https, also for Matomo.
Actually there are a Hyper-V with two VM Servers. The fist one is mainly for exchange and the second one runs the web server IIS with Sophos (firewall) , php, Typo3, MySQL, …
The tracking works fine for all internal traffic, but external visits are not tracked at all. So, it should be no problem with the database in my opinion.
I can access to the Matomo page from external without any problem.
Which steps/tests should I do next to figure out the problem?
Can you maybe also check the developer tools of your browser and see in the network tab if the matomo.php succeeds. If it does you can (temporarily) enable https://developer.matomo.org/api-reference/tracking-api#debugging-the-tracker so that Matomo responds with a verbose log to the matomo.php request which should explain why it was not stored.
Hi Lukas,
I had in mind, to read something like that. But that’s must be wrong.
I got debugging now working and get logs. But there are really strange!
For example:
If I using https://www.webpagetest.org/ I got logs, but they are having the IP 10.0.0.7, which is my internal sophos address.
I also could see, “Search bot detected, visit excluded”.
On the other hand, if I use my smartphone (with WLAN swiched off) I can not see any log, but the smarthone shows the web sites?
To test more, I think I have to understand better, what kind of access matomo ii doing. I could not find any detail description up to now.
My guess is, that it have maybe something todo with the sophos firewall.
But currenty I don’t understand, why one external acces will be tracked and another not.
Finally, the Client IP was changed by the Firewall.
To add in config.ini.php under [General] proxy_client_headers[] = HTTP_X_FORWARDED_FOR was solving the problem.
Lukas, thanks for your support, Hans-Georg