Web button "Send Feedback"

This button opens the Store Locator interface.

Installation

  1. Install the Critizr 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 point of sales 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 point of sales belonging to a specific city.

When the customer chooses a point of sales, he is redirected to the corresponding "Send Feedback" interface.

The code

<a
  class="critizr-widget"
  href="https://critizr.com/widgets/<customer_name>/"
  data-type="store_button:fact_national"
  data-params='{"on_click":{"type":"cz:open:store_locator"}, 
               "cta_text":"Send a comment"}'
  > Critizr: Send feedback </a>

🚧

Customer Name

Beware the variable customer_name might be change by the name of the customer shared by Critizr team.

πŸ“˜

Geolocation

The Store Locator uses the GeoIP of your customer's device to display the points of sale whose distance (as the crow flies) is less than or equal to 100km.

The result

Web button "Send Feedback" on a specific point of sales

These buttons allow the customer to open the Critizr Send Feedback interface for a specific point of sales.

The code

<a
  class="critizr-widget"
  href="https://critizr.com/widgets/<customer_name>/<pos_id>/"
  data-type="store_button:fact"
  data-params='{"on_click":{
                 "type":"cz:open:send_feedback:<pos_id>",
                 "cta_text":"Send a comment"}'
  > Critizr: Send feedback </a>

🚧

Customer Name & Point of Sale ID

Beware variable customer_name and pos_id have to be changed by the name of the customer shared by Critizr team and the ID of the point of sale you would like the ratings and/or verbatim to be registered on.

The result

Usage

data-params settings for the "Send feedback" button

Name

Type

By default

Effect

mode

feedback
quiz
quizonly

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:

  • 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_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 information

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