How to create a location-based segment

Estimated 3 minute read
|
Updated Dec 19, 2024, 10:14 AM EST
You will learn

You will learn

Learn how to use location-based segments to send campaigns by region, target forms to customers in a particular area, or better understand a subset of your customers. Note that Klaviyo determines a profile's location when syncing a billing address for that contact or, if they have not yet purchased, by tracking their IP geolocation. Learn more about how location is set on Klaviyo profiles

Create a location-based segment

Create a location-based segment

When creating a location-based segment, use the condition of Properties about someone. Then, choose between country, state/region, zip code, or timezone to further define this segment.

For example, if you want to create an email targeting North Americans in colder climates, you could use the following segment definition: 

Properties about someone > Country > equals > Canada

OR

Properties about someone > State / Region > equals > Massachusetts

OR

Properties about someone > State / Region > equals > ...

A segment of profiles in Canada and New England

Note that, by using the OR connector between these conditions, your segment will be more inclusive — so, someone can be from Canada but not from Massachusetts (and vice versa) and still make it into this segment. If you instead want to make your segment more exclusive, add conditions separated by an AND connector. In doing so, you're saying that all conditions must be true in order for someone to be included. For more information, head to our AND vs. OR guide.

Create a segment of profiles impacted by GDPR and UK GDPR

Create a segment of profiles impacted by GDPR and UK GDPR

People located in the EU or UK are affected by certain data protection laws (GDPR and GDPR UK, respectively). To create a segment of profiles in these locations, use this definition:

If someone is or is not within the EU (GDPR) > is within European Union

OR

Properties about someone > Country equals United Kingdom

If you have profiles that contain multiple variations of “United Kingdom” stored in the location field (for example, “UK” or “united kingdom”), you should include all spellings in your segment.

Use this location-based segment if you only want to target your European customer base, or to exclude these customers from certain communication.

A segment of customers impacted by GDPR

Segment by someone’s proximity to a location

Segment by someone’s proximity to a location

You can also create location-based segments by focusing on profiles within a specific radius of a particular zip code (i.e., postal code). This functionality can only identify profiles in the:

  • United States 
  • European Union
  • United Kingdom
  • Canada
  • Australia  
  • New Zealand

For UK zip codes, we support filtering by outward code, not inward code or both outward and inward code (usually separated by a space). For example, if a person's full zip code is "SW1W 0NY," only the first piece ("SW1W") will work for these filters.

Let's say, for example, you have a popup shop in Boston and want to invite Boston-based customers who are in your email list. Create a segment with the following definition: 

Someone's proximity to a location > Person is within > 30 miles of > 02110 in > United States of America

AND

If someone can or cannot receive marketing > can receive email marketing > because person subscribed

A segment of profiles located near a certain zip code

To segment on a profile's proximity to a location, a profile must have either the zip code and country properties set, or their IP address captured for geolocation

Additional resources

Additional resources

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Live training
Join a live session with Klaviyo experts to learn about best practices, how to set up key features, and more.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type