Using location data for personalisation
Location data can be a useful starting point for digital personalisation, even when a visitor has never been to your website before. While deeper personalisation often relies on account data, previous behaviour, or known customer segments, location-based signals can still help businesses tailor content, imagery, messaging, and recommendations from the very first visit.
This makes location data especially useful for testing. It can help businesses explore whether region-specific content, weather-based messaging, local imagery, or location-aware recommendations improve relevance and engagement for different audiences.
What location data can tell you
Depending on the technology being used, location data can reveal a range of useful details about a visitor. These may include country, city, region, approximate latitude and longitude, internet service provider, referrer, user agent, and in some cases local weather conditions. While not every signal is suitable for direct personalisation, together they can provide helpful context for building more relevant digital experiences.
Two of the most common approaches are IP-based geolocation and HTML5 geolocation. Each offers different levels of accuracy and comes with different trade-offs in terms of privacy, permission, and user experience.
IP address based location data
IP-based geolocation is one of the easiest ways to personalise content for first-time visitors because it does not require the user to log in or explicitly share their location. Based on the available IP data, a website can often identify a user’s country, region, city, and approximate coordinates. In this example, the location data is being provided by ipinfo.io.
With this type of information, businesses can test simple personalisation ideas such as displaying a local map, showing a country flag, adapting copy for a specific market, or changing visual content to better match the visitor’s likely location.
IP-based data can also be used to surface supporting contextual information such as the visitor’s ISP, referring page, user agent, or detected IP address. While these details are not always shown directly to users in a live experience, they can be useful for understanding audience context and building location-based logic for testing and personalisation.
Examples of personalisation using IP-based location data
A business might display a country flag or local place name to make the experience feel more relevant. It might show a map with a marker for the visitor’s approximate location, surface region-specific contact details, or adjust calls to action based on the market they appear to be visiting from.
Location data can also be combined with weather services to display current conditions, temperature, humidity, wind, sunrise, and sunset times. This opens up opportunities for more contextual personalisation, such as changing imagery, highlighting location-relevant products, or tailoring content based on seasonal and environmental conditions.
HTML5 geolocation based location data
For more accurate location data, websites can use HTML5 geolocation. This approach asks the visitor for permission to access their location and, if accepted, can provide a much more precise result than IP-based lookup alone.
Because this relies on user consent, HTML5 geolocation should be used carefully and only where it clearly adds value to the experience. When the user agrees, the website can access more accurate coordinates and use them to display tailored content, local information, and more precise weather-based or place-based recommendations.
Why HTML5 geolocation can be useful
The main benefit of HTML5 geolocation is accuracy. Instead of estimating the visitor’s location from their IP address, it can identify a much more precise latitude and longitude. This makes it more useful for experiences where local context matters, such as store finders, event listings, local offers, weather-based messaging, or any journey where location relevance can reduce friction or improve usefulness.
In the example on this page, once permission is granted, the experience dynamically updates to show the visitor’s coordinates, nearest city, current weather conditions, temperature, air pressure, and wind speed. That information can then be used to trigger simple but relevant recommendations.
Weather-based personalisation
One practical use of location data is weather-based personalisation. If the visitor’s approximate or precise location can be determined, weather conditions can be used to tailor messaging, imagery, or product suggestions in real time.
For example, a site might promote umbrellas or wet-weather gear when rain is likely, highlight warm clothing during colder conditions, or suggest lighter seasonal products during warmer weather. In the example shown here, product suggestions are based on a simple temperature rule: if the temperature is below a certain threshold, winter-related items are shown, while warmer conditions trigger swimwear suggestions.
This is a basic example, but it demonstrates how contextual data can be turned into a more relevant experience. The real value comes from testing whether these changes actually improve engagement or conversion performance.
What this means for personalisation and testing
Location-based personalisation can be useful even before a business knows much else about the visitor. For first-time users, it offers a way to introduce relevance without relying on account history or previous browsing behaviour. For returning users, it can complement existing behavioural and customer data to create a richer and more context-aware experience.
From a CRO perspective, the opportunity is not just to personalise for the sake of it, but to test whether location-aware changes improve outcomes. Localised imagery, market-specific messaging, weather-based product suggestions, or nearby service information may all be worth testing depending on the business model and user journey.
Things to keep in mind
Location data is useful, but it is not perfect. IP-based geolocation can be affected by VPNs, proxies, mobile networks, and shared IP addresses, while HTML5 geolocation depends on user consent. It is also important to make sure any use of location data aligns with privacy requirements and is clearly justified by the value it adds to the visitor experience.
The most effective approach is usually to start with simple use cases, measure the impact carefully, and treat location-based personalisation as something to test rather than assume will always improve performance.
Using location data more effectively
If your business is exploring personalisation opportunities, location data can provide a practical place to start. Whether through IP-based geolocation or HTML5 geolocation, it can help surface relevant context for first-time visitors and create new ideas for experimentation.
Used thoughtfully, location data can support more relevant digital experiences, stronger testing hypotheses, and better insight into how context influences customer behaviour.
Examples of location-based personalisation ideas
Location data can support a wide range of personalisation ideas depending on the type of business and the goals of the experience. A simple example is showing local office details, phone numbers, store information, or service availability based on the visitor’s region. This can make the experience feel more relevant and reduce friction when users are trying to find information that applies to their location.
Another common use case is regional messaging. A website might highlight market-specific offers, local delivery information, event content, or regionally relevant case studies based on where the visitor appears to be browsing from. This can be especially useful for businesses operating across multiple countries, states, or service areas.
Weather-based personalisation is another practical option. If a visitor’s location can be matched to current weather conditions, businesses can test whether showing more relevant imagery, products, or messages improves engagement. For example, colder conditions might trigger winter clothing or indoor product suggestions, while warmer conditions might support seasonal promotions or travel-related content.
Location data can also be used to support language, spelling, currency, or market-specific content choices. For example, a website might adapt terminology, local pricing context, or calls to action depending on whether a visitor is in Australia, the UK, or the United States. These small adjustments can make the experience feel more familiar and easier to trust.
For service-based businesses, location data can help surface nearby options or location-aware next steps. This might include showing the closest branch, suggesting the most relevant contact point, or tailoring lead-generation content based on the visitor’s likely market. As with any personalisation tactic, the key is to test whether these changes genuinely improve relevance, engagement, or conversion performance.
DETAILED VISITOR TECHNICAL DATA
Finally, a whole range of data is available that details such things as the visitors audio and video capabilities and the available screen width and height. These all allow for customising the user experience to each individual user.
SCREEN
| screenWidth | |
| screenHeight | |
| windowWidth | |
| windowHeight | |
| resolution |
DEVICE
| os | |
| touch | |
| phone | |
| tablet | |
| desktop | |
| orientation.portrait | |
| orientation.landscape |
BROWSER
| type | |
| version | |
| fullVersion | |
| string | |
| chrome | |
| safari | |
| opera | |
| firefox | |
| ie | |
| kindle | |
| other | |
| mobile |
CAPABILITIES
| canvas | |
| webGL | |
| rAF | |
| cssTransform | |
| mediaQueries | |
| getUserMedia | |
| audio tag | |
| audio API | |
| audioFormats.mp3 | |
| audioFormats.mp4 | |
| audioFormats.wav | |
| audioFormats.ogg | |
| web audio API | |
| video tag | |
| videoFormats.mp4 | |
| videoFormats.webm | |
| videoFormats.ogg |