Identity and privacy
Journeeze is private by default. Nothing is captured until a visitor consents. Signed-in users are optional, and the browser never sees your secrets.
Signed-in users
Attributing feedback to a user is optional. When you do, your server makes the user id and signs it. The browser never sees either secret.
-
User id.
HMAC-SHA256(your own secret, your internal user id), as 64 lowercase hex or 43 base64url characters. Never an email, name or raw id. The SDK ignores anything else with a console warning. Keep this secret stable. Changing it splits every user’s history. -
Signature. Sign with the identity secret you received for the site:
import { createHmac } from "node:crypto"; export function signUserId(identitySecretHex: string, siteKey: string, userId: string) { const userIdExp = Math.floor(Date.now() / 1000) + 3600; // at most 24 h ahead const userIdSig = createHmac("sha256", Buffer.from(identitySecretHex, "hex")) .update(`jz-id-v1\n${siteKey}\n${userId}\n${userIdExp}`) .digest("base64url"); return { userId, userIdExp, userIdSig }; } -
Check your code against this test vector.
- Secret: the bytes
0x00to0x1f(hex000102…1e1f). - Site key:
pk_0123456789abcdef0123456789abcdef. - User id:
a× 64. userIdExp:1800000000.- Expected
userIdSig:IluU_qUHY6OdSzqKu0Y_wS0sDB53qVOOnobfdHuCnjI.
- Secret: the bytes
-
Deliver
{ userId, userIdExp, userIdSig }from an authenticated endpoint withCache-Control: no-store. Never put them in public config. -
Pass them to the SDK. Use the provider props
userId,userIdSig,userIdExp, orjz.setUser(userId, { sig, exp }). Re-issue the signature before it expires. The SDK never refreshes it.
Sites require the signature by default. With a missing, expired or wrong signature, that feedback is anonymous and has no screenshot.
Logout and reset
- The React provider calls
reset()whenuserIdgoes away or the provider unmounts. - Without React, call
jz.reset()(orwindow.Journeeze.reset()) on every logout path.
reset() sends that user’s unsent feedback once. Then it clears that feedback, the context, consent and the reviewer token from the device.
To erase one user’s data from Journeeze, ask the Journeeze team at privacy@journeeze.dev.
Consent
- Nothing is captured until the visitor turns the feedback mode on and consents.
- Reading help needs no consent.
- Signals run only after consent.
- Global Privacy Control turns help telemetry and signals off (
respectGlobalPrivacyControl, defaulttrue).
Privacy and masking
- Screenshots are masked in the browser before encoding. The visitor sees the masked image before sending. They can always send without it.
- Always masked: inputs, textareas, selects, editable regions, video, audio, canvas, frames and
[data-jz-mask]. - The SDK also masks elements that look sensitive: password and card fields, API keys, IBANs, email-shaped text. Mark such elements yourself rather than relying on detection.
[data-jz-block]leaves an empty box that cannot be picked.maskSelectors: [".customer-name"]andmaskAllText: truewiden masking. One invalid selector turns screenshots off (fails closed).- Anonymous visitors never capture or send a screenshot.
pagePath:"redacted"(default) replaces id-like path segments with:id."none"sends no path.
Put data-jz-mask on every element that shows customer content. Then check the masked screenshot on each screen that shows data.
What is never captured
- The collector accepts a closed list of fields. Raw ids, emails, URLs and page text are not on it.
- Signals send only the derived signal: no URL, text, user id or session id.
- The SDK never reads keystrokes, input values or pointer movement.
- Your identity secret and your own user id secret never reach the browser.