Weather criterion
Last updated
Was this helpful?
Last updated
Was this helpful?
Weather is a triggering criterion that enables defining a .
To learn how to create a segment, please refer to this .
The weather criterion enables you to test or personalize your visitors' experiences based on real-time weather data.
AB Tasty offers you different dimensions to work with based on weather conditions. In the first field, you can either include or exclude the audience you’ll be configuring. Then, two main elements will help you define your trigger:
A specific type of weather: You can choose between Clear, Clouds, Drizzle, Dust, Fog, Mist, Rain, Smoke, Snow, Thunderstorm, or All.
A range of temperature: select here the range of temperature you want your campaign to be based on, starting from the minimum value to the maximum value of this range
If you put only one min temperature, the targeting will be done on all the values equal to or above that value.
If you put only one max temperature, the targeting will be done on all the values equal or under that value.
The weather criteria is a key pillar in terms of personalization and will help you build a strong strategy based on what your visitors are experiencing in real-time. Let’s imagine a big drop in temperature in mid-season. You could promote and display with ABTasty a specific card or banner on your website to highlight your snow/winter coats with specific price discounts.
Inside the trigger builder, you can proceed as follows:
Select the weather criteria
Select the “is” operator
Select the “Snow” type of weather
The range could go from 0F° to 32F°
With that kind of configuration, your campaign will be displayed only when your visitors are exposed to snowy conditions 😎
To display the right temperature metric (either Celsius or Fahrenheit), AB Tasty refers to your account language settings. We will display Fahrenheit by default if your language configured is the English, and Celsius for the other languages. The trigger will automatically use the right reference system.
Weather detection goes through a few different steps:
We interpret the visitor geolocation from its IP
We call a specific service called “Open weather map” to know what is the current weather on that particular geolocation
We store this information in the session storage, inside the same object as the Geoloc one (“ABTastyGeoloc”)
This specific weather service is called only when our tag detects the weather triggers being used in one active campaign on your account. When the session is initiated, the tag checks if we already have the information stored in the session storage. If not, he proceeds with the weather verification based on the user’s IP (only if we have his/her consent) that we described before.
Need additional information?
Always happy to help!
Submit your request at