UXWizz
WebsitePricingDemoTwitter (X)
  • Introduction
  • 🛠️ Installation
    • Requirements
      • Limitations
      • Server specs (CPU, RAM)
    • Installation guide
      • Uploading the script
      • Creating a MySQL database
      • Running the installer
    • Install on a new server
      • Ubuntu 20.04 (or higher)
      • DigitalOcean
    • Docker
      • Via Docker Compose
      • Standalone Docker image
    • Adding the tracking code
      • Automatic SPA pageview tracking
      • Add tracker to Next.js App
      • Add tracker to React Router App
    • Optimization tips
      • MySQL/MariaDB
      • Auto-delete old data (cron jobs)
      • Apache
    • Frequently Asked Questions
  • 🔧JavaScript API
    • Tags
    • Events
    • Hooks/callbacks
    • Other API functions
    • Session Recording
      • Ignore specific elements
  • 📖Guides and features
    • Goals (NEW!)
    • Ask AI (NEW!)
    • Basic usage
    • A/B testing
    • Usage tips
    • Dashboard user access level
    • Resetting the admin password
    • Database querying
    • Technical details
      • IP Geolocation
    • Troubleshooting
      • Agency
        • MultiDB
      • Dashboard
        • Refreshing dashboard sub-page leads to 404 error
        • Website iframe not loading (x-frame-options)
        • License says "invalid"
        • Updating Fails
      • Tracking
        • No data is being recorded
        • Can't include tracker via Google Tag Manager
        • The A/B test JS file is missing
      • WordPress
        • Cloudways 403 Forbidden screen on WordPress
        • NGINX 403 Forbidden screen on WordPress
    • Extending the dashboard
    • Support
    • Migrating to a new server
  • 🎓Useful Examples
    • Feedback form (polls)
    • Tracking 404 Pages
    • Tracking UTM parameters
    • Tracking Google Ads GCLID
    • Storing user device types
    • Track video playback
  • 📜About
    • Changelog
    • Personal Data Information
    • Privacy Policy (uxwizz.com)
    • Licenses and pricing
    • [Deprecated] License Subscriptions
Powered by GitBook
On this page
  • Manually uploading an IP geolocation database
  • Increasing the accuracy of IP geolocation

Was this helpful?

  1. Guides and features
  2. Technical details

IP Geolocation

PreviousTechnical detailsNextTroubleshooting

Last updated 1 year ago

Was this helpful?

The Country and optional City of each recorded user session is stored in the database and displayed in the dashboard.

The geolocation is done based on user IP using the freely available IP geolocation database provided by .

To switch between Country and City level tracking go to Settings->Tracking settings and click "Download city geoip database" (or "Disable" to delete it):

UXWizz automatically detects whether a city database is present or not and will use it for newly tracked sessions.

Manually uploading an IP geolocation database

Country-level geolocation:

If no city database is present, the default country one will be used ip-database.mmdb

The default ip-database.mmdb database will be overwritten automatically every time you update to a new UXWizz version.

To enable city-level geolocation:

  • Upload an IP geolocation database file named ip-database-city.mmdb to your UXWizz server inside the /server/helpers/geolocation/ folder

  • Download the mmdb file (extract it if the extension is .gz)

  • Rename it to ip-database-city.mmdb

  • Place it inside the /server/helpers/geolocation/ folder.

An Apache server restart might be needed for PHP to detect the new file.

To disable city-level geolocation rename or remove the ip-database-city.mmdb.

Increasing the accuracy of IP geolocation

I recommend the .

IP geolocation is in general only an approximation and not extremely accurate. One way to increase the accuracy is to purchase a more accurate database like the one and preferably update every few months to the latest version.

📖
City Lite Free DB from db-ip.com
DB-IP Location
https://db-ip.com