Skip to content

Commit f92b856

Browse files
author
Peter Brandt Müller
committed
Add qualitative feedback section in README
1 parent a48d551 commit f92b856

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,38 @@ Supply these to the `init` call (2nd argument)
6161
}
6262
```
6363

64+
### Qualitative feedback
65+
66+
Bucket can collect qualitative feedback from your users in the form of a [Customer Satisfaction Score](https://en.wikipedia.org/wiki/Customer_satisfaction) and a comment.
67+
68+
#### Bucket feedback SDK
69+
70+
Feedback can be submitted to Bucket using the SDK:
71+
72+
```js
73+
bucket.feedback({
74+
featureId: "my_feature_id", // String (required), copy from Feature feedback tab
75+
userId: "john_doe", // String, optional if using user persistense
76+
companyId: "acme_inc", // String (optional)
77+
score: 5, // Number: 1-5 (optional)
78+
comment: "Absolutely stellar work!" // String (optional)
79+
})
80+
```
81+
82+
#### Bucket feedback API
83+
84+
If you are not using the Bucket SDK, you can still submit feedback using the HTTP API.
85+
86+
See details in [Feedback HTTP API](./HTTP-API.md#feedback)
87+
88+
#### Bucket feedback example UI
89+
90+
In order to collect feedback from a customer, you might want to build your own UI that matches your own style guide.
91+
92+
We have built a few scaffolds you can get started with easily:
93+
- [Vanilla HTML/JS feedback form](./example/feedback/feedback.html)
94+
- [React feedback form](./example/feedback/feedback.jsx)
95+
6496
### Zero PII
6597

6698
The Bucket SDK doesn't collect any metadata and HTTP IP addresses are _not_ being stored.

0 commit comments

Comments
 (0)