olark.configure('features.prechat_survey', true );

Notes

You can enable the Pre-chat Survey feature on a specific page. This can also be done on your Text & Forms settings page.

You can read more about using the Pre-chat Survey in our help section.