Restore cip from server side API #2343
Labels
Bug
For errors / faults / flaws / inconsistencies etc.
worksforme
The issue cannot be reproduced and things work as intended.
Milestone
This is my first day with piwik. I was trying to setup the website statistics using server side PiwikTracker PHP API. It finally worked out fine, but in my config I encountered a little bug. Because of having always a curl request made from website server to piwik server, I had always the same IP and provider for each visit set in statistics.
Maybe I have something configured badly, but I can't see the 'cip' parameter propagation from the source request in Piwik_Tracker class. I solved the problem manually. In [source:/trunk/core/Common.php] in getIpString() method there's following code:
Working code, properly receiving 'cip' parameter from PiwikTracker request is following:
Now I have users' IP properly tracked.
This may be just workaround and probably there's a better solution.
The text was updated successfully, but these errors were encountered: