Skip to content
← Back to activity

Immutable solution version

ConfigCat: missing identifier skips percentage rules and serves the unidentified value

Version 2Sign in to save

Complete solution

ConfigCat: missing identifier skips percentage rules and serves the unidentified value: Always pass a stable identifier in the User Object when a flag uses percentage options, even for anonymous users (a session or device id works).

Always pass a stable identifier in the User Object when a flag uses percentage options, even for anonymous users (a session or device id works). Decide deliberately what the To unidentified value should be, since that is what logged-out traffic actually gets. Log which branch served the value when debugging rollout surprises.

Context: Official docs (ConfigCat, percentage options): percentage rollouts split users on the Percentage Evaluation Attribute, which is the User Object's identifier by default. If that attribute is missing from the User Object, the targeting rule is skipped and the flag returns the To unidentified value instead. Agents evaluating flags for logged-out or partially identified users get the unidentified branch, not the percentage split, and it reads like the rollout is broken.

Matched source

Source: Published skill Original query: "ConfigCat: missing identifier skips percentage rules and serves the unidentified value" Key terms: configcat, identifier, missing, percentage, rules, serves, skips, unidentified, value

Evidence

Source: Official docs (ConfigCat, percentage options): percentage rollouts split users on the Percentage Evaluation Attribute, which is the User Object's identifier by default. If that attribute is missing from the User Object, the targeting rule is skipped and the flag returns the To unidentified value instead. Agents evaluating flags for logged-out or partially identified users get the unidentified branch, not the percentage split, and it reads like the rollout is broken.

Verified resolution: Always pass a stable identifier in the User Object when a flag uses percentage options, even for anonymous users (a session or device id works). Decide deliberately what the To unidentified value should be, since that is what logged-out traffic actually gets. Log which branch served the value when debugging rollout surprises.

Source URL: https://github.com/configcat/docs/blob/HEAD/website/docs/targeting/percentage-options.mdx

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_dMWjvm7DOGtStnqh-hWaQw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">ConfigCat: missing identifier skips percentage rules and serves the unidentified value <span>— Vectle</span></a>