Server-side event verification for Node.js and Express. Add visitor identification, bot detection, and smart signals to your Node.js application in minutes.
Add the SDK to your project with your preferred package manager.
npm install @tracio/clientyarn add @tracio/clientpnpm add @tracio/clientGet up and running with the minimal setup.
import { TracioServer } from '@tracio/client/node'const tracio = new TracioServer({ apiKey: process.env.TRACIO_SECRET,})const event = await tracio.getEvent(requestId)console.log(event.products.identification.data.visitorId)Production-ready patterns with error handling, loading states, and advanced configuration.
import express from 'express'import { TracioServer } from '@tracio/client/node'const app = express()const tracio = new TracioServer({ apiKey: process.env.TRACIO_SECRET })app.use(express.json())app.post('/api/protected', async (req, res) => { const { requestId } = req.body try { const event = await tracio.getEvent(requestId) const { visitorId, confidence } = event.products.identification.data const isBot = event.products.botd.data.bot.result !== 'notDetected' if (isBot) { return res.status(403).json({ error: 'Bot detected' }) } if (confidence.score < 0.9) { return res.status(401).json({ error: 'Low confidence' }) } res.json({ visitorId, confidence: confidence.score }) } catch (err) { res.status(502).json({ error: 'Verification failed' }) }})app.listen(3000)All available options for initializing and configuring the SDK.
apiKeystringYour API key from the dashboardendpointstringCustom endpoint URL for proxy-routed deploymentsregionstringData region (us, eu, ap)timeoutnumberRequest timeout in millisecondsextendedResultbooleanAdds bot detection, incognito mode flags, and smart signalslinkedIdstringCustom identifier to associate visits (e.g. user ID or session ID)Go deeper with the full API reference, webhook configuration, and advanced guides.
Full API reference, integration guides, and best practices.
Server API endpoints, request/response schemas, and error codes.
Configure real-time event notifications for every device identification.
Add device fingerprinting to your Node.js application in under 5 minutes.