You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attributes given for the user/company/other context in the BucketClient constructor can be updated for use in feature targeting evaluation with the `updateUser()`, `updateCompany()` and `updateOtherContext()` methods.
217
217
They return a promise which resolves once the features have been re-evaluated follow the update of the attributes.
> [!NOTE] > `user`/`company` attributes are also stored remotely on the Bucket servers and will automatically be used to evaluate feature targeting if the page is refreshed.
230
230
231
-
###Qualitative feedback
231
+
## Qualitative feedback
232
232
233
233
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.
234
234
235
-
####Automated feedback collection
235
+
### Automated feedback collection
236
236
237
237
The Bucket Browser SDK comes with automated feedback collection mode enabled by default, which lets the Bucket service ask your users for feedback for relevant features just after they've used them.
238
238
@@ -244,15 +244,15 @@ It works because the Bucket Browser SDK maintains a live connection to Bucket's
244
244
245
245
You can find all the options to make changes to the default behavior in the [Bucket feedback documentation](./FEEDBACK.md).
246
246
247
-
####Bucket feedback UI
247
+
### Bucket feedback UI
248
248
249
249
Bucket can assist you with collecting your user's feedback by offering a pre-built UI, allowing you to get started with minimal code and effort.
[Read the Bucket feedback UI documentation](./FEEDBACK.md)
254
254
255
-
####Bucket feedback SDK
255
+
### Bucket feedback SDK
256
256
257
257
Feedback can be submitted to Bucket using the SDK:
258
258
@@ -270,7 +270,7 @@ If you are not using the Bucket Browser SDK, you can still submit feedback using
270
270
271
271
See details in [Feedback HTTP API](https://docs.bucket.co/reference/http-tracking-api#feedback)
272
272
273
-
###Event listeners
273
+
## Event listeners
274
274
275
275
Event listeners allow for capturing various events occurring in the `BucketClient`. This is useful to build integrations with other system or for various debugging purposes. There are 5 kinds of events:
The Bucket Browser SDK doesn't collect any metadata and HTTP IP addresses are _not_ being stored.
303
303
@@ -310,7 +310,7 @@ import { sha256 } from "crypto-hash";
310
310
bucket.user(awaitsha256("john_doe"));
311
311
```
312
312
313
-
###Use of cookies
313
+
## Use of cookies
314
314
315
315
The Bucket Browser SDK uses a couple of cookies to support automated feedback surveys. These cookies are not used for tracking purposes and thus should not need to appear in cookie consent forms.
316
316
@@ -319,14 +319,14 @@ The two cookies are:
319
319
-`bucket-prompt-${userId}`: store the last automated feedback prompt message ID received to avoid repeating surveys
320
320
-`bucket-token-${userId}`: caching a token used to connect to Bucket's live messaging infrastructure that is used to deliver automated feedback surveys in real time.
321
321
322
-
###Upgrading to 3.0 from 2.x
322
+
## Upgrading to 3.0 from 2.x
323
323
324
324
Breaking changes:
325
325
326
326
-`client.onFeaturesUpdated()` is now replaced by [event listeners](#event-listeners)
327
327
- Arguments to the `BucketClient` constructor which were previously under `featureOptions` are now supplied directly in the root.
328
328
329
-
###TypeScript
329
+
## TypeScript
330
330
331
331
Types are bundled together with the library and exposed automatically when importing through a package manager.
0 commit comments