50+ Signals
Real-time behavioral data points processed
Zero Latency
Instant client-side scoring & feedback
100% Privacy
No cookies, no third-party storage
The Black Box of User Intent
In B2B sales, the gap between a “visitor” and a “lead” is often a black box. Traditional analytics tell you what happened (pageview), but rarely why (intent). We needed a way to distinguish between a casual browser and a high-intent prospect before they even filled out a form. We built a Real-Time Behavioral Scoring Engine that runs entirely in the browser. It analyzes micro-interactions—scroll depth, dwell time, copy events, tool usage—to build a dynamic “intent score” for every visitor.System Architecture
The system operates on a high-frequency event loop that aggregates signals into a local state machine. This state is persisted vialocalStorage and evaluated against a scoring matrix to trigger real-time UI feedback (Toasts) and webhook events.
Engineering Spotlight: The Gamification Engine
To make the qualification process transparent and engaging, we gamified the experience. Instead of hidden tracking pixels, we give users direct feedback on their engagement level. We implemented a “Toast System” that provides immediate reinforcement when users exhibit high-value behaviors.Implementation Details
1. Privacy-First Storage
We deliberately choselocalStorage over server-side sessions for the initial tracking layer. This ensures that:
- GDPR Compliance: No personal data leaves the device until the user explicitly engages or qualifies.
- Performance: Zero network overhead for tracking high-frequency events like scroll.
2. Signal De-bouncing
To prevent “score inflation” from rapid scrolling or accidental clicks, we implemented a robust de-bouncing and throttling mechanism. Time-based points (e.g., “60 seconds on page”) are only awarded if the tab is active and focused.3. The “Qualified” Webhook
When a user crosses the 5,000-point threshold, the system fires a “Qualified Lead” event to our N8N workflow. This payload includes the journey context—not just who they are, but what they did.Business Impact
By shifting qualification to the client-side, we achieved:- Higher Quality Conversations: Sales calls start with context (“I saw you were interested in our API docs”).
- Reduced Noise: We filter out low-intent traffic before it hits our CRM.
- User Delight: The gamified elements (toasts, badges) increased average time-on-site by 40%.
“This isn’t just analytics; it’s a conversation starter. Users actually try to ‘beat’ the high score, driving deeper engagement with our content.”