diff --git a/README.md b/README.md index 7f184a02..173ace90 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,9 @@ The Bucket SDK comes with a Live Satisfaction collection mode enabled by default Note: To get started with automatic feedback collection, make sure you call `bucket.user()`. +Live Satisfaction works even if you're not using the SDK to send events to Bucket. +It works because the Bucket SDK maintains a live connection to Bucket's servers and can show a Live Satisfaction prompt whenever the Bucket servers determines that an event should trigger a prompt - regardless of how this event is sent to Bucket. + You can find all the options to make changes to the default behaviour in the [Bucket feedback documentation](./FEEDBACK.md). #### Bucket feedback UI @@ -106,6 +109,15 @@ import { sha256 } from 'crypto-hash'; bucket.user(await sha256("john_doe")); ``` +### Use of cookies + +The Bucket SDK uses a couple of cookies to support Live Satisfaction. These cookies are not used for tracking purposes and thus should not need to appear in cookie consent forms. + +The two cookies are: + +- `bucket-prompt-${userId}`: store the last Live Satisfaction prompt message ID received to avoid repeating prompts +- `bucket-token-${userId}`: caching a token used to connect to Bucket's live messaging infrastructure that is used to deliver Live Satisfaction prompts in real time. + ### Custom attributes You can pass attributes as a object literal to the `user`, `company` and `track` methods (2nd argument). diff --git a/package.json b/package.json index bd2338b2..884d8a28 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bucketco/tracking-sdk", - "version": "2.1.10", + "version": "2.1.11", "license": "MIT", "private": false, "repository": { diff --git a/test/sse.test.ts b/test/sse.test.ts index 7c3891e8..3c92e1a8 100644 --- a/test/sse.test.ts +++ b/test/sse.test.ts @@ -21,7 +21,7 @@ const tokenRequest = { }; const tokenDetails = { token: "token", - expires: new Date(2023, 0, 1).getTime(), + expires: new Date("2023-01-01T00:00:00.000Z").getTime(), }; const userId = "foo";