Location Tracking

Location collection captures a user’s most recent location when the app was opened using GPS location data. You can use this information to segment data based on users who were in a defined location.

Enabling Location Tracking

To enable location collection on your app, take a look at the appropriate developer guide for the platform you are using:

In general, mobile apps will use the device’s GPS chip and other systems (such as Wi-Fi scanning) to track a user’s location. Web apps will use WPS (Wi-Fi Positioning System) to track a user’s locations.

Note that the accuracy of your location tracking data may be affected by whether or not your users have wi-fi enabled on their device. Android users can also choose different location modes—users that are on “Battery saving” or “Device only” mode may have inaccurate data.

Location Targeting

Using location tracking data, you can set up location-based campaigns and strategies. For example, you may want to run a promotional campaign for users that live in a particular region, or exclude users in a region that has stricter regulations.

See this article for more information on location targeting.

Hard Setting the Default Location Attribute

You can also use the users/track endpoint in our API to update the current_location default attribute—for example:

1
2
3
4
5
6
7
8
9
10
11
https://[your_braze_rest_endpoint]/users/track
Content-Type: application/json
Authorization: Bearer YOUR_REST_API_KEY
{
  "attributes": [ 
 	{
 	  "external_id" : "XXX",
 	  "current_location" : {"longitude":-0.118092, "latitude": 51.509865}
      }
   ]
}

Technology Partners

You can also leverage location tracking with some of our partners, for example:

WAS THIS PAGE HELPFUL?
New Stuff!