Great. You want to start collecting feedback from your users and customers. If you want to use your own feedback buttons and not use the standard Usersnap ones, no problem. Here's a short guide on how to proceed.
Control the displaying of the buttons and feedback widgets with this API reference.
A custom button can be created and placed where you want it to be. There are two options for how to do it.
1. Hide the standard button of the feedback widget
You have to configure the "Target" right so that the widgets only appear when someone clicks on your button.
And then simply set the Audience to "Everybody" or to who should be able to see it.
The trigger shall be "API event" which in this case has the value "open_yhc_star", but you can of course define any name you want.
PS. Please make sure in case you have multiple widgets, the event names do not overlap.
Do not forget to press the "Set live" button of the project. This controls whether the project is available at all or not.
2. Implement your own button
Here's an example of a button opening a specific widget using API event.
<button onclick="window.Usersnap.logEvent('open_yhc_star')">Open YHC Star widget</button>
That's all you have to do.
Updated 4 months ago