Geotargeting involves delivering distinct content or advertisements to users based on their geographical location. The user's location can be determined through various means, such as IP addresses, device settings, or GPS coordinates.
In the context of Statsig, geotargeting serves to regulate the exposure of specific features or experiments based on users' geographic positions. For instance, you may wish to test a new feature solely with users situated in a particular country or region.
Statsig offers country-level geotargeting by automatically deducing the user's country from their IP address within client SDKs. However, the platform does not natively support state-level geotargeting. To incorporate state-level geotargeting, you'd require an additional geolocation service to identify the state and establish it as a custom field in the user profile. Subsequently, you can use this custom field for targeting.
Keep in mind that while the IP address can infer the user's country, more specific geolocation data like state or city necessitates explicit provision during user login or event logging.
Apart from geotargeting, Statsig provides the means to target users based on various attributes, including device type, operating system, app version, and custom attributes defined by you. This versatility enables precise and flexible user targeting for experiments and feature deployments.