Skip to content
Tracking and technical

What is IP geolocation?

2 min read · Updated · By the Reveata team

Short answerIP geolocation is estimating where an internet user is, usually their country, region and city, by looking up their IP address in a database that maps address ranges to locations.

Map of the united states covered in colorful pins
Photo by Stephen Harlan on Unsplash

Every request to a website carries the IP address it came from. Addresses are handed out in blocks to internet providers, mobile networks and companies, and those blocks are mostly used in known places. Geolocation databases collect that knowledge, so an address can be turned into a likely country and city without asking the visitor anything.

How accurate is it?

It depends on the level you ask for.

Level Typical reliability
Country Usually right
Region or state Often right
City A reasonable guess, often the location of the provider's equipment rather than the person
Street or house Not possible from an IP address alone

Database providers publish their own accuracy figures; there is no single number that holds everywhere. Accuracy also varies by country and by type of connection.

What throws it off

  • VPNs and proxies. The location is the VPN's exit, not the person.
  • Mobile networks, which can route traffic through a distant gateway.
  • Corporate networks that send all staff traffic through one office.
  • Privacy relays such as Apple's iCloud Private Relay, which hide the visitor's own address behind the relay's.
  • Cloud servers, where the location is the data centre; see data-centre traffic.

Treat city reports as patterns, not facts about individual people.

How Reveata uses it

Reveata derives country, region and city from the IP address on its server, then discards the address. IP addresses are never stored (Privacy, cookies and cookieless mode).

The lookup uses a MaxMind GeoLite2 database stored on Reveata's own servers, so visitor IP addresses are not sent to MaxMind or any other third party for it. The servers only download database updates from MaxMind (Privacy Policy).

Location then powers:

  • the location reports and the country, region and city filters;
  • the live map in Realtime;
  • Exclude countries under Settings → General → Exclusions. A visit whose location is unknown is always counted, so an exclusion never hides traffic by guesswork (Exclusions).

Behind your own server proxy, Reveata can only locate visitors correctly when the proxy sends the visitor's address with a valid proxy secret. Otherwise every visit appears to come from your proxy's location (Proxy through your own server).

Privacy

An IP address can be personal data, and in some cases so can a precise location. Turning the address into a country or city and then dropping it, as Reveata does, keeps far less than storing addresses in logs. Whether that is enough for your obligations depends on your setup and your visitors' countries; this is not legal advice.

Frequently asked questions

Why do visitors show up in the wrong city?

Their provider's equipment, a VPN or a mobile gateway is in another place. Country-level numbers are much more dependable than city-level ones.

Can IP geolocation identify a person?

Not on its own. It gives an approximate area shared by many people. Combined with other data it can narrow things down, which is why analytics tools should not keep raw addresses.

Does Reveata use GPS or browser location?

No. Location comes only from the IP address, worked out on Reveata's servers. The script never asks visitors for their location.

See it with your own numbersReveata ties every visit and sale to the source that brought it. Add your website in a minute.
Get started
Was this page useful?
GlossaryWhat is IP anonymisation?IP anonymisation is the practice of removing or truncating a visitor's IP address, for example by zeroing its last part or discarding it after use, so the stored data no longer points to one device's internet connection.GlossaryWhat is data-centre traffic?Data-centre traffic is visits whose IP address belongs to a cloud provider, server host or hosting network instead of a home, office or mobile internet connection, which usually means scripts, scrapers or automated browsers rather than people.GlossaryWhat is personal data?Personal data is any information that relates to an identified or identifiable living person. Under the GDPR that includes not only names and email addresses but also online identifiers such as IP addresses, cookie ids and device ids, when they can single someone out.GlossaryWhat are Core Web Vitals?Core Web Vitals are three measurements Google uses to describe a page's real-world user experience, namely Largest Contentful Paint (loading), Interaction to Next Paint (responsiveness) and Cumulative Layout Shift (visual stability).GlossaryWhat are event properties?Event properties are key–value details attached to an analytics event, such as the plan chosen or the button clicked on a signup event, so you can break one event down by those details instead of creating a separate event for every variation.GlossaryWhat is a canonical URL?A canonical URL is the one preferred address you want search engines to index and show for a page whose content is reachable at several URLs, usually declared with a rel="canonical" link in the page's head.