Location detected

Learn how to track the user's geolocation.

This event tracks the location of users accessing the application, providing details such as country, region, city and coordinates.

Croct's mascot amazed
Automatically tracked

We track this event for you, so no action is needed on your side.

Input properties

This event has no input properties.

Processed properties

These properties are automatically tracked:

location

The available information about the user’s location.

Payload examples

Below is a payload example for this event:

12345678910111213141516171819202122232425262728
{  "type": "location-detected",  "location": {    "continent": "NA",    "country": "US",    "region": {      "name": "California",      "code": "CA"    },    "city": "Los Angeles",    "district": "Arts District",    "timeZone": "America/Los_Angeles",    "coordinates": {      "latitude": 34.0549,      "longitude": 118.2426    },    "currency": {      "name": "US Dollar",      "code": "USD"    },    "phoneCode": "+1",    "population": 3879000,    "postalCode": "90021",    "languages": ["en-us"],    "tags": ["city", "beach", "coastal"],    "source": "IP"  }}