Web button "Send Feedback"
This button opens the Store Locator interface.
Installation
- Install the Goodays Web SDK in your HTML page if you have not already done so.
- Add the right HTML code at the location where you wish the button to appear.
Web button "Send Feedback" with a Store Locator
This button opens the Store Locator interface which displays the points of sale closest to the customer.
We are using the geoip function to localised the client, which is not completly accurate but avoid to request the granting of the localisation to the browser.
It is also possible to search for points of sale belonging to a specific city.
When the customer chooses a point of sale, he is redirected to the corresponding "Send Feedback" interface.
The code
<a
class="goodays-widget"
href="https://app.goodays.co/widgets/<universe_id>/"
data-type="store_button:fact_national"
data-params='{"on_click":{"type":"cz:open:store_locator"},
"cta_text":"Send a comment"}'
> Goodays: Send feedback </a>
Universe IDReplace
<universe_id>with your universe ID (one of your brands), given by your Goodays project contact.
GeolocationThe Store Locator used GPS coordinates obtained via HTML5 to display the points of sale whose distance (as the crow flies) was less than or equal to 100 km.
This method required the user to grant browser permission for location access. If denied, the user could search for a point of sale by entering its name in a search bar.
The result

Web button "Send Feedback" on a specific point of sale
These buttons allow the customer to open the Goodays Send Feedback interface for a specific point of sale.
The code
<a
class="goodays-widget"
href="https://app.goodays.co/widgets/<universe_id>/<external_id>/"
data-type="store_button:fact"
data-params='{"on_click":{
"type":"cz:open:send_feedback:<external_id>",
"cta_text":"Send a comment"}'
> Goodays: Send feedback </a>
Universe ID & external IDReplace
<universe_id>with your universe ID (one of your brands), given by your Goodays project contact, and<external_id>with the external ID (your own code) of the point of sale the participations should be attached to.
The result

Usage
data-params settings for the "Send feedback" button
data-params settings for the "Send feedback" button| Name | Type | By default | Effect |
|---|---|---|---|
| mode | feedbackquizquizonly | feedback | Collection process to be adopted by the widget:
|
| user | user_tag separated by | following customer configuration | 'first_name | last_name | email | phone | crm_id' (or the same thing encoded in Base64) | Transmits information about the customer to the interface. Uses this information to pre-fill the verbatim's fields, as well as for other purposes such as dissatisfaction alerts. |
| tag | string | null | Name of the survey (slug) that will be used by the interface If you leave this field blank, the default process will be used. |
| answer | integer | null | Automatically responds to the first question with the value provided. Useful when coming from email. Mode quiz/quizonly only |
| lang | code name : fr, en... | Default point of sale language value | Lang of the interface |
| closable | true/false | true | Turns the cross icon to close the interface on or off |
| on_close | URL (absolute or relative) | null | When the customers click on the cross to close the interface, they will be redirected to this URL:
|
| on_success | URL (absolute or relative) | On_close value | Similar to on_close but only applies to close buttons that appear on the success screen. |
| x_* | string | null | Additional information to bring contextual data to participation. |
Additional informationMore information on the additional information can be find in the Web SDK part.
Updated 3 days ago