---
updatedAt: 2026-01-22T11:10:36.000Z
---

# Get User Location

Returns location information about the site visitor. `DY.geoFields` returns the country, state, and city. `DY.geoCity` returns only the city.

**Syntax**

```
DY.geoCity
```

```
DY.geoFields
```

**Examples with results**

```
> DY.geoCity
> "US_NJ_Clifton"
> DY.geoFields
> {city="Clifton", state:"New Jersey", country:"United States"}
```