- Step 1: Create your MaxMind account
- Step 2: Find and copy your MaxMind Account ID
- Step 3: Generate your MaxMind license key
- Step 4: Enter your MaxMind credentials on your LMS
- Step 5: Download the GeoLite2 City Database and Contact LMS Support
- Step 6: Verify that automatic currency selection is working
- Troubleshooting: What if the database download fails?
- You're all set!
Your LMS site is capable to automatically display prices in a visitor’s local currency based on their country.
To identify a visitor’s country, the LMS uses the MaxMind GeoLite2 City database. MaxMind provides this database for free, but you’ll need to create an account and generate a license key to use it.
This guide will walk you through creating your MaxMind account, connecting it to your LMS, and enabling automatic database updates.
Before you begin: Make sure you have access to your site’s administrator account and an email address to create Maxmind account.
Step 1: Create your MaxMind account #
First, you’ll need a free MaxMind account to access the GeoLite2 City database.
- Visit the MaxMind GeoLite2 sign-up page
- Register using an email address that your organization controls.
- Check your inbox for a confirmation email from MaxMind. Confirm your email address and sign in to your new account.
- When prompted, review and accept the GeoLite2 terms and conditions.
Important: You must accept the GeoLite2 terms before you can access the free GeoLite2 City database.
Step 2: Find and copy your MaxMind Account ID #
Every MaxMind account has a unique Account ID. You’ll need this number when connecting MaxMind to your LMS.
- Sign in to your MaxMind account.
- Open your Account Summary page.
- Find and copy your Account ID.
Your Account ID is a number, not your email address. You can also find the number in your browser’s address bar after signing in.
For example: https://www.maxmind.com/en/accounts/12345/ . In this example, 12345 is the Account ID.
Step 3: Generate your MaxMind license key #
Next, create a license key. This key allows your LMS to securely access and download the MaxMind database.
- In your MaxMind account, navigate to Account → Manage License Keys. You can also open the Manage License Keys page directly after signing in.
- Click Generate new license key.
- Give your license key a recognizable name, such as your LMS’s name.
- Click Confirm to generate the key.
- Copy the generated license key and store it securely. You’ll need it in the next step.
Important: Save your license key now
MaxMind displays your license key only once. If you leave the page without copying it, you’ll need to generate a new key.
Keep your license key private, just as you would a password. Do not share it through email or chat.
Step 4: Enter your MaxMind credentials on your LMS #
Now that you have your Account ID and license key, it’s time to connect MaxMind to your LMS.
You’ll need site administrator access to complete this step.
- Sign in to your LMS as an administrator.
- Navigate to Settings → Location → Location settings.
- Find the GeoIP City database setting. Leave the existing file path unchanged.
- Locate GeoIP Database Edition and select GeoLite2-City. Note – Choose GeoIP2-City only if you have a paid MaxMind subscription for that edition.
- In the MaxMind account ID field, paste the numeric Account ID you copied in Step 2.
- In the MaxMind license key field, paste the license key you generated in Step 3.
- Click Save changes.
Step 5: Download the GeoLite2 City Database and Contact LMS Support #
After saving your MaxMind credentials, you’ll need to download the GeoLite2 City database file and share it with the LMS Support team to complete the setup.
Follow these steps:
- Sign in to your MaxMind account.
- Navigate to GeoLite → Download Files.
- Find GeoLite2 City in the list of available databases.
- Click Download GZIP to download the database file to your computer.
- Contact LMS Support using either of the following methods:
- Email: Send an email to the LMS Support team.
- Support ticket: Create a new support ticket through your LMS support portal.
- Attach the downloaded GZIP file to your email or support ticket. Mention that you’ve completed the MaxMind setup and need assistance installing the GeoLite2 City database.
- The LMS Support team will upload and configure the database on your LMS.
Note: You don’t need to extract the GZIP file. Share the downloaded file as it is with the LMS Support team.
Step 6: Verify that automatic currency selection is working #
Your MaxMind setup is now complete. Let’s check that the database downloaded successfully and that currency selection is working as expected.
- Check country detection – Confirm that your LMS can identify the country of a visitor using a public IP address. Private IP addresses, such as 127.0.0.1 and 10.x.x.x, cannot be located using the MaxMind database.
- Check automatic currency selection – If your store has more than one currency enabled, visitors should see prices in their local currency when that currency is supported. If a visitor manually selects a different currency using the currency selector, their choice will be retained.
If MaxMind isn’t configured or a visitor’s country cannot be determined, prices will remain in your store’s default currency.
Troubleshooting: What if the database download fails? #
If your website cannot download the GeoLite2 City database, review these common setup issues.
|
Possible issue |
What to check |
|---|---|
|
Incorrect Account ID |
Make sure you entered your numeric Account ID, not your email address. |
|
Incorrect license key |
Check that you copied the complete license key without extra spaces. |
|
GeoLite2 terms not accepted |
Sign in to MaxMind and confirm that you’ve accepted the GeoLite2 terms. |
|
Incorrect database edition |
Make sure |
|
Currency auto-select settings not enabled |
Make sure settings ‘Auto-select currency by geo-location’ is checked |
You’re all set! #
Your website is now configured to use MaxMind’s GeoLite2 City database for automatic currency selection.
When visitors open your LMS, their country can be detected and, where supported, prices will be displayed in their local currency. They can still manually change the currency using the currency selector.
The database will continue to receive updates automatically through the site’s scheduled task.





