All IPs end with 0 in visitor log


(Olle Härstedt) #1

Hi,

For some reason, all IPs in the visitor log ends with 0. Is this correct behaviour? I’m wondering if this could be the reason why the visitor id is different from Matomo and our local logging on a landing page.

Olle


(Fabian Dellwing) #2

This means, Matomo anonymized the last octad of the IP address.


(Olle Härstedt) #3

Hi,

Does that also mean that the visitor id is changed?


(Fabian Dellwing) #4

I dont know what you mean. Matomo generates the visitor id on more information than just the ip address.


(Olle Härstedt) #5

Sure, but IP is part of the visitor id generation, right? The thing is, on our landing page I use the PHP tracking API to get the IP and visitor id, and at the same time I can see the IP in Matomo (with ending 0) but with a DIFFERENT visitor id, which screws up all my internal logic. I was just wondering if this IP issue was part of that.


(Fabian Dellwing) #6

Thats possible but I cannot help you with that. Maybe @Lukas has more info about that.


(Lukas Winkler) #7

Hi,

I am also not sure, but as far as I know there is no way (yet) to merge data from PHP and JS tracking about one user.

And keep in mind that GDPR comes into play so matching on IP may not be the best idea.


(Olle Härstedt) #9

Thank you for your answer. So is the difference between PHP and JS the reason why

$piwikTracker->getVisitorId()

returns one visitor id, but the same IP has a different visitor id in the Matomo backend (due to JS tracking)? Is there a solution to this problem?