|
| 1 | +# Survey Configuration |
| 2 | + |
| 3 | +Configuration file for user surveys displayed in Phoenix Code. |
| 4 | + |
| 5 | +## Survey Types |
| 6 | + |
| 7 | +- **newUser**: Survey shown once to new users after initial delay |
| 8 | +- **powerUser**: Recurring survey shown to active users at regular intervals |
| 9 | + |
| 10 | +## Configuration Properties |
| 11 | + |
| 12 | +| Property | Type | Default | Description | |
| 13 | +|----------|------|---------|----------------------------------------------------------------------------------| |
| 14 | +| `newUser` | string | - | URL for new user survey | |
| 15 | +| `powerUser` | string | - | URL for power user survey | |
| 16 | +| `newUserTitle` | string/null | null | Custom title for new user survey (null uses translated default) | |
| 17 | +| `powerUserTitle` | string/null | null | Custom title for power user survey (null uses translated default) | |
| 18 | +| `newUserShowDelayMS` | number | 1200000 | Delay before showing new user survey (20 minutes) | |
| 19 | +| `powerUserShowIntervalDays` | number | 35 | Days between power user surveys | |
| 20 | +| `newUserUseDialog` | boolean | false | Display mode: `true` = dialog, `false` = notification | |
| 21 | +| `powerUserUseDialog` | boolean | false | Display mode: `true` = dialog, `false` = notification | |
| 22 | +| `browser` | object | - | Browser app will use this if present, else it will default to the above version | |
| 23 | + |
| 24 | +## Platform-Specific Configuration |
| 25 | + |
| 26 | +Use the `browser` object to override settings for browser deployments. All properties from the main config can be overridden. |
| 27 | + |
| 28 | +## Example |
| 29 | + |
| 30 | +```json |
| 31 | +{ |
| 32 | + "newUser": "https://s.surveyplanet.com/jssqbld8", |
| 33 | + "newUserTitle": null, |
| 34 | + "newUserUseDialog": false, |
| 35 | + "newUserShowDelayMS": 1200000, |
| 36 | + "powerUser": "https://s.surveyplanet.com/v3j59a7z", |
| 37 | + "powerUserTitle": null, |
| 38 | + "powerUserUseDialog": false, |
| 39 | + "powerUserShowIntervalDays": 35, |
| 40 | + "browser": { |
| 41 | + "newUser": "https://s.surveyplanet.com/5lrpp9ud", |
| 42 | + "powerUser": "https://s.surveyplanet.com/wtohpj8x", |
| 43 | + "newUserShowDelayMS": 600000, |
| 44 | + "powerUserShowIntervalDays": 30 |
| 45 | + } |
| 46 | +} |
| 47 | +``` |
| 48 | + |
| 49 | +## Behavior |
| 50 | + |
| 51 | +- **New User Survey**: Shown once per user. Version number in code determines if shown again after updates. |
| 52 | +- **Power User Survey**: First shown 14 days after initial boot, then repeats at configured interval. |
| 53 | +- **Fallback**: If browser-specific config exists, native app uses main config, browser uses browser config with fallback to main. |
0 commit comments