Engagement Survey
The logger ships with a prebuilt engagement survey aimed at gauging user sentiment. Ultimately, the best way to understand reception to your 3D experience is by directly asking your users.
By default, the engagement survey randomly prompts itself during the user's experience. In the event a user answers the survey, Metalitix will use the browser's local storage to remember the user's response. So, if the user has already answered the survey it will not be shown again (until the browser's local storage is cleared).
The example code below illustrates how to instantiate Metalitix with custom survey settings.
Survey Settings
When instantiating Metalitix, the settings below modify the survey's appearance.
Setting | Default |
---|---|
|
|
|
|
|
|
|
|
DEPRECATED |
|
Manual Surveying
If you wish to manual trigger the engagement survey, you can use the below Javascript function.
Function | Parameters | Returns |
---|---|---|
|
| None |
Survey Appearance
There are several CSS classes that can be used to customize the appearance of the survey prompt. Modifying these style classes will allow you to customize the survey to match your brand. The classes listed below are numbered, and each number corresponds to the labels in the image below.
.mtx-survey
.mtx-survey-title
.mtx-survey-options
.mtx-survey-option:nth-child(INDEX)
whereINDEX
is the a number 1 (worst) to 5 (best) inclusive. Alternatively, use.mtx-survey-option
to target all options..mtx-survey-submit-button
.mtx-survey-logo
Last updated