Piwik tracking API not working for some IP addresses (or something else wrong)

We are sending data to piwik using custom log files, we can track impressions/visits perfectly.

When we try to send ‘outlink’ click events, it does not seem to be storing them all.

For example, this works: http://mypiwikip.com/piwik/piwik.php?idsite=2&ua="Mozilla%2F5.0+(Windows+NT+6.3%3B+WOW64)+AppleWebKit%2F537.36+(KHTML%2C+like+Gecko)+Chrome%2F38.0.2125.111+Safari%2F537.36"&cdt=2014-11-17+11%3A06%3A54&_id=30f404402b6d49ac87fd6ee64d86c9df&link=http://outlink.com&rec=1&url=http://domain.com&apiv=1&token_auth=af2a9e342cf4c662c9999d0e05819b13&urlref=http://urlref.com/abcxyz&cip=82.146.146.186

But when I replace the cip with value 66.249.84.148, nothing imported to piwik.

Has anyone had a similar problem?

Thanks

remove the “_id” variable in the request. As “_id” should be a unique identifier it will not update the ip for that visit.

for me the “_id” caused your described problem. if it is set the visit is not counted as new such that the old ip will remain.
to see if this is the case set “[Tracker] debug = 1” in config.ini.php.

make your request through a browser and look for text like “The visitor was not matched with an existing visitor…”