> For the complete documentation index, see [llms.txt](https://lionstudios.gitbook.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lionstudios.gitbook.io/readme/features/growthbook/segmentation-example.md).

# Segmentation Example

### Example

You can target a feature flag to a specific group of players by combining attributes like Country, Version, Campaign, and Platform.

Example goal: Enable a new store layout only for:

* Players in the US
* On iOS
* Running version 1.12.0 or higher
* Who installed from the “holiday\_2025” campaign

Example targeting rule (conceptual):

Feature Flag: **abc\_new\_store**

* **Country** == "US"
* **Platform** == "iOS"
* **Version** >= "1.12.0"
* **Campaign** == "holiday\_2025"

{% hint style="success" %}
In order to target organic users you can use Network == "Organic"
{% endhint %}

**Result:**

* Players who match all conditions receive the flag as enabled (or receive a specific variant/value).
* Everyone else receives the default value.

If you're running this as an experiment, you can then split matching users into variants (ex: control vs new\_store) and Lion Analytics will automatically track the experiment and assigned variant via ExperimentInfo.

### Setup (Unity)

```csharp
var flag = await FeatureFlagController.GetFeature("abc_new_store", false);
if (flag == null)
    return; // Not initialized or key missing

var config = JsonUtility.FromJson<NewStoreConfig>(flag.RawString);
// Use config to update your game
```

***

For new segment launches or experiments, coordinate with your Studio Manager to configure the targeting rules and rollout plan.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://lionstudios.gitbook.io/readme/features/growthbook/segmentation-example.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
