SDKsFlutter

Visitor Attributes

Share anonymous visitor signals like age range, gender, and income bracket so Koah can serve more relevant ads.

On Flutter you set visitor attributes through the Dart API below. See Visitor Attributes for what they are, the privacy posture, the bucket list, persistence, and when to clear.

Age range

Set visitor age as an exact value or a predefined bucket—use whichever fits your data and privacy needs. See Age range in the concepts guide for the full list of predefined buckets.

// Pick the bucket closest to the visitor's age
Koah.instance().setAgeRange(KoahAgeRange.age25To29);

Clearing the stored attribute

Pass KoahAgeRange.unknown to clear a previously set age range:

Koah.instance().setAgeRange(KoahAgeRange.unknown);

Gender

Pass KoahGender.male or KoahGender.female:

Koah.instance().setGender(KoahGender.female);

Clearing the stored attribute

Koah.instance().setGender(KoahGender.unknown);

Income bracket

Pass the visitor's annual household income bracket. See Income bracket in the concepts guide for the full list.

Koah.instance().setIncomeBracket(KoahIncomeBracket.income50kTo100k);

Clearing the stored attribute

Koah.instance().setIncomeBracket(KoahIncomeBracket.unknown);

Koah is not for child-directed use: the SDK ignores an exact age under 13 and any bucket below 13 (KoahAgeRange.under13 is accepted for compatibility but ignored) — see Children's privacy.

See Visitor Attributes for when to clear and how values persist across launches.

Was this helpful?