---
updatedAt: 2026-10-13T20:55:08.000Z
agentTools:
  projectIndex: https://developers.goodays.co/llms.txt
---

# Customer Relationship score

Displays the customer relationship score globally or for your point of sale.

<Image align="center" src="https://files.readme.io/1257bef-customer_service_rating.svg" />

This widget will give you the ability to showcase the relationship score globally or for a given point of sale.

# Installation

1. [Install the Goodays Web SDK](https://developers.goodays.co/docs/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.

# Global customer relations score

Comes with a Send Feedback button that will open the **Store Locator interface**. The user can then send his/her feedback to the chosen point of sale.

## The code

```html
<a
  class="goodays-widget"
  href="https://app.goodays.co/widgets/<universe_id>/"
  data-type="store_button:rating_national"
  data-params='{"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.

## The result

Based on the global data.

<Image align="center" src="https://files.readme.io/85c29f9-image.png" />

# Customer relations score for a point of sale

Comes with a Send Feedback button that will open the **Send Feedback interface** for that point of sale.

## The code

```html
<a
  class="goodays-widget"
  href="https://app.goodays.co/widgets/<universe_id>/<external_id>/"
  data-type="store_button:rating"
  data-params='{"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 whose results you want to display.

## The result

Based on the point of sale data.

<Image align="center" src="https://files.readme.io/1de67f3-image.png" />

Another example:

<Image align="center" src="https://files.readme.io/bed917d-customer_service_rating_flunch.png" />

# Configuration

## `data-params` settings

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        By default
      </th>

      <th>
        Effect
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        **on\_click** 
      </td>

      <td>
        URL
      </td>

      <td>
        `cz:open:send_feedback`\
        or\
        `cz:open:store_locator`
      </td>

      <td>
        Customizes the behavior of the comment submission button: if you attribute an URL to this value, the button will open the URL in a new browser
      </td>
    </tr>

    <tr>
      <td>
        **cta\_text** 
      </td>

      <td>
        string
      </td>

      <td>
        null
      </td>

      <td>
        Button wording
      </td>
    </tr>

    <tr>
      <td>
        **lang** 
      </td>

      <td>
        code name : `fr`, `en`...
      </td>

      <td>
        Default point of sale language value
      </td>

      <td>
        Lang of the interface
      </td>
    </tr>

    <tr>
      <td>
        **level**
      </td>

      <td>
        level ID
      </td>

      <td>
        null
      </td>

      <td>
        Only for the global customer relations score: filter on one specific brand level.
      </td>
    </tr>

    <tr>
      <td>
        **x\_\***
      </td>

      <td>
        string
      </td>

      <td>
        null
      </td>

      <td>
        Additional information to bring contextual data to participation.
      </td>
    </tr>
  </tbody>
</Table>

> 📘 Additional information
>
> More information on the additional information can be find [in the Web SDK part](https://developers.goodays.co/docs/web-sdk).