Player Segments
Player Segments let you group players by behavior, spending, or custom tags. Use segments to deliver different game configs to different player types (e.g., easier difficulty for new players, premium content for spenders).
See the SDK Players & Segments guide for GDScript integration with set_user_tag(), remove_user_tag(), and player properties.
Creating a Segment
Section titled “Creating a Segment”- Go to Players > Segments
- Click New Segment and define:
- Name:
whalesornew_players - Description: What defines this group
- Rules: Conditions for inclusion
- Name:
- Click Save
Rules combine with AND logic:
Rules: - lifetime_value >= $50 AND - session_count >= 5 AND - status = activeRule Types
Section titled “Rule Types”| Rule | Example | Matches |
|---|---|---|
| Spending | lifetime_value >= $100 | Players who spent $100+ |
| Sessions | session_count >= 10 | Players with 10+ sessions |
| Retention | day_30_retained = true | Players active on day 30 |
| Cohort | joined_week = 2026_w14 | Players from a specific week |
| Custom Tag | tag = "beta_tester" | Players you manually tagged |
| Level | max_level >= 50 | Players who reached level 50+ |
Common Segments
Section titled “Common Segments”| Segment | Rules | Use Case |
|---|---|---|
| Whales | lifetime_value >= $100 | Premium content, special offers |
| New Players | sessions <= 3 | Easier difficulty, extra help |
| Churned | days_inactive >= 30 | Win-back campaigns, discounts |
| Beta Testers | tag = "beta" | Early access to new features |
| VIP | lifetime_value >= $50 AND retention >= 0.5 | Exclusive perks |
Using Segments with Remote Config
Section titled “Using Segments with Remote Config”Assign different config values to segments:
- Go to Live Ops > Remote Config
- Open a config key (e.g.,
difficulty_multiplier) - Click Add Segment Override
- Select segment:
new_players - Set value:
0.75(easier)
Now new players automatically get 25% easier difficulty:
var difficulty = await QuestData.get_config("difficulty_multiplier")# New players get 0.75, others get 1.0Automatic Segment Assignment
Section titled “Automatic Segment Assignment”Players are automatically added/removed based on rules:
- Real-time: Rules with simple metrics (spending, sessions)
- Nightly: Rules with complex calculations (retention, cohorts)
Manual Tagging
Section titled “Manual Tagging”You can also manually tag players:
- Go to Players > Player Explorer
- Search for a player
- Click Add Tag
- Type tag name (e.g.,
premium_supporter) - Player now matches rules with
tag = "premium_supporter"
Segment Performance
Section titled “Segment Performance”View segment stats:
| Metric | Description |
|---|---|
| Count | Players in segment |
| % of Base | Percentage of total players |
| Avg LTV | Average lifetime value |
| Retention | Day 1, 7, 30 retention |
API Reference
Section titled “API Reference”# Get all segmentscurl "https://api.questdata.io/v1/segments" \ -H "x-game-api-key: YOUR_API_KEY"
# Get players in segmentcurl "https://api.questdata.io/v1/segments/whales/players?limit=100" \ -H "x-game-api-key: YOUR_API_KEY"
# Check if player is in segmentcurl "https://api.questdata.io/v1/segments/whales/players/player123" \ -H "x-game-api-key: YOUR_API_KEY"Response:
{ "segments": [ { "id": "whales", "count": 45, "avg_ltv": 125.00 }, { "id": "new_players", "count": 300, "avg_ltv": 2.50 } ]}