mvv_vmd
(Machiel)
July 27, 2021, 8:49am
1
Hi, I would like to set the location of our users on our internal network. I had this set with the IntranetGeoIP plugin, however this is no longer available.
Does anyone know of a way to configure the location on a local ip range? They all register as located in the USA which is not correct as we are in a EU country.
Many thanks for any help on this in advance.
Lukas
(Lukas Winkler)
July 27, 2021, 9:04am
2
Hi,
The best solution is probably for someone to fork the plugin and make it compatible.
At least according to people here:
opened 04:37PM - 01 Sep 20 UTC
Hi, hope you are doing well!
Matomo 4 is progressing steadily and it would be… great if this plugin was also [available for it](https://matomo4-plugins.lw1.at/).
[Migrating the plugin](https://matomo.org/blog/2020/08/matomo4-make-your-plugin-compatible-now/) should be pretty simple as there were not many breaking changes.
You can find the migration guide here: https://developer.matomo.org/guides/migrate-matomo-3-to-4
It boils down to:
- update your dev environment to 4.x-dev
- update your plugin.json (new major version of the plugin and require `>=4.0.0-b1,<5.0.0-b1`)
- check that everything still works fine
- commit this to a new branch (e.g. `4.x-dev`) and make this branch the default in the github settings
- tag and push a new release to publish it to the marketplace
If you later fix a bug and also want to backport it to the 3.x plugin, you can cherry-pick the commit to the old branch, release a new version (lower than the one for 4.x) and publish it and 3.x users should get this update.
If you have questions about anything, just ask me!
for now just modifying the supported Matomo versions in the plugin.json is enough for the plugin to work.
mvv_vmd
(Machiel)
July 27, 2021, 9:38am
3
Thanks for you reply, I had seen that one, I do try to avoid such fixes if possible.
So far I have not found any better solution so I might solve is like this and hope for the best.