GeoLocation based on internal IPs only


#1

Hi all
We’re using Piwik (which is very great) in our company to track internal sites only.
It means, all users’ IPs are internal and GeoLoaction DB doesn’t help at all.
Is there a way to either create my own geo db and use it or to edit existing DB?
All other ideas will be welcome.

Thanks! :)-D


(Matthieu Aubry) #2

Maybe this third party plugin could help? (warning: i have not used or tested it!) http://plugins.piwik.org/IntranetGeoIP


#3

Hi, Matt
Thank you for your reply.
I’ve tried to install it but it requires new version of php…

How can I update it?

BTW, is there a way to determine where the Piwik app is installed (server name)?
(I know, it’s a weird question…)

Thanks!


#4

I use Piwik in a somewhat unusual manner as well, to track use of kiosks that run on an internal network, to Piwik they all show up from the same IP (the proxy).

I would love the ability to override the location at the tracking source. It might be useful to others as well, instead of depending on whatever service to reverse geocode an IP, which will probably be a proxy, they can chose to try and use features like chrome’s location information.


(Matthieu Aubry) #5

I would love the ability to override the location at the tracking source.

it’s possible to override location data used by Piwik, see the tracking API documentation: Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3

see parameter region + country + lat + long etc.


#6

see this plugin: http://plugins.piwik.org/IntranetGeoIP