ThaDafinser / Piwik-IntranetGeoIP

Piwik plugin to locate all locale data of a user based on the IP address/subnetwork (country, region, city, latitude, longitude, provider, ...)
MIT License
23 stars 14 forks source link

Custom variables #36

Open lazmo88 opened 7 years ago

lazmo88 commented 7 years ago

Hi there @ThaDafinser, I am wondering if it is possible to use custom variable instead of IP to update the geolocation lat/lon with this matter plugin?

Let's say I am setting a custom variable "location" => "Home" via JS tracking api. Would it be possible to define lat/lon for "Home" instead of IP range?

It's a weird setup, but would save my day 😂

ThaDafinser commented 6 years ago

Probably not. But if the IP is not important, you could overwrite the IP send from JS to a generic one and then you can match again with an IP range.