Installing the module

To install GeoIP 2 module for Nginx please follow the instructions in their README

Configuring Matomo

After setting up GeoIP 2 for Nginx, you may need to adjust the Matomo GeoIp2 settings, so Matomo uses the correct server variables. You can do that within the General Settings.