# Show a store-opening banner to mobile users in California only

Asked by trentk on 2025-05-06. Tags: cql, audiences, geo, device.

hey all. We're opening our first flagship on the west coast next month, big
deal for us. I want an announcement banner but only for people who'd actually
care: mobile visitors located in California. Our data says store-locator
traffic is like 80% mobile so desktop can keep the regular banner.

Can I mix a device condition and a location condition in the same audience or
do I have to pick one? And do I need to add any geo lookup stuff to the site
for the location part to work

## 1 answer

### Answer from ellie_p (2025-05-07)

You can mix them directly, it is one condition:

```cql
device's category is "mobile" and location's stateCode is "ca"
```

No geo lookup code needed on your end. Location is detected automatically (the
`locationDetected` event is tracked for you), so the `location` variable is
just there to query.

If you later want to get more granular around the store itself, location
exposes a lot more than state: continent, country, region/state, city,
coordinates, currency, timeZone, languages, and postalCode. City-level
targeting looks like:

```cql
location's cityName is "San Francisco"
```

Good luck with the opening.
