Please note that to detect the country, we use the Digital Envoy database. This database contains IP ranges and country identification and it's constantly updated. It's in fact among the most precise databases available on the market.
We suggest that you check which database is used by the software/platform you are using to detect the country IP. The use of different databases will explain the discrepancies between statistics.