-
Notifications
You must be signed in to change notification settings - Fork 298
Maxmind Integration
ruslandoga edited this page Sep 24, 2024
·
11 revisions
Warning
Using city-level databases like MaxMind's GeoLite2-City requires ~1GB more RAM.
This guide shows how to add city-level geolocation to Plausible in three easy steps!
-
Create an account: https://www.maxmind.com/en/geolite2/signup
-
Generate a new license key
-
Add MAXMIND_LICENSE_KEY and MAXMIND_EDITION environmental variables to your environment file restart the container.
$ cd plausible-ce $ echo "MAXMIND_LICENSE_KEY=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" >> .env $ echo "MAXMIND_EDITION=GeoLite2-City" >> .env $ docker compose up -d $ docker compose exec plausible env | grep MAXMIND_LICENSE_KEY MAXMIND_LICENSE_KEY=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
Done! Now the geolocation databases would be automatically downloaded and kept up to date.
Note
Plausible CE is funded by our cloud subscribers. So if you know someone who might find Plausible Cloud useful, please let them know about us!