Settings
Device risk settings: turn it on, your site key and the pages allowed to use it, the script tag and server check that install it, how long visitors are kept, the privacy notice, and exporting or deleting the data.
Everything you set up for Device risk is here. Turn it on to get a public site key. Put one script tag on your sign-in, sign-up, password-reset and approval pages and one check on your server; nothing on the page is trusted, the risk engine decides on Touchque's side.
Here you also choose how long visitors are kept, copy a text for your privacy notice, serve the tag from your own domain, and export or delete what Device risk keeps.
In the dashboardCustomers → Device risk → Settingsdashboard.touchque.com/device-risk/settings
Permissions
- The developers who install Device risk, and the owners and admins who decide on it.
- Every member can open the page and copy the site key and the code. Only owners and admins can change settings, replace the site key, see the proxy secret and delete data. Turning Device risk off, adding a page origin and deleting every visitor also need two-step verification on your account and an approval on your phone.
Turn Device risk on or off
- Open Customers → Device risk → Settings.
- Turn the Device risk switch On or Off.
- Press Save. Turning it off needs your phone approval.
The first time you turn it on, your site key is issued. While it is off, the reports your pages send are ignored; what was seen stays until its retention ends.
Install Device risk on your pages
- Under Set up → On your pages, copy the script tag. It already holds your site key and the integrity hash of its version.
- Put it only on your sign-in, sign-up, password-reset and approval pages. It fills a hidden
touchque_request_idfield in every form on the page. - Under On your server, copy the line for your server SDK. Pass the field as it came; when the answer says
stepUp, ask for more (a number-matched approval, a passkey or your emailed code). - On sign-ins you can pass the field to
login.requestasdeviceRiskRequestIdinstead.
A form's own data-touchque-purpose (sign_up, password_reset, approval) wins over data-purpose. Single-page apps read window.TouchqueDevice. A page without the tag, or with it blocked, still gets an answer: Identification missing, which only ever asks for a step-up.
Test your installation
- Open one of your pages with the tag on it.
- Within seconds the browser appears in Customers → Device risk → Identifications, with its Score.
- Submit the form: your server's
checkanswersreport: "ok"with avisitorId. - Open the visitor to see its identifications and its suspect score with every reason.
- Remove the tag once (or block it) and submit again: the check answers
report: missing, a step-up at most.
A private window on a phone is a new visitor: phones are told apart by their stored id and key only.
Allow a page on another domain
- Pages on your organization's verified domains and their subdomains may always identify. Verify a domain on Domains if it is your own.
- For a page elsewhere, type its origin under Page origins, for example
https://shop.example.com, and press Add. - Press Save and approve on your phone.
An origin on none of your verified domains is still allowed, but marked Not on one of your organization's verified domains. New origins must use https; only localhost may use http.
Ask for more on a Device risk signal
- Open Customers → Device risk → Settings.
- Under Ask for more on these signals, turn on the signals you want the risk engine to ask for number matching on, for example Tampered browser. The ones Touchque always acts on are on and locked.
- Press Save. Taking a signal off later is approved on your phone.
A signal marked Measured only is recorded for your sign-ins and shown in the case view, but asks for nothing yet: a company's own picks are measured only until Touchque turns each one on for companies. Device signals only ever ask for more; they never block and never let anything through. The list reaches every sign-in of your workspace, Touchque Login included.
Replace the site key
- Next to Site key, press Replace.
- Confirm with Replace site key.
- Put the new key in your pages.
Pages with the old key stop identifying visitors until they have the new one. Visitors and their history stay. Replacing the site key also replaces the proxy secret.
Serve Device risk from your own domain
- Under Set up → From your own domain, copy the script tag that points at
/_tq/on your site. - Copy one of the proxy examples (nginx, Cloudflare, Next.js or Vercel) and replace
www.example.comwith your domain. - Owners and admins: press Show proxy secret and put it in your proxy's server environment as
X-Touchque-Proxy-Secret, with the visitor's address asX-Touchque-Client-IP.
Ad blockers and browser privacy lists drop third-party fingerprinting scripts, honest visitors' too. Keep the proxy secret on the server like an API key, never in a page or in git. With a verified Touchque Login custom domain there is nothing to proxy: On your pages shows a Your domain tag.
Change how long visitors are kept
- Under Keep visitors for, choose 30 days, 60 days or 90 days.
- Press Save.
- Update your privacy notice: the text under Your privacy notice follows the days you chose.
Visitors, their accounts and identifications are deleted this long after they were last seen; the address an identification came from after a day.
Delete one person's data for a deletion request
- Under Your data → Delete one person's identifications, type the account, for example
ayse@example.com. - Press Delete.
The identifications that name this account go, the account leaves the risk engine's counts, and visitors left with no identification go too. The page says how many were deleted.
Delete everything Device risk keeps
- Under Danger zone → Delete every visitor, press Delete all.
- Confirm with Delete all.
- Approve on your phone.
All visitors, stored ids, keys, identifications and your Trusted and Step up always marks are deleted, and their counts in the risk engine. Recognition starts again from nothing. This cannot be undone.
Settings reference
Settings
| Setting | Description |
|---|---|
| Device risk | Off by default. On: the reports your pages send are matched and kept. Off: they are ignored. Turning it off needs your phone approval. |
| Site key | Public (tqpk_…): your pages send it with deviceRisk.identify(). Issued when you turn Device risk on. Replace issues a new one. |
| Page origins | Pages allowed to identify besides those on your verified domains. At most 20. Adding one needs your phone approval. |
| Ask for more on these signals | Owners and admins. The Device risk signals the risk engine asks for number matching on for your workspace (deviceRiskEnforce), on top of the ones Touchque always acts on (shown on and locked). A pick marked Measured only is recorded but asks for nothing until Touchque turns it on for companies. Taking one off needs your phone approval. Shown once the backend offers the list. |
| Keep visitors for | 30 days (default), 60 days or 90 days after a visitor was last seen. |
| What is kept | Read-only. Keyed hashes of the browser's traits (useless outside Touchque), coarse labels, the account, the country and a keyed hash of the address's network. The address itself for a day, and for 24 hours keyed counts of the browsers and accounts on it (shared addresses) and of the accounts that came back to its network. Never the raw traits or a hardware serial number. |
| Your privacy notice | A text to copy into your privacy notice, with your retention days. In Türkiye (KVKK) account security is a legitimate interest; in the EU, reading the device needs consent unless it is strictly for the security of a sign-in the user asked for. Ask your lawyer. |
Set up
| Setting | Description |
|---|---|
| On your pages | The script tag with your site key and its version's integrity hash. With a verified Touchque Login custom domain: Your domain and Touchque CDN tabs. |
| From your own domain | The tag pointed at /_tq/ on your site and ready-made proxies (nginx, Cloudflare, Next.js, Vercel). Same bytes, same integrity hash; your Content-Security-Policy then needs only 'self'. |
| Proxy secret | Owners and admins only, behind Show proxy secret. Your proxy sends it as X-Touchque-Proxy-Secret with the visitor's address as X-Touchque-Client-IP, so Touchque counts and scores the visitor, not your proxy. |
| Requests per minute | Identifications per site key, and checks from your server, each up to this many a minute (1,200 by default). A visitor's address gets 60 a minute. Ask for more writes to support. |
| On your server | The check in each Device Risk server package (Node.js @touchque/device-risk-node, Python touchque-device-risk, PHP touchque/device-risk, Go touchque-device-risk-go, C# Touchque.DeviceRisk, Ruby touchque-device-risk, Java com.touchque:touchque-device-risk). Device risk has its own SDKs: the main Touchque SDKs no longer have it. |
Your data
| Setting | Description |
|---|---|
| Export | Request export opens a data request for every visitor with its labels, marks, accounts and identifications (with the engine's verdicts). Your phone approves it, and a second owner or admin too. |
| Delete one person's identifications | Owners and admins. Type the account (up to 255 characters) and press Delete. |
Danger zone
| Setting | Description |
|---|---|
| Delete every visitor | Owners and admins. Delete all removes everything Device risk keeps for the organization. Needs your phone approval and cannot be undone. |
Limits
- Only for sign-in, sign-up, password-reset and approval pages; on other pages the EU's ePrivacy rules ask for consent.
- At most 20 page origins; new ones must use https (localhost aside).
- Retention: 30, 60 or 90 days; the address of an identification is kept for a day, and the keyed counts of an address for 24 hours.
- By default 1,200 requests a minute per site key and per workspace for server checks, and 60 a minute per visitor address. Above a limit a call answers
429withRetry-After. - Each organization has its own keys: a device is never linked across Touchque customers.
- Every change on this page is written to the System log.
See also
- Domains: Your organization's email domains: prove each one with a DNS TXT record so invites, directory sync, joining by email domain and threat protection can use it.
- Data requests: The one way files of the organization's data leave Touchque: you choose what and how much detail, your phone approves it, and the file is ready to download for 7 days.
- Login setup: Set up Touchque Login, the hosted sign-up and sign-in pages for your own customers: the apps that use them, social and company sign-in, branding, security, your own domain and the emails.
- Webhooks: Where Touchque sends the result of every login request (approved or rejected) and the follow-up events, as a signed POST to your server.
- System log: Every request and sign-in Touchque answered for your app, with its IP, browser, status, latency and the redacted request, newest first.
- Alerts: Device risk alerts: the rules that tell your people when something is going on, by email and to your webhook, and the last alerts that went off.
API and SDKs
- One line on the page, one on your server
- Serve it from your own domain
- What is read and what is kept
- The server check: POST /device-risk/check
- How sign-ins pick up the identification
Changelog
- New2026.11.25.4 Device risk script tag 3.1.0 (@touchque/device-risk 3.1.0): every report carries a fresh value from Touchque, so reports can no longer be made ahead of time or sent from another network.
- Improved2026.11.25.3 Device risk Settings and the setup guide walk through the same steps: turn it on, install, place the tag, check on your server, report activity and test.
- New2026.11.24.8 Device risk → Settings lets you pick more Device risk signals to ask for number matching on; your picks are measured only until Touchque turns each one on for companies.
- Improved2026.11.12 Device risk → Settings shows your requests-per-minute limit.
- New2026.11.10.2 The Device risk script tag is served from cdn.touchque.com or through your own domain.