How Does AXA Determine a User's Geolocation?

Document ID : KB000015836
Last Modified Date : 28/09/2018
Show Technical Document Details

     App Experience Analytics (AXA) can provide user geolocation data for all monitored mobile and web applications. (


     How does AXA determine a user's geolocation?

AXA versions 16.x, 17.2, 17.3.

     We define the location of the end users in the following manner:

         1 - First, the user's location can be directly provided to AXA. This typically occurs in of two ways. Either the user directly provides this data by enabling the location option in their browser or mobile device or, this information is directly passed to AXA using one of AXA's SDKs. For example, on Android the "setCustomerLocation" call can be used: 

         2 - Should the geolocation not be provided, AXA will check the IP address from http headers sent(X-Forward-IP, X-REMOTE-IP, X-CLIENT-IP etc).If the IP address is public and resolvable to a location, this location is used. However, if the IP address is private or cannot be resolved, the user location is defaulted to 0,0 coordinates (off the coast of Africa).
         3 - Finally, for on-premise AXA installations, an additional option exists in which administrators can create a custom file to map specific IP addresses to geolocations. Do the following to implement this:

              a) Create a custom file named "site_watcher.csv" in $AXA_HOME/GeoIP/

              b) This file is a comma separated list which should contain the following headers: 

           Followed by custom locations. For example:
 CA,1 CA Plaza,Islandia,NY,11749,US,40.8043,73.1690,Northeast,,,,<Dev_IP>,<Site_Mask>,<Site_IP_Low>,<Site_IP_High>
          c) Finally the the Aggregator needs to be restarted for these changes to take effect. This can be done by running:
              $AXA_HOME/bin/ -A
              $AXA_HOME/bin// -A

Additional Information:

     As always, contact CA Support if you have further questions.