Create a Location Based Segment

Overview

Creating segments based on contacts' locations can be particularly helpful if you are running a location-specific campaign.

Klaviyo determines a contact's location when syncing a billing address for the contact; if a contact hasn't purchased, their location is determined based on IP geolocation.

Although IP geolocation is used as the industry standard, it can sometimes be inaccurate. Here are a few reasons you might see discrepancies between a contact's IP geolocation and where they actually are:

We check someone's IP whenever they open an email or are captured by our web tracking snippet; if someone is in China when they open the email, their IP will reflect this, even if their typical location is in California.

IPs are not static, and the location affiliated with an IP is thus also not static; this makes IP geolocation imperfect.

Segment Conditions

When you consider the "location" of a contact, you will have to decide which property you would like to use for segmentation. You can choose between country, state/region, zip code, or timezone.

For example, if we wanted to send emails to only those located in either France or Massachusetts, we would create two similar conditions for this segment, but one would use "Country" and the other would use "State/Region" as the property dimension:

Options for Further Targeting

The above example shows a segment that will capture all profiles where the "Country" property is set to France or where the "State/Region" is set to Massachusetts. By using the OR connector between these two conditions, we are making the segment more inclusive -- someone can be from France but not from MA (and vice versa) and still make it into our segment.

If you want to make your segment more exclusive, you can add conditions separated with an AND connector. In doing so, you're saying that all conditions must be true in order for someone to make it into your segment.