API
Smiley Digital comes with a few events that can be used to interact with the panel or how the survey is presented.
hideOnInit
type: boolean | undefined
Example
onEvent
type: function
parameters: toggle
Toggle Smiley Pop-up in our out. Default state can be manipulated with the hideOnInit
setting (example above).
Example
-
Initialize a Smiley Digital Pop-up by using the provided script (from Analytics service):
-
Tell Smiley Digital that it should be hidden by default, on page load:
-
Define a mechanism through which to trigger the pop-out panel on demand. Can be event based, timer based, etc. Within the same script tag as the previous code example, we can write a short function that pops out the panel after a set number of seconds have passed after page load:
All together and in order: