Web button "Send Feedback"

This button opens the Store Locator interface.

Installation

  1. Install the Goodays Web SDK in your HTML page if you have not already done so.
  2. 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 ID

Replace <universe_id> with your universe ID (one of your brands), given by your Goodays project contact.

📘

Geolocation

The 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 ID

Replace <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

NameTypeBy defaultEffect
modefeedback
quiz
quizonly
feedbackCollection process to be adopted by the widget:
  • feedback : feedback first, then quiz
  • feedbackonly : only feedback
  • quiz : Quiz first, then feedback
  • quizonly : only quiz
useruser_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.
tagstringnullName of the survey (slug) that will be used by the interface If you leave this field blank, the default process will be used.
answerintegernullAutomatically responds to the first question with the value provided.
Useful when coming from email.
Mode quiz/quizonly only
langcode name : fr, en...Default point of sale language valueLang of the interface
closabletrue/falsetrueTurns the cross icon to close the interface on or off
on_closeURL (absolute or relative)nullWhen the customers click on the cross to close the interface, they will be redirected to this URL:
  • If this is a relative URL, the location iframe will be change.
  • If this is an absolute URL, the parent frame will be change.
  • If this is a null value, the cross will behave as normal and close the pop-in.
on_successURL (absolute or relative)On_close valueSimilar to on_close but only applies to close buttons that appear on the success screen.
x_*stringnullAdditional information to bring contextual data to participation.
📘

Additional information

More information on the additional information can be find in the Web SDK part.