Skip to content

Commit 1380036

Browse files
committed
docs: new power user survey fields pxplanation powerUserLoggedIn powerUserPaid
1 parent 3147807 commit 1380036

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/surveys-readme.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ Configuration file for user surveys displayed in Phoenix Code.
66

77
- **newUser**: Survey shown once to new users after initial delay
88
- **powerUser**: Recurring survey shown to active users at regular intervals
9+
- **powerUserLoggedIn**: Optional survey URL for logged-in users (fallback to `powerUser` if not given)
10+
- **powerUserPaid**: Optional survey URL for paid subscribers (takes precedence over `powerUserLoggedIn`)
911

1012
## Configuration Properties
1113

1214
| Property | Type | Default | Description |
1315
|----------|------|---------|----------------------------------------------------------------------------------|
1416
| `newUser` | string | - | URL for new user survey |
15-
| `powerUser` | string | - | URL for power user survey |
17+
| `powerUser` | string | - | URL for power user survey (fallback for all users) |
18+
| `powerUserLoggedIn` | string/null | null | URL for logged-in users (overrides `powerUser`) |
19+
| `powerUserPaid` | string/null | null | URL for paid subscribers (overrides `powerUserLoggedIn`) |
1620
| `newUserTitle` | string/null | null | Custom title for new user survey (null uses translated default) |
1721
| `powerUserTitle` | string/null | null | Custom title for power user survey (null uses translated default) |
1822
| `newUserShowDelayMS` | number | 1200000 | Delay before showing new user survey (20 minutes) |
@@ -34,12 +38,16 @@ Use the `browser` object to override settings for browser deployments. All prope
3438
"newUserUseDialog": false,
3539
"newUserShowDelayMS": 1200000,
3640
"powerUser": "https://s.surveyplanet.com/v3j59a7z",
41+
"powerUserLoggedIn": "https://s.surveyplanet.com/abc123",
42+
"powerUserPaid": "https://s.surveyplanet.com/xyz789",
3743
"powerUserTitle": null,
3844
"powerUserUseDialog": false,
3945
"powerUserShowIntervalDays": 35,
4046
"browser": {
4147
"newUser": "https://s.surveyplanet.com/5lrpp9ud",
4248
"powerUser": "https://s.surveyplanet.com/wtohpj8x",
49+
"powerUserLoggedIn": "https://s.surveyplanet.com/def456",
50+
"powerUserPaid": "https://s.surveyplanet.com/uvw321",
4351
"newUserShowDelayMS": 600000,
4452
"powerUserShowIntervalDays": 30
4553
}
@@ -50,4 +58,5 @@ Use the `browser` object to override settings for browser deployments. All prope
5058

5159
- **New User Survey**: Shown once per user. Version number in code determines if shown again after updates.
5260
- **Power User Survey**: First shown 14 days after initial boot, then repeats at configured interval.
61+
- Survey URL selection priority: `powerUserPaid` (if paid subscriber) → `powerUserLoggedIn` (if logged in) → `powerUser` (fallback)
5362
- **Fallback**: If browser-specific config exists, native app uses main config, browser uses browser config with fallback to main.

0 commit comments

Comments
 (0)