Skip to Content
FeaturesVariant Catalog

Variant Catalog

The Variant Catalog is a centralized library of reusable targeting rules. Every content variant references one catalog entry, and takes its targeting and priority from it, so one entry can serve many records. When you update a catalog entry, all variants using it automatically get the updated rules.

Overview

The catalog solves a common problem: when multiple pages need the same targeting rules (e.g., “show to VIP users”), defining those rules individually on each variant is tedious and error-prone. The catalog lets you define the rules once and reuse them everywhere.

How It Works

  1. Create catalog entries with targeting rules (e.g., “VIP Users”, “UK Mobile Users”)
  2. Assign catalog entries to variants — the variant inherits the catalog’s targeting rules and priority
  3. Update catalog entries — changes propagate to all variants using that entry
Variant Catalog -- "VIP Users" (Priority 30, rules: segment is VIP) -- "UK Mobile" (Priority 20, rules: market = UK AND device = mobile) -- "Mobile Users" (Priority 10, rules: device = mobile) Homepage -- Variant: "VIP Homepage" -> uses catalog: "VIP Users" -- Variant: "UK Mobile Home" -> uses catalog: "UK Mobile" -- Default variant (the record's own, no catalog entry) Product Listing -- Variant: "VIP Products" -> uses catalog: "VIP Users" (same rules) -- Default variant (the record's own, no catalog entry)

Catalog Entry Properties

PropertyDescription
keyUnique identifier (lowercase, hyphens allowed). Cannot be changed after creation.
nameDisplay name
descriptionOptional description of what this entry targets
targetingRulesExpression-based targeting conditions
priorityAmong the entries that match, the highest priority wins
isDefaultBreaks a tie between entries at the same priority. It does not make the entry match every request
isActiveWhether the entry is available for use

A variant cannot carry targeting rules or a priority of its own: a variant change that sends either is refused. Even a one-off audience is a catalog entry.

In the console

Creating a catalog entry

  1. Go to Settings > Variant Catalog
  2. Click New Entry
  3. Configure:
    • Key: vip-users (unique identifier)
    • Name: “VIP Users”
    • Description: Optional explanation of the targeting intent
    • Priority: among the entries that match, the highest wins
    • Targeting Rules: Define conditions using the visual rule builder
  4. Click Save

Using catalog entries in variants

  1. Open a record and go to its Variants tab
  2. Click Add Variant, or edit a variant
  3. Pick the catalog entry the variant is for. The variant takes its rules and priority from it

Priority System

Resolution is filter, then highest priority — not first-match-wins. The distinction matters, because a first-match reading makes priority look like an ordering of evaluation when it is really a tiebreak among everything that already matched.

  1. Every variant’s targeting rules are evaluated against the request context. This is the filter, and it runs over all of them.
  2. Among the variants that matched, the highest priority wins.
  3. Ties break on the record’s own default marker. If two matching variants sit at the same priority and one of them is the record’s default, that one wins. Otherwise the first in the pool does — so a tie between two non-default variants at the same priority is not something to rely on.
  4. If nothing matched, the default variant is returned.

A variant that names no catalogue entry sits at priority 0. It still participates — it is not excluded — it simply loses to anything with a catalogue entry above zero.

PriorityUse CaseExample
50+Override/emergencyTemporary promotions, urgent updates
20-50Specific targetingVIP users, combined conditions
10-20General targetingMarket-specific, device-specific
0Default/fallbackStandard content for everyone

Example priority setup

Priority 50: VIP UK Mobile Users (most specific) Priority 30: VIP Users (any market) Priority 20: UK Mobile Users Priority 10: UK Users Priority 5: Mobile Users Priority 0: Default (fallback)

Higher priority means more specific targeting. Among the entries that match, the highest priority wins, so a VIP UK mobile user gets “VIP UK Mobile Users” at priority 50 rather than “Mobile Users” at priority 5.

The fallback

The fallback when no entry matches is each record’s own default variant, which needs no catalog entry. Nothing in the catalog has to exist for it.

Via the CLI

List catalog entries

foir variant-catalog list

Get a catalog entry

By ID:

foir variant-catalog get vc_abc123

By key:

foir variant-catalog get vip-users

Create a catalog entry

foir variant-catalog create --data '{ "key": "vip-users", "name": "VIP Users", "description": "Targets users in the VIP segment", "priority": 30, "targetingRules": { "type": "group", "logicalOperator": "AND", "conditions": [ { "type": "condition", "left": { "type": "context", "path": "segment.vip-users" }, "operator": "is_true" } ] } }'

Update a catalog entry

foir variant-catalog update vc_abc123 --data '{ "name": "VIP Users", "priority": 35 }'

Delete a catalog entry

foir variant-catalog delete vc_abc123

Best Practices

  • Use the catalog for any targeting rules shared by two or more variants. Central management prevents rules from drifting out of sync.
  • Use descriptive keys like vip-uk-mobile rather than generic names like rule-001.
  • Space priorities clearly (0, 10, 20, 30…) to leave room for future entries without renumbering.
  • Add descriptions to each catalog entry explaining what it targets and why.
  • Deactivate entries you are no longer using instead of deleting them, in case you need them again.
Last updated on