Using CloudFlare for Geolocation
Last updated
Was this helpful?
Article Topics: Setup
NATS uses GeoIP to determine the location of visitors who hit your site. This is to ensure NATS can provide the best reporting to our customers. Should you wish to use CloudFlare IP geolocation, we have provided a way to accomplish this.
CloudFlare's IP Geolocation adds the cf-ipcountry header to all requests to your server, while cf-region-code adds the visitor's region code. NATS will use these headers, if present, to determine the visitor's country and/or region.
Important: Should the headers not be present, NATS will use the IP_FILTER settings.
Log in to your Cloudflare account and go to a specific domain.
Go to Network.
Switch the toggle for IP Geolocation to On.
Learn more at https://developers.cloudflare.com/network/ip-geolocation/.
The Prefer Cloudflare Geo Location setting can be found in the Surfer Section of the Configuration Admin, underneath the Tracking settings. Enabling this setting will prioritize the CloudFlare headers, falling back to the settings configured in IP Filter.

Last updated
Was this helpful?
Was this helpful?