A simple module that tracks each time a user logs in and stores browser name, platform, browser version, city, region and user ID into your database.
Install, and activate the module as you would any other module.
Go to configration page: https://example.com/admin/config/ip-lookup/settings.
Put ipdata API key into the form and save configuration.(default key is test)
You can get ipdata API key from https://ipdata.co.