StageUp
Segments

Advanced Condition Design & Data Patterns

This deep-dive guide helps you design more precise segment conditions and maintain long‑term operational quality.

1. Logical (AND / OR) Design Patterns

PatternStructurePurposeExample
Basic AND accumulationMultiple single conditions inside Group 1Precise filteringcountry=KR AND device=mobile AND page_view
Event substitution OR(A OR B) single OR groupUnify semantically similar events(page_view OR screen_view)
Multi behavior sequence readinessGroup1, Group2 … (top-level AND)Require multiple distinct behavior bundles(Onboarding group) AND (Purchase group)
Attribute + Action hybridEvent condition + attribute conditionCombine action + audience traitspurchase AND user.age BETWEEN 20–29

2. Multi-Value Event Parameters (IN)

SituationStrategyExample
Keep only top 3–5 dominant categoriesLimit IN listcategory IN ("beauty","books","fashion")
Mixed localization forms (key/value variants)Normalize value set firstlanguage IN ("ko","ko-KR")

3. Attribute Comparator Selection

OperatorBest ForExample
EQUALS / NOT_EQUALSDiscrete fields (country, gender, platform)country = KR
GREATER_THAN / LESS_THANNumeric / time (age, hour)age > 24
CONTAINSDerived substrings (version tags, campaign code)app_version CONTAINS beta
IN / NOT_INShort popular value listsdevice.category IN (mobile, desktop)

4. Avoid OR Group Overuse

Misuse CaseIssueImprovement
(30 events OR ...)Performance + diluted meaningSplit into themed 3–5 groups, AND / separate segments
(platform=Android OR country=KR)KPI interpretation ambiguitySeparate platform vs region segments

5. Performance & Maintenance Tips

  • IN list > 10 values: refactor into separate segments; compare higher level
  • Before introducing custom event names: agree shared naming convention (prefix taxonomy)
  • Prefer soft retirement: prefix deprecated- then monitor before deletion

6. Iterative Refinement Loop

  1. Define initial hypothesis (e.g., "Pre-tutorial abandonment behavior pattern")
  2. Start with minimal base filters (age / platform, etc.)
  3. Visually scan top 50 event rows for parameter distribution
  4. Add frequently recurring parameters / attributes → sharpen conditions
  5. Monitor 7-day trend change → decide keep / narrow / expand

7. Quality Checklist

CheckQuestion
ClarityCan purpose be inferred from name alone?
ConcisenessAny redundant OR / IN values present?
Stability0 users/events last 7 days? (retire candidate)
ExtensibilityEasy to branch into derivative segments later?

Table of Contents