Skip to content
Open fromusers

Audience and dynamic values

In-product surveys

Audience rules refine who can see an in-product survey after page targeting matches. Dynamic values let you personalize content with data from your application.

Use attribute-based conditions when URL and device targeting are not enough. Typical attributes teams send:

  • Plan or tier
  • Role (end user versus admin in your product, not FromUsers roles)
  • Account age or activation flags
  • Beta feature enrollment
  1. Instrument your app to provide user attributes to the SDK (see JavaScript API and FromUsers.init).
  2. Open the survey’s audience settings.
  3. Add rules that must match for eligibility.
  4. Test with two staging users: one who should match and one who should not.

Keep attribute names stable. Renaming fields in your app without updating rules silently stops matches.

Dynamic values inject application data into survey experiences (for example greeting text or logic variables). Flow:

  1. Send values when you initialize or update the SDK context.
  2. Reference those values in survey content or logic where the builder allows.
  3. Preview with sample values before Live.

Only send values you are comfortable storing with responses under your privacy policy.

You want feedback from Pro-plan editors on the new editor page:

  1. Page targeting: URL starts with /editor.
  2. Audience: plan equals pro and role equals editor (your product attributes).
  3. Trigger: time on page 15 seconds.
  4. Frequency: once ever.
  5. Dynamic value: include the feature flag name in the question text if you pass it.
  • Do not send passwords, full payment data, or unnecessary personal data.
  • Disclose in-product research in your privacy notice when required.
  • Limit who can export results that include attribute payloads.
  • Audience rules cannot evaluate attributes you never send.
  • Client-provided attributes can be changed by a technical user. Treat them as UX targeting, not security authorization.
  • Page targeting and frequency still apply even when audience matches.

Common questions

How do user attributes reach FromUsers?

Pass them through the SDK initialization or related JavaScript API usage so audience rules can evaluate plan, role, or other properties you send.

What are dynamic values?

Values from your app that can personalize survey content or logic, such as plan name or feature flags you choose to send.

Can I target only paying customers?

Yes, if your app provides an attribute the audience rule can match, for example a plan attribute you set at init.