Attributes
Attributes are small pieces of context your app attaches to every survey response, such as the user’s plan or which variant of an experiment they’re in. The answers tell you what people think; attributes tell you who said it, so you can compare groups in the dashboard.
Attributes are available from version 0.2.0 of the iOS and Android SDKs and of the Flutter and React Native wrappers.
When to use attributes
Section titled “When to use attributes”Good attributes describe a group of users, not a single person:
- Plan or tier:
plan: "pro",tier: "gold" - Experiments and feature flags:
checkout_variant: "B",new_onboarding: true - Lifecycle:
onboarded: true,sessions: 12,signup_cohort: "2026-10" - Account context:
account_type: "business",team_size: 5
You don’t need attributes for what WhiskrKit already records with every response: app version and build, operating system and version, device model, language, region and time zone.
Prefer values with a limited number of options ("pro", "free") over unique ones (a user id or a timestamp). Unique values make every response its own group, which doesn’t help you compare anything.
Setting attributes
Section titled “Setting attributes”Attributes are global: set them once and they’re sent with every response submitted after that. They’re kept in memory only, so set them again at each launch, and update them when they change (for example after an upgrade).
WhiskrKit.shared.setAttribute("plan", "pro")WhiskrKit.shared.setAttribute("sessions", 12)WhiskrKit.shared.setAttributes(["checkout_variant": "B", "onboarded": true]) // mergesWhiskrKit.shared.setAttribute("plan", nil) // removes oneWhiskrKit.shared.removeAttribute("checkout_variant")WhiskrKit.shared.clearAttributes()Android
Section titled “Android”WhiskrKit.setAttribute("plan", "pro")WhiskrKit.setAttribute("sessions", 12)WhiskrKit.setAttributes(mapOf("checkout_variant" to "B", "onboarded" to true)) // mergesWhiskrKit.removeAttribute("checkout_variant")WhiskrKit.clearAttributes()Flutter and React Native
Section titled “Flutter and React Native”The wrappers have the same functions from version 0.2.0.
// Flutterfinal whiskrkit = FlutterWhiskrkit();
await whiskrkit.setAttribute('plan', 'pro');await whiskrkit.setAttributes({'checkout_variant': 'B', 'onboarded': true}); // mergesawait whiskrkit.removeAttribute('checkout_variant');await whiskrkit.clearAttributes();// React Nativeimport { setAttribute, setAttributes, removeAttribute, clearAttributes } from 'react-native-whiskrkit';
setAttribute('plan', 'pro');setAttributes({ checkout_variant: 'B', onboarded: true }); // mergesremoveAttribute('checkout_variant');clearAttributes();A value that isn’t a string, a finite number or a boolean throws an error in the wrappers (ArgumentError in Flutter, TypeError in React Native), so you notice it during development.
See the iOS and Android references for the full API.
Values and limits
Section titled “Values and limits”- Values are a string, a number or a boolean.
- At most 20 attributes per response.
- Keys are 1 to 64 characters; string values up to 256 characters.
- At most 2 KB in total.
The SDK trims anything beyond these limits before sending. The value that’s current at the moment the user submits is the one that’s sent, and a response that’s queued for retry keeps the attributes it was submitted with.
Privacy
Section titled “Privacy”Attributes must never contain personal data. Don’t send:
- email addresses, phone numbers or names
- postal addresses
- IBANs, card numbers or other payment details
- user ids or anything else that identifies a single person
WhiskrKit screens every attribute before storing it. Attributes whose key looks like personal data (such as email, phone, name or address) or whose value looks like an email address, phone number, IBAN or card number are dropped and never stored. When that happens, the dashboard shows a notice so you can fix the code that sends them. In debug builds, the SDK also logs a warning when an attribute looks like personal data, but it never changes what you set.
Screening is a safety net, not a guarantee. The safest attribute is one that couldn’t identify anyone in the first place.
Where attributes show up
Section titled “Where attributes show up”On each response
Section titled “On each response”On a survey’s Responses tab, every response shows its attributes as small chips under the answers, for example plan: pro and sessions: 12. Responses submitted without attributes show none.
Filtering by attributes
Section titled “Filtering by attributes”Open Filter and pick a key under Attributes. The keys listed are the ones this survey’s responses carry.
- Text and true/false attributes list the values your responses have, most common first. Select one or more: a response matches when it has any of them. When a key has more than 50 different values, the 50 most common are listed.
- Number attributes get a minimum and a maximum. Fill in one or both.
You can filter on several keys at once. A response then has to match all of them, just like the other filters. A response without the key never matches a filter on it.
The totals, scores and charts at the top follow the filters, so picking plan: pro shows the score of your pro users, such as their NPS. Compare it with plan: free to see how the groups differ.
Values match exactly and by type: the text "true" is not the same as the boolean true, and "12" is not the number 12. Send each attribute with the same type every time.
Sharing a filtered view
Section titled “Sharing a filtered view”The page address holds the date range and filters you’ve set. Copy it from your browser to share the exact view with a teammate, or bookmark it to come back to it later.
Exports
Section titled “Exports”When you export responses, the CSV gets a column per attribute and the JSON an attributes object per response. The export follows the attribute filters you’ve set, like any other filter.