> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/assets-library/creating-and-managing-triggers/list-of-trigger-criteria/browser-language-criterion.md).

# Browser language criterion

This article will show you how to use this Trigger criterion.

Browser language is a triggering criterion that enables defining a [segment](https://docs.abtasty.com/assets-library/creating-and-managing-segments.md).

To learn how to create a segment, please refer to this [article](https://docs.abtasty.com/web-experimentation-and-personalization/targeting-step/how-to-create-a-segment-who-section.md).

## 📖 Definition <a href="#h_01hhq3qary93a7qskfjcrdmhqb" id="h_01hhq3qary93a7qskfjcrdmhqb"></a>

The Browser language triggering criterion enables you to include or exclude the browser language used by the visitors for their current session.

## 🔎 How does it work? <a href="#h_01hhpyw4abkqmjd1yk9a78xfk5" id="h_01hhpyw4abkqmjd1yk9a78xfk5"></a>

ABTasty gets this information from the browser’s `navigator.language` variable.

## ⚙️ Configuration <a href="#h_01hhq3qaryzxw36050hqj6bmkw" id="h_01hhq3qaryzxw36050hqj6bmkw"></a>

To configure the Browser language criterion, select if you want to include (`is`) or exclude (`is not`) a specific browser language.

Then, select the language you want to include or exclude (according to your previous selection) in the second drop-down list.

If you include a specific browser language, all the other languages will automatically be excluded from the targeting.

<figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FrwxMnp2CnTZ8bX2h1kPk%2Fimage.png?alt=media&amp;token=6b278f0e-354f-4376-a4a8-aa8d9e23cb28" alt="" width="563"><figcaption></figcaption></figure>

Conversely, if you exclude a specific browser language, the other languages will be included in the targeting of your campaign.

<figure><img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2FKUkgycMn9OJApcL0uJWA%2Fimage.png?alt=media&amp;token=fc91a193-abd1-4023-a7d2-5b62cf2c7855" alt="" width="563"><figcaption></figcaption></figure>

## 💡 Use case <a href="#h_01hhq3qaryfs7hese2cfpn7xw2" id="h_01hhq3qaryfs7hese2cfpn7xw2"></a>

You may want to display a message to your most engaged users who speak English. In this case, you need to display the campaign to loyal users using English as their browser language.

To do so, select `is` `English` in the Browser language triggering criteria and choose `Loyal` in the Engagement level segmentation criteria of your campaign.\
**Need additional information?**

Submit your request at <product.feedback@abtasty.com>

Always happy to help!

<img src="https://2350286830-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6Yw9IRJ6KbbucQPwZUCZ%2Fuploads%2Fgit-blob-b64a4880e8b3bef768254b2ffaa55a46ea3df702%2Fd2d1aee8912feec9a86dc6e46dac6728.png?alt=media" alt="" width="146">


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.abtasty.com/assets-library/creating-and-managing-triggers/list-of-trigger-criteria/browser-language-criterion.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
