matomo-org / matomo

Empowering People Ethically with the leading open source alternative to Google Analytics that gives you full control over your data. Matomo lets you easily collect data from websites & apps and visualise this data and extract insights. Privacy is built-in. Liberating Web Analytics. Star us on Github? +1. And we love Pull Requests!
https://matomo.org/
GNU General Public License v3.0
19.94k stars 2.66k forks source link

GeoIPCity Only showing region #10386

Closed wblaircox closed 5 years ago

wblaircox commented 8 years ago

Hi folks,

Just wonder if anyone else has come across the issue that after a clean install, followed everything to the letter, installed PHP and PECL versions - it still does not show the city. Just the IP and the region (country). I first noticed this several months ago on a client install and chalked it up to being an error with the installation. Spent all day on this, done everything I can think of, even trying other DB's I could find (with exception of purchasing the full version).

My first thought is that the legacy lite db is now past it's best before and this is the best you can get. Thoughts? Cheers!

gaumondp commented 8 years ago

Did you rename the file ? The Admin=> Geolocation page is your friend.

Watch also your phph.ini setting for 'geoip.custom_directory' just in case.

wblaircox commented 8 years ago

@gaumondp Checked the file, looks good. Deleted it several times and retried via the Admin +> Geolocation page. PHP.ini is setup correctly, according to the documentation instruction. Would there potentially be something blocked in mod_sec? I find that thing is root cause of many issues.

hpvd commented 8 years ago

at which place are you looking? in visitor log? If so it maybe related to this: https://github.com/piwik/piwik/issues/9705

wblaircox commented 8 years ago

Shows the same on Visitor Log, Real-Time Map, the Geo config page to the right where you can test it. I followed the thread you posted a bit, but I'm not seeing a solution, seems to be a rabbit hole of more threads. Since this appeared on my server in early spring for another site, I'll check mod_sec to see if something is being blocked.

UPDATE: Actually it partially works on the real-time map. It shows a city location for a US location, but then when you go into the details, it is only the IP. Very odd, isn't it? Where could I look to solve this?

wblaircox commented 8 years ago

@gaumondp @hpvd Mod_sec has been checked - no issues. Tried changing php.ini to;

;added for use with Piwik analytics extension=geoip.so geoip.custom_directory = "/home/~/public_html/~/misc"

Just ended up installing IP2Location. Not sure if the two can work together.

tsteur commented 8 years ago

In PrivacyManager do you maybe have IP Anonymization enabled and disabled to use the IP for enriched reports? You can check in Administration => Privacy Manager

wblaircox commented 8 years ago

I have it set to no.

On Mon, Aug 15, 2016, 12:35 AM Thomas Steur notifications@github.com wrote:

In PrivacyManager do you maybe have IP Anonymization enabled and disabled to use the IP for enriched reports? You can check in Administration => Privacy Manager

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/piwik/piwik/issues/10386#issuecomment-239723200, or mute the thread https://github.com/notifications/unsubscribe-auth/AMTKCcTauS8EcNS8g5iHhS8thXeY8hYtks5qf96VgaJpZM4JfoDw .

mattab commented 8 years ago

@wblaircox is it correct that your GeoIP PECL setup is marked as "installed" in the geolocation admin, but does not actually detect any country or cities of any of your visitors?