How to create a location-based segment

read
Last updated at:

You will learn

Learn how to use location-based segments to run a specific campaign by region, target a form 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. For more information on how location is set, head to our article on the subject.

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

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 to be sure you’re not in violation of GDPR and GDPR UK regulations.

A segment of customers impacted by GDPR

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 US, EU, and Canada. 

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 Newsletter 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 is in or not in a list > is in > Newsletter

A segment of subscribers near a certain zip code

Additional resources

x
Was this article helpful?
204 out of 293 found this helpful